|
|
@ -89,7 +89,16 @@ class Import extends ImportModel |
|
|
|
// $obj = new \app\job\service\goods\AdminImport(); |
|
|
|
// $obj = new \app\job\service\goods\AdminImport(); |
|
|
|
// $service = new \app\job\service\goods\Collector(); |
|
|
|
// $service = new \app\job\service\goods\Collector(); |
|
|
|
// foreach ($execlData as $item) { |
|
|
|
// foreach ($execlData as $item) { |
|
|
|
|
|
|
|
// $info = \app\common\model\Goods::where('goods_no', $item['C'])->where('store_id', self::$storeId)->where('channel', $item['B'])->where('is_delete',0)->find(); |
|
|
|
|
|
|
|
// // var_dump($item['C']); |
|
|
|
|
|
|
|
// // var_dump($info); |
|
|
|
|
|
|
|
// if ($info) { |
|
|
|
|
|
|
|
// var_dump($info->goods_id); |
|
|
|
|
|
|
|
// $this->successCount++; |
|
|
|
|
|
|
|
// continue; |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
// //var_dump($info->goods_id); |
|
|
|
|
|
|
|
// //exit(); |
|
|
|
// $data = $obj->createData($item, self::$storeId); |
|
|
|
// $data = $obj->createData($item, self::$storeId); |
|
|
|
// $service->single($item['D'], $data, self::$storeId); |
|
|
|
// $service->single($item['D'], $data, self::$storeId); |
|
|
|
// // // 记录导入成功 |
|
|
|
// // // 记录导入成功 |
|
|
|