Commit d29646e4 by 杨树贤

忽略复审步骤

parent 0a5b65ab
......@@ -7,3 +7,4 @@ Homestead.json
/.history
/vendor/_laravel_idea/*
/vendor/_laravel_idea
/storage/framework/views
\ No newline at end of file
......@@ -19,10 +19,10 @@ class SupplierAuditService
$supplier = $supplierModel->where('supplier_id', $supplierId)->first()->toArray();
//如果需要复审并且审核状态为审核中,则代表这次审核为第一次审核或者供应商类型从临时修改为正式
if ($supplier['status'] == SupplierChannelModel::STATUS_IN_REVIEW && $supplier['need_review'] == 1) {
//第一次审核,通过是将审核状态置为待复审
//第一次审核,通过是将审核状态置为待复审(现在要改成直接通过复审了)
//通过
if ($status == SupplierChannelModel::STATUS_PASSED) {
$dbStatus = SupplierChannelModel::STATUS_NEED_REVIEW;
$dbStatus = SupplierChannelModel::STATUS_PASSED;
} else {
//不通过
$dbStatus = $status;
......@@ -30,6 +30,7 @@ class SupplierAuditService
$update = [
'update_time' => time(),
'status' => $dbStatus,
'need_review' => 0,
'reject_reason' => $rejectReason,
];
$result = $model->where('supplier_id', $supplierId)->update($update);
......@@ -51,8 +52,8 @@ class SupplierAuditService
'reject_reason' => $rejectReason,
]);
}
//剩下的就是普通的审核
} else {
//剩下的就是普通的审核
$result = $model->where('supplier_id', $supplierId)->update([
'update_time' => time(),
'status' => $status,
......
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