优惠券 报错

This commit is contained in:
2024-11-12 14:59:57 +08:00
parent f4d364fd21
commit cdfefd1f4c

View File

@@ -157,6 +157,7 @@ public class TbShopCouponServiceImpl implements TbShopCouponService {
}
} else {
List<TbShopUser> tbShopUser = shopUserMapper.selectAllByUserId(param.getUserId().toString());
if(CollectionUtil.isNotEmpty(tbShopUser)){
List<Integer> ids = tbShopUser.stream().map(TbShopUser::getId).map(Integer::valueOf).collect(Collectors.toList());
if (param.getStatus().equals(1)) {
return new Result(CodeEnum.SUCCESS, inRecordMapper.queryByVipIdAndShopId(ids, param.getShopId()));
@@ -166,6 +167,7 @@ public class TbShopCouponServiceImpl implements TbShopCouponService {
return new Result(CodeEnum.SUCCESS, outRecordMapper.queryByVipIdAndShopId(ids, param.getShopId()));
}
}
}
return new Result(CodeEnum.SUCCESS);
}