删除商户同时删除store_service
This commit is contained in:
parent
e323a58efc
commit
f8b060c1e7
@ -18,6 +18,7 @@ use app\common\dao\system\merchant\MerchantDao;
|
||||
use app\common\dao\system\serve\ServeOrderDao;
|
||||
use app\common\model\store\order\StoreOrder;
|
||||
use app\common\model\store\product\ProductReply;
|
||||
use app\common\model\store\service\StoreService;
|
||||
use app\common\model\system\merchant\Merchant;
|
||||
use app\common\repositories\BaseRepository;
|
||||
use app\common\repositories\store\coupon\StoreCouponRepository;
|
||||
@ -463,6 +464,7 @@ class MerchantRepository extends BaseRepository
|
||||
{
|
||||
Db::transaction(function () use ($id) {
|
||||
$this->dao->update($id, ['is_del' => 1]);
|
||||
StoreService::getInstance()->update(['is_del' => 1], ['mer_id' => $id]);
|
||||
app()->make(MerchantAdminRepository::class)->deleteMer($id);
|
||||
Queue::push(ClearMerchantStoreJob::class, ['mer_id' => $id]);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user