feat: 根据门店id获取优惠券信息暂时未作storeId的相关操作

This commit is contained in:
wst 2024-12-14 21:45:40 +08:00
parent e2560506ed
commit 31915b69a8

View file

@ -213,12 +213,7 @@ public class CouponServiceImpl extends SkyeyeBusinessServiceImpl<CouponDao, Coup
QueryWrapper<Coupon> queryWrapper = new QueryWrapper<>();
String storeId = params.get("storeId").toString();
String type = params.get("type").toString();
List<CouponStore> couponStoreList = couponStoreService.queryListByStoreId(storeId);
List<String> couponIdList = couponStoreList.stream().map(CouponStore::getCouponId).distinct().collect(Collectors.toList());
if(CollectionUtil.isEmpty(couponIdList)){
return;
}
queryWrapper.in(CommonConstants.ID, couponIdList);
// todo storeId未做
String typeKey = MybatisPlusUtil.toColumns(Coupon::getTemplateId);
if (StrUtil.equals(type, CommonNumConstants.NUM_ZERO.toString())) {
queryWrapper.and(wrapper -> {