Commit 79255e14 by mushishixian

修改审核后的状态

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