活动 优惠券问题
This commit is contained in:
parent
592afb7aa1
commit
75ed45b412
|
|
@ -1,6 +1,7 @@
|
|||
package com.czg.service.account.service.impl;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.date.LocalDateTimeUtil;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
|
|
@ -163,6 +164,9 @@ public class ShopActivateServiceImpl extends ServiceImpl<ShopActivateMapper, Sho
|
|||
private List<ShopCoupon> getCoupons(String couponJson) {
|
||||
Map<String, Integer> couponMap = JSONObject.parseObject(couponJson, new TypeReference<>() {
|
||||
});
|
||||
if (couponMap.isEmpty()) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
List<ShopCoupon> list = couponService.queryChain()
|
||||
.select(ShopCoupon::getId, ShopCoupon::getTitle, ShopCoupon::getLeftNumber)
|
||||
.in(ShopCoupon::getId, couponMap.keySet())
|
||||
|
|
|
|||
Loading…
Reference in New Issue