Merge branch 'company_server' of https://gitee.com/doc_wei01/skyeye into company_server

This commit is contained in:
wst 2024-12-14 20:21:06 +08:00
commit 1a32fd5a3f

View file

@ -210,7 +210,7 @@ public class CouponUseServiceImpl extends SkyeyeBusinessServiceImpl<CouponUseDao
List<CouponUse> list = list(queryWrapper);
couponService.setDataMation(list, CouponUse::getCouponId);
List<CouponUse> collect = list.stream().map(item -> {
item.setUsageCount(item.getUsedCount());
item.setUsageCount(item.getCouponMation().getUseCount());
return item;
}).collect(Collectors.toList());
return JSONUtil.toList(JSONUtil.toJsonStr(collect), null);