Commit d1f5bcd7 by 杨树贤

优化代码

parent 83beea0d
Showing with 3 additions and 16 deletions
......@@ -22,6 +22,7 @@ class SupplierService
public $newSupplierId = 0;
//获取供应商列表
public function getSupplierList($map)
{
$model = new SupplierChannelModel();
......@@ -43,6 +44,7 @@ class SupplierService
return $list;
}
public function getSupplier($supplierId, $getExtraInfo = false)
{
$model = new SupplierChannelModel();
......@@ -57,6 +59,7 @@ class SupplierService
}
public function saveSupplier($channel)
{
$supplierTransformer = new SupplierTransformer();
......@@ -671,22 +674,6 @@ class SupplierService
return true;
}
//申请审核供应商
public function applyInReviewSupplier($supplierId, $channel)
{
$model = new SupplierChannelModel();
$needAudit = (new SupplierAuditService())->checkNeedAudit($supplierId, $channel);
$result = $model->where('supplier_id', $data['supplier_id'])->update([
'update_time' => time(),
'apply_audit_reason' => $data['apply_audit_reason'],
'status' => SupplierChannelModel::STATUS_IN_REVIEW
]);
if (!$result) {
return $result;
}
return true;
}
//判断是否自动转正,并且还要修改为待提审状态给相关人员进行补充资料
public function autoChangeIsType($supplier)
{
......
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