Commit 27e2d142 by 杨树贤

数据转换

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