|
|
|
@@ -524,9 +524,10 @@ public class WxCouponOrderServiceImpl implements WxCouponOrderService { |
|
|
|
List<WxMerchant> merchantList = wxMerchantMapper.findIdNameList(merchantQ); |
|
|
|
Map<Long,String> merchantNameMap = new HashMap<Long,String>(); |
|
|
|
if (null != merchantList) { |
|
|
|
merchantList.parallelStream().forEach(m -> { |
|
|
|
for (int i = 0 ; i < merchantList.size() ; i ++) { |
|
|
|
WxMerchant m = merchantList.get(i); |
|
|
|
merchantNameMap.put(m.getId(), m.getName()); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
long times2 = System.currentTimeMillis(); |
|
|
|
@@ -536,9 +537,10 @@ public class WxCouponOrderServiceImpl implements WxCouponOrderService { |
|
|
|
List<WxCoupon> couponList = wxCouponMapper.findSimpleList(couponQ); |
|
|
|
Map<Long,WxCoupon> couponMap = new HashMap<Long,WxCoupon>(); |
|
|
|
if (null != couponList) { |
|
|
|
couponList.parallelStream().forEach(c -> { |
|
|
|
for (int i = 0 ; i < couponList.size() ; i ++) { |
|
|
|
WxCoupon c = couponList.get(i); |
|
|
|
couponMap.put(c.getId(), c); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
long times3 = System.currentTimeMillis(); |
|
|
|
@@ -548,13 +550,14 @@ public class WxCouponOrderServiceImpl implements WxCouponOrderService { |
|
|
|
List<WxMerchantProductVo> merchantProductVos = wxCouponMerchantMapper.findMerchantProduct(tenantEntity.getTenantId(), null); |
|
|
|
Map<Long,Long> merchantProductIdMap = new HashMap<Long,Long>(); |
|
|
|
if (null != merchantProductVos) { |
|
|
|
merchantProductVos.parallelStream().forEach(mp -> { |
|
|
|
for (int i = 0 ; i < merchantProductVos.size(); i ++) { |
|
|
|
WxMerchantProductVo mp = merchantProductVos.get(i); |
|
|
|
if (mp.getMc() > 1) { |
|
|
|
merchantProductIdMap.put(mp.getProductId(), -999L); |
|
|
|
}else { |
|
|
|
merchantProductIdMap.put(mp.getProductId(), mp.getMerchantId()); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
long times4 = System.currentTimeMillis(); |
|
|
|
|