feature 1.增加判断逻辑

release
zhenghaiyang@ele-cloud.com 2 years ago
parent 75910cf06e
commit df15763b14
  1. 2
      order-management-consumer/src/main/java/com/dxhy/order/consumer/openapi/service/impl/CommonInterfaceServiceImpl.java

@ -715,7 +715,7 @@ public class CommonInterfaceServiceImpl implements CommonInterfaceService {
long end = System.currentTimeMillis(); long end = System.currentTimeMillis();
log.debug("{}订单明细信息补全耗时:{}", LOGGER_MSG, end - start); log.debug("{}订单明细信息补全耗时:{}", LOGGER_MSG, end - start);
if(cpyList.size() == orderItemInfo.size()){ if(cpyList.size() == orderItemInfo.size()){
boolean allMatch = cpyList.stream().allMatch(cpy -> cpy.equals("Y")); boolean allMatch = cpyList.stream().allMatch(cpy -> StringUtils.isNotBlank(cpy) && "Y".equals(cpy));
if(allMatch){ if(allMatch){
hashMap.put("cpy",OrderInfoEnum.QDBZ_CODE_4.getKey()); hashMap.put("cpy",OrderInfoEnum.QDBZ_CODE_4.getKey());
} }

Loading…
Cancel
Save