Commit 27e2d142 by 杨树贤

数据转换

parent f91ddabc
...@@ -35,7 +35,7 @@ class SetSupplierFollowUp extends Command ...@@ -35,7 +35,7 @@ class SetSupplierFollowUp extends Command
// $service->importSupplierLevel(); // $service->importSupplierLevel();
// $service->changeSupplierTypeByIsType(); // $service->changeSupplierTypeByIsType();
// $service->transferPayType(); // $service->transferPayType();
// $service->makeTempTagForSupplier(); $service->makeTempTagForSupplier();
$service->makeSupplierSystemTagAbnormal(); // $service->makeSupplierSystemTagAbnormal();
} }
} }
...@@ -456,10 +456,10 @@ class DataService ...@@ -456,10 +456,10 @@ class DataService
$supplierId)->value('quality_assurance_agreement'); $supplierId)->value('quality_assurance_agreement');
//供应商性质为现货商,且没有上传品质协议,系统标签需要贴【临时供应商标签】,等级标记为E //供应商性质为现货商,且没有上传品质协议,系统标签需要贴【临时供应商标签】,等级标记为E
if (!$hasQualityAssuranceAgreement && $supplier['supplier_group'] == 2) { if (!$hasQualityAssuranceAgreement && $supplier['supplier_group'] == 2) {
if ($supplier['level'] != '' && $supplier['level'] != 'E') { // if ($supplier['level'] != '' && $supplier['level'] != 'E') {
echo "供应商编码 ${supplier['supplier_code']} 已经有等级${supplier['level']},但是不为等级E,跳过" . PHP_EOL; // echo "供应商编码 ${supplier['supplier_code']} 已经有等级${supplier['level']},但是不为等级E,跳过" . PHP_EOL;
continue; // continue;
} // }
echo "供应商编码 ${supplier['supplier_code']} 转换为临时供应商" . PHP_EOL; echo "供应商编码 ${supplier['supplier_code']} 转换为临时供应商" . PHP_EOL;
if ($change) { if ($change) {
SupplierChannelModel::where('supplier_id', $supplierId)->update([ SupplierChannelModel::where('supplier_id', $supplierId)->update([
......
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