Commit 28a77aa4 by 杨树贤

转正操作补上创建时间

parent f4ff2838
Showing with 7 additions and 2 deletions
......@@ -701,12 +701,17 @@ class SupplierService
public function changeSupplierIsType($supplierId, $isType)
{
$model = new SupplierChannelModel();
$result = $model->where('supplier_id', $supplierId)->update([
$data = [
'supplier_type' => 1,
'update_time' => time(),
'is_type' => $isType,
'status' => SupplierChannelModel::STATUS_PENDING,
]);
];
$createTime = $model->where('supplier_id', $supplierId)->value('create_time');
if (!$createTime) {
$data['create_time'] = time();
}
$result = $model->where('supplier_id', $supplierId)->update($data);
if ($result) {
$logService = new LogService();
$content = '转正供应商';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment