Authored by caoyan

物权转移

@@ -202,9 +202,15 @@ public class InBoxServiceImpl implements IInBoxService { @@ -202,9 +202,15 @@ public class InBoxServiceImpl implements IInBoxService {
202 } 202 }
203 203
204 List<InBoxAttr> attrList = inBoxAttrDao.selectInboxAttrList(uid, identifyInboxIdList); 204 List<InBoxAttr> attrList = inBoxAttrDao.selectInboxAttrList(uid, identifyInboxIdList);
  205 + if(CollectionUtils.isEmpty(attrList)) {
  206 + return voList;
  207 + }
205 Map<Integer, String> attrMap = attrList.stream().collect(Collectors.toMap(InBoxAttr::getInboxId, InBoxAttr::getJsonContent)); 208 Map<Integer, String> attrMap = attrList.stream().collect(Collectors.toMap(InBoxAttr::getInboxId, InBoxAttr::getJsonContent));
206 for(InBoxVO vo : voList) { 209 for(InBoxVO vo : voList) {
207 if(vo.getType().intValue() == 2 && vo.getBusinessType().intValue() == 2016) { 210 if(vo.getType().intValue() == 2 && vo.getBusinessType().intValue() == 2016) {
  211 + if(StringUtils.isEmpty(attrMap.get(vo.getId()))) {
  212 + continue;
  213 + }
208 JSONObject jo = JSON.parseObject(attrMap.get(vo.getId())); 214 JSONObject jo = JSON.parseObject(attrMap.get(vo.getId()));
209 int finalTime = jo.getIntValue("finalTime"); 215 int finalTime = jo.getIntValue("finalTime");
210 vo.setFinalTime(finalTime); 216 vo.setFinalTime(finalTime);