Commit 442446eb by 吕明尚

删除用户删除门店关联

parent 9dde976e
...@@ -25,17 +25,15 @@ import share.common.enums.RoleTypeEnum; ...@@ -25,17 +25,15 @@ import share.common.enums.RoleTypeEnum;
import share.common.exception.base.BaseException; import share.common.exception.base.BaseException;
import share.common.utils.BaseUtil; import share.common.utils.BaseUtil;
import share.common.utils.DateUtil; import share.common.utils.DateUtil;
import share.system.domain.SConsumerCoupon; import share.system.domain.*;
import share.system.domain.SRoomPack;
import share.system.domain.SStoreConsumer;
import share.system.domain.vo.FrontTokenComponent; import share.system.domain.vo.FrontTokenComponent;
import share.system.domain.vo.SConsumerVo; import share.system.domain.vo.SConsumerVo;
import share.system.mapper.SConsumerMapper; import share.system.mapper.SConsumerMapper;
import share.system.domain.SConsumer;
import share.system.mapper.SStoreConsumerMapper; import share.system.mapper.SStoreConsumerMapper;
import share.system.request.RegisterThirdSConsumerRequest; import share.system.request.RegisterThirdSConsumerRequest;
import share.system.service.ISConsumerCouponService; import share.system.service.ISConsumerCouponService;
import share.system.service.SConsumerService; import share.system.service.SConsumerService;
import share.system.service.SConsumerTokenService;
/** /**
* 会员用户Service业务层处理 * 会员用户Service业务层处理
...@@ -53,6 +51,8 @@ public class SConsumerServiceImpl extends ServiceImpl<SConsumerMapper, SConsumer ...@@ -53,6 +51,8 @@ public class SConsumerServiceImpl extends ServiceImpl<SConsumerMapper, SConsumer
private ISConsumerCouponService sConsumerCouponService; private ISConsumerCouponService sConsumerCouponService;
@Autowired @Autowired
private SStoreConsumerMapper storeConsumerMapper; private SStoreConsumerMapper storeConsumerMapper;
@Autowired
private SConsumerTokenService sConsumerTokenService;
/** /**
* 查询会员用户 * 查询会员用户
...@@ -118,6 +118,9 @@ public class SConsumerServiceImpl extends ServiceImpl<SConsumerMapper, SConsumer ...@@ -118,6 +118,9 @@ public class SConsumerServiceImpl extends ServiceImpl<SConsumerMapper, SConsumer
@Override @Override
public int deleteSConsumerByIds(Long[] ids) public int deleteSConsumerByIds(Long[] ids)
{ {
List<Long> idList = ListUtil.toList(ids);
storeConsumerMapper.delete(new LambdaQueryWrapper<SStoreConsumer>().in(SStoreConsumer::getConsumerId, idList));
sConsumerTokenService.remove(new LambdaQueryWrapper<SConsumerToken>().in(SConsumerToken::getUid, idList));
return baseMapper.deleteSConsumerByIds(ids); return baseMapper.deleteSConsumerByIds(ids);
} }
......
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 to comment