소스 검색

fix bug

release_toaliyun_real
zhengfangyuan 3 년 전
부모
커밋
19732d89a8
1개의 변경된 파일23개의 추가작업 그리고 6개의 파일을 삭제
  1. +23
    -6
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponOrderServiceImpl.java

+ 23
- 6
mallinkService/src/main/java/com/iformall/service/impl/WxCouponOrderServiceImpl.java 파일 보기

@@ -535,14 +535,31 @@ public class WxCouponOrderServiceImpl implements WxCouponOrderService {
}
}
Map<Long, List<WxMerchantVo>> couponMerchantVoMap = null;
if (null != mallCouponMerchantVoMap) {
couponMerchantVoMap = new HashMap<Long, List<WxMerchantVo>>();
for (Iterator<String> it = mallCouponMerchantVoMap.keySet().iterator();it.hasNext();) {
String mtid = it.next();
Map<Long,List<WxMerchantVo>> couponMerchantList = mallCouponMerchantVoMap.get(mtid);
if (null != couponMerchantList) {
for (Iterator<Long> cid = couponMerchantList.keySet().iterator();cid.hasNext();) {
Long couponId = cid.next();
List<WxMerchantVo> merchantVoList = couponMerchantList.get(couponId);
if (null != merchantVoList && merchantVoList.size() > 0 ) {
List<WxMerchantVo> vlist = couponMerchantVoMap.get(couponId);
if (null != vlist && vlist.size() > 0 ) {
merchantVoList.addAll(vlist);
}
couponMerchantVoMap.put(couponId, merchantVoList);
}
}
}
}
}
for (int i = 0 ; i < couponOrderList.size() ; i ++) {
WxCouponOrder couponOrder = couponOrderList.get(i);
Map<Long, List<WxMerchantVo>> couponMerchantVoMap = null;
if (!StringUtils.isBlank(couponOrder.getBTenantId())) {
if (null != mallCouponMerchantVoMap){
couponMerchantVoMap = mallCouponMerchantVoMap.get(couponOrder.getBTenantId());
}
}
if (null == couponMerchantVoMap) {
couponMerchantVoMap = new HashMap<Long, List<WxMerchantVo>>();
}


불러오는 중...
취소
저장