|
|
@@ -189,10 +189,10 @@ public class CouponController {
|
|
|
search.getDataList().forEach(data -> {
|
|
|
data.setRelationNum(couponDistributePopularizeMapper.selectCount(Wrappers.lambdaQuery(CouponDistributePopularize.class).eq(CouponDistributePopularize::getCouponId, data.getId())));
|
|
|
|
|
|
- Map<String,Integer> couponUserNumData = couponUserMapper.selectCouponUserNumData(data.getId());
|
|
|
- Integer usedNum = couponUserNumData.get("usedNum");
|
|
|
+ Map<String, Long> couponUserNumData = couponUserMapper.selectCouponUserNumData(data.getId());
|
|
|
+ Integer usedNum = Integer.parseInt(couponUserNumData.get("usedNum").toString());
|
|
|
data.setUsedNum(usedNum);
|
|
|
- Integer receiptNum = couponUserNumData.get("receiptNum");
|
|
|
+ Integer receiptNum = Integer.parseInt(couponUserNumData.get("receiptNum").toString());
|
|
|
data.setReceiptNum(receiptNum);
|
|
|
|
|
|
List<GoodsDonSkuView> skuViewList = couponSkuMapper.selectGoodsSkuViewList(data.getId());
|