Просмотр исходного кода

[导入导出]1、修复空指针异常;2、优化线程处理

release_toaliyun_real
Burce 6 лет назад
Родитель
Сommit
7eca056eb6
1 измененных файлов: 5 добавлений и 5 удалений
  1. +5
    -5
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponOrderServiceImpl.java

+ 5
- 5
mallinkService/src/main/java/com/iformall/service/impl/WxCouponOrderServiceImpl.java Просмотреть файл

@@ -35,6 +35,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils;


import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
@@ -299,13 +300,12 @@ public class WxCouponOrderServiceImpl implements WxCouponOrderService {
} }
if (!c.getMerchantId().equals(0L)) { if (!c.getMerchantId().equals(0L)) {
List<WxMerchantVo> merchantVoList = c.getMerchantVoList(); List<WxMerchantVo> merchantVoList = c.getMerchantVoList();
if (!merchantVoList.isEmpty()) {
StringBuffer shopNumber = new StringBuffer();
StringBuffer building = new StringBuffer();
if (!CollectionUtils.isEmpty(merchantVoList)) {
StringBuilder shopNumber = new StringBuilder();
StringBuilder building = new StringBuilder();
WxMerchantVo wxMerchantVo = merchantVoList.get(0); WxMerchantVo wxMerchantVo = merchantVoList.get(0);
List<WxShopVo> shopVoList = wxMerchantVo.getShopVoList(); List<WxShopVo> shopVoList = wxMerchantVo.getShopVoList();
for (int j = 0, s_size = shopVoList.size(); j < s_size; j++) {
WxShopVo wxShopVo = shopVoList.get(j);
for (WxShopVo wxShopVo : shopVoList) {
shopNumber.append(wxShopVo.getShopNumber()).append(";"); shopNumber.append(wxShopVo.getShopNumber()).append(";");
building.append(wxShopVo.getBuildingName()).append(wxShopVo.getFloorName()).append(";"); building.append(wxShopVo.getBuildingName()).append(wxShopVo.getFloorName()).append(";");
} }


Загрузка…
Отмена
Сохранить