|
|
|
@ -4,7 +4,7 @@ declare (strict_types=1); |
|
|
|
|
|
|
|
|
|
namespace app\job\controller\goods; |
|
|
|
|
|
|
|
|
|
use app\job\service\goods\GoodsDelete as GoodsDeleteService; |
|
|
|
|
use app\job\service\goods\StoreGoodsDelete as StoreGoodsDeleteService; |
|
|
|
|
use cores\BaseJob; |
|
|
|
|
use cores\traits\QueueTrait; |
|
|
|
|
use cores\exception\BaseException; |
|
|
|
@ -17,7 +17,7 @@ use think\db\exception\ModelNotFoundException; |
|
|
|
|
* Class Import |
|
|
|
|
* @package app\job\controller |
|
|
|
|
*/ |
|
|
|
|
class GoodsDelete extends BaseJob |
|
|
|
|
class StoreGoodsDelete extends BaseJob |
|
|
|
|
{ |
|
|
|
|
use QueueTrait; |
|
|
|
|
|
|
|
|
@ -33,9 +33,9 @@ class GoodsDelete extends BaseJob |
|
|
|
|
public function handle(array $data): bool |
|
|
|
|
{ |
|
|
|
|
$time = date('H:i:s'); |
|
|
|
|
echo "\n ---- GoodsDelete ---- {$time} ---- \n"; |
|
|
|
|
echo "\n ---- StoreGoodsDelete ---- {$time} ---- \n"; |
|
|
|
|
|
|
|
|
|
$service = new GoodsDeleteService; |
|
|
|
|
$service = new StoreGoodsDeleteService; |
|
|
|
|
return $service->batch($data['list']); |
|
|
|
|
} |
|
|
|
|
} |