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