shopID问题
This commit is contained in:
@@ -244,7 +244,10 @@ public class ShopCouponServiceImpl extends ServiceImpl<ShopCouponMapper, ShopCou
|
||||
@Override
|
||||
public Page<UserCouponVO> find(Long userId, String name, Long shopId, Integer status) {
|
||||
Page<Object> page = PageUtil.buildPage();
|
||||
Long mainShopId = shopInfoService.getMainIdByShopId(shopId);
|
||||
Long mainShopId = null;
|
||||
if (shopId != null) {
|
||||
mainShopId = shopInfoService.getMainIdByShopId(shopId);
|
||||
}
|
||||
List<Long> shopUserIds = shopUserService.listAs(new QueryWrapper().eq(ShopUser::getUserId, userId)
|
||||
.eq(ShopUser::getMainShopId, mainShopId)
|
||||
.select(ShopUser::getId), Long.class);
|
||||
|
||||
Reference in New Issue
Block a user