Commit 890df309 by 杨树贤

Merge branch 'ysx-供应商等级导入-20220316'

parents 023e673f 4e13289f
Showing with 6 additions and 6 deletions
......@@ -315,9 +315,9 @@ class DataService
$number++;
echo '供应商不存在 : ' . $supplierName . PHP_EOL;
//然后修改excel
// $sheet->cell('D' . ($key + 1), function ($cell) {
// $cell->setValue('供应商不存在');
// });
$sheet->cell('D' . ($key + 1), function ($cell) {
$cell->setValue('供应商不存在');
});
} else {
$supplierLevelMap = $supplierLevelMap->toArray();
$supplierId = $supplierLevelMap['supplier_id'];
......@@ -328,9 +328,9 @@ class DataService
$supplierChannelModel->where('supplier_name', $supplierName)->update([
'level' => $level,
]);
// $sheet->cell('E' . ($key + 1), function ($cell) {
// $cell->setValue('修改成功');
// });
$sheet->cell('D' . ($key + 1), function ($cell) {
$cell->setValue('修改成功');
});
$originLevel = $supplierLevelMap['level'];
$originLevel = $originLevel ?: '无';
$content = "admin将供应商等级 $originLevel 修改为 $level";
......
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