mirror of
https://github.com/weizhiqiang1995/erp-pro.git
synced 2025-03-03 19:03:11 +08:00
feat: 修改根据状态和门店查询优惠券接口的数据库操作异常
This commit is contained in:
parent
c5c8572cf3
commit
64a589017b
1 changed files with 1 additions and 0 deletions
|
@ -208,6 +208,7 @@ public class CouponServiceImpl extends SkyeyeBusinessServiceImpl<CouponDao, Coup
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setDrawState(List<Coupon> list) {
|
private void setDrawState(List<Coupon> list) {
|
||||||
|
if(CollectionUtil.isEmpty(list))return;
|
||||||
List<String> couponIdList = list.stream().map(Coupon::getId).collect(Collectors.toList());
|
List<String> couponIdList = list.stream().map(Coupon::getId).collect(Collectors.toList());
|
||||||
Map<String, Integer> map = couponUseService.queryIdTotalMapByCouponId(couponIdList);
|
Map<String, Integer> map = couponUseService.queryIdTotalMapByCouponId(couponIdList);
|
||||||
for (Coupon coupon : list) {
|
for (Coupon coupon : list) {
|
||||||
|
|
Loading…
Reference in a new issue