Commit 79255e14 by mushishixian

修改审核后的状态

parent f69a1d67
...@@ -390,7 +390,7 @@ class SupplierApiController extends Controller ...@@ -390,7 +390,7 @@ class SupplierApiController extends Controller
//修改供应商状态 //修改供应商状态
$model->where('supplier_id', $supplierId)->update([ $model->where('supplier_id', $supplierId)->update([
'update_time' => time(), 'update_time' => time(),
'status' => SupplierChannelModel::STATUS_IN_REVIEW, 'status' => SupplierChannelModel::STATUS_PENDING,
]); ]);
$adminService = new AdminUserService(); $adminService = new AdminUserService();
$user = $adminService->getAdminUserInfoByCodeId($channelUid); $user = $adminService->getAdminUserInfoByCodeId($channelUid);
...@@ -448,7 +448,7 @@ class SupplierApiController extends Controller ...@@ -448,7 +448,7 @@ class SupplierApiController extends Controller
$supplierId = $request->get('supplier_id'); $supplierId = $request->get('supplier_id');
$channelModel = new SupplierChannelModel(); $channelModel = new SupplierChannelModel();
$result = $channelModel->where('supplier_id', $supplierId)->update([ $result = $channelModel->where('supplier_id', $supplierId)->update([
'status' => 1, 'status' => SupplierChannelModel::STATUS_IN_REVIEW,
'update_time' => time(), 'update_time' => time(),
]); ]);
if ($result) { if ($result) {
......
...@@ -81,7 +81,7 @@ class SupplierReceiptApiController extends Controller ...@@ -81,7 +81,7 @@ class SupplierReceiptApiController extends Controller
//修改供应商为审核状态 //修改供应商为审核状态
$supplierModel->where('supplier_id', $supplierId)->update([ $supplierModel->where('supplier_id', $supplierId)->update([
'update_time' => time(), 'update_time' => time(),
'status' => 1, 'status' => SupplierChannelModel::STATUS_PENDING,
]); ]);
} }
......
...@@ -15,7 +15,7 @@ class BlacklistService ...@@ -15,7 +15,7 @@ class BlacklistService
{ {
$supplierModel = new SupplierChannelModel(); $supplierModel = new SupplierChannelModel();
$result = $supplierModel->where('supplier_id', $supplierId)->update([ $result = $supplierModel->where('supplier_id', $supplierId)->update([
'status' => -3, 'status' => SupplierChannelModel::STATUS_BLOCK,
'update_time' => time(), 'update_time' => time(),
]); ]);
if ($result) { if ($result) {
......
...@@ -94,7 +94,7 @@ class SupplierContactService ...@@ -94,7 +94,7 @@ class SupplierContactService
//修改供应商为审核状态 //修改供应商为审核状态
$supplierModel->where('supplier_id', $contact['supplier_id'])->update([ $supplierModel->where('supplier_id', $contact['supplier_id'])->update([
'update_time' => time(), 'update_time' => time(),
'status' => 1, 'status' => SupplierChannelModel::STATUS_PENDING,
]); ]);
} }
......
...@@ -130,7 +130,7 @@ class SupplierService ...@@ -130,7 +130,7 @@ class SupplierService
$auditService = new SupplierAuditService(); $auditService = new SupplierAuditService();
$needAudit = $auditService->checkNeedAudit($supplierId, $channel, $attachment); $needAudit = $auditService->checkNeedAudit($supplierId, $channel, $attachment);
if ($needAudit) { if ($needAudit) {
$channel['status'] = SupplierChannelModel::STATUS_IN_REVIEW; $channel['status'] = SupplierChannelModel::STATUS_PENDING;
} }
$channel['update_time'] = time(); $channel['update_time'] = time();
$model->where('supplier_id', $supplierId)->update($channel); $model->where('supplier_id', $supplierId)->update($channel);
...@@ -368,7 +368,7 @@ class SupplierService ...@@ -368,7 +368,7 @@ class SupplierService
$result = $model->where('supplier_id', $supplierId)->update([ $result = $model->where('supplier_id', $supplierId)->update([
'update_time' => time(), 'update_time' => time(),
'is_type' => $isType, 'is_type' => $isType,
'status' => 1, 'status' => SupplierChannelModel::STATUS_PENDING,
]); ]);
if ($result) { if ($result) {
$logService = new LogService(); $logService = new LogService();
...@@ -408,7 +408,7 @@ class SupplierService ...@@ -408,7 +408,7 @@ class SupplierService
foreach ($supplierIds as $supplierId) { foreach ($supplierIds as $supplierId) {
$result = $model->where('supplier_id', $supplierId)->update([ $result = $model->where('supplier_id', $supplierId)->update([
'update_time' => time(), 'update_time' => time(),
'status' => 1 'status' => SupplierChannelModel::STATUS_IN_REVIEW
]); ]);
if (!$result) { if (!$result) {
return $result; return $result;
...@@ -424,7 +424,7 @@ class SupplierService ...@@ -424,7 +424,7 @@ class SupplierService
$model = new SupplierChannelModel(); $model = new SupplierChannelModel();
$model->where('supplier_id', $supplier['supplier_id'])->update([ $model->where('supplier_id', $supplier['supplier_id'])->update([
'update_time' => time(), 'update_time' => time(),
'status' => 0, 'status' => SupplierChannelModel::STATUS_PENDING,
'is_type' => 0 'is_type' => 0
]); ]);
} }
......
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