Commit 7ca8507d by 杨树贤

临时供应商打印跳过问题

parent 3738dd94
......@@ -32,9 +32,9 @@ class SetSupplierFollowUp extends Command
{
$service = new DataService();
// $service->transferAttachmentToNewTable();
$service->importSupplierLevel();
$service->changeSupplierTypeByIsType();
// $service->importSupplierLevel();
// $service->changeSupplierTypeByIsType();
// $service->transferPayType();
// $service->makeTempTagForSupplier();
$service->makeTempTagForSupplier();
}
}
......@@ -459,10 +459,11 @@ class DataService
continue;
}
$newTags = $supplier['system_tags'] ? rtrim($supplier['system_tags'], ',') . ',临时供应商' : '临时供应商';
if ($supplier['level']!='' && $supplier['level'] != 'E') {
echo "供应商编码 ${supplier['supplier_code']} 已经有等级${supplier['level']},但是不为等级E" . PHP_EOL;
if ($supplier['level'] != '' && $supplier['level'] != 'E') {
echo "供应商编码 ${supplier['supplier_code']} 已经有等级${supplier['level']},但是不为等级E,跳过" . PHP_EOL;
continue;
}
// echo "供应商编码 ${supplier['supplier_code']} 打上临时供应商标签,等级标记为E" . PHP_EOL;
echo "供应商编码 ${supplier['supplier_code']} 打上临时供应商标签,等级标记为E" . PHP_EOL;
if ($change) {
if ($tagService->saveTags($supplierId, 14, $newTags, $oldTags)) {
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