Commit 3738dd94 by 杨树贤

修改打印

parent 9e9031bf
......@@ -31,9 +31,9 @@ class SetSupplierFollowUp extends Command
public function handle()
{
$service = new DataService();
$service->transferAttachmentToNewTable();
// $service->importSupplierLevel();
// $service->changeSupplierTypeByIsType();
// $service->transferAttachmentToNewTable();
$service->importSupplierLevel();
$service->changeSupplierTypeByIsType();
// $service->transferPayType();
// $service->makeTempTagForSupplier();
}
......
......@@ -459,7 +459,10 @@ class DataService
continue;
}
$newTags = $supplier['system_tags'] ? rtrim($supplier['system_tags'], ',') . ',临时供应商' : '临时供应商';
echo "供应商编码 ${supplier['supplier_code']} 打上临时供应商标签,等级标记为E" . PHP_EOL;
if ($supplier['level']!='' && $supplier['level'] != 'E') {
echo "供应商编码 ${supplier['supplier_code']} 已经有等级${supplier['level']},但是不为等级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([
......@@ -478,8 +481,8 @@ class DataService
//将非正式供应商(is_type=1)的类别设置为待转正
public function changeSupplierTypeByIsType()
{
SupplierChannelModel::where('is_type', 1)->update([
'supplier_type' => 3
SupplierChannelModel::where('supplier_id', 13038)->update([
'supplier_type' => 1
]);
}
......@@ -668,7 +671,6 @@ class DataService
}
}
No preview for this file type
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