Merge branch 'hotfix_qc_tab_20190701' into test6.9.7
# Conflicts: # order/src/main/java/com/yoho/ufo/order/service/impl/BuyerOrderServiceImpl.java
Showing
1 changed file
with
22 additions
and
3 deletions
@@ -100,13 +100,13 @@ import com.yoho.ufo.order.constant.OrderConfigConstant; | @@ -100,13 +100,13 @@ import com.yoho.ufo.order.constant.OrderConfigConstant; | ||
100 | import com.yoho.ufo.order.request.OrderOperateTask; | 100 | import com.yoho.ufo.order.request.OrderOperateTask; |
101 | import com.yoho.ufo.order.request.SaveQualityCheckInfoRequest; | 101 | import com.yoho.ufo.order.request.SaveQualityCheckInfoRequest; |
102 | import com.yoho.ufo.order.service.IBuyerOrderService; | 102 | import com.yoho.ufo.order.service.IBuyerOrderService; |
103 | +import com.yoho.ufo.order.service.event.DepotNumUpdateEvent; | ||
103 | import com.yoho.ufo.service.impl.UfoServiceCaller; | 104 | import com.yoho.ufo.service.impl.UfoServiceCaller; |
104 | import com.yoho.ufo.service.impl.UserHelper; | 105 | import com.yoho.ufo.service.impl.UserHelper; |
105 | import com.yoho.ufo.service.model.PageResponseBO; | 106 | import com.yoho.ufo.service.model.PageResponseBO; |
106 | import com.yoho.ufo.util.DateUtil; | 107 | import com.yoho.ufo.util.DateUtil; |
107 | import com.yoho.ufo.util.ImagesConstant; | 108 | import com.yoho.ufo.util.ImagesConstant; |
108 | import com.yoho.ufo.util.ImagesHelper; | 109 | import com.yoho.ufo.util.ImagesHelper; |
109 | -import com.yoho.ufo.util.ListUtil; | ||
110 | import com.yoho.ufo.util.MobileHelper; | 110 | import com.yoho.ufo.util.MobileHelper; |
111 | import com.yoho.ufo.util.OrderVideoUrlUtil; | 111 | import com.yoho.ufo.util.OrderVideoUrlUtil; |
112 | import com.yohobuy.ufo.model.order.bo.AppraiseExpressInfoBo; | 112 | import com.yohobuy.ufo.model.order.bo.AppraiseExpressInfoBo; |
@@ -444,14 +444,30 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService, ApplicationCon | @@ -444,14 +444,30 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService, ApplicationCon | ||
444 | resultMap.put("alreadyDeliverNum", alreadyDeliverNum); | 444 | resultMap.put("alreadyDeliverNum", alreadyDeliverNum); |
445 | resultMap.put("problemNum", problemNum); | 445 | resultMap.put("problemNum", problemNum); |
446 | //查询异常包裹 | 446 | //查询异常包裹 |
447 | - resultMap.put("exceptionNum", abnormalPackageMapper.selectValidCnt(queryStr, depotNo)); | 447 | + resultMap.put("exceptionNum", getExceptionNum(queryStr, depotNo)); |
448 | 448 | ||
449 | return resultMap; | 449 | return resultMap; |
450 | } | 450 | } |
451 | 451 | ||
452 | + private int getExceptionNum(String queryStr, Integer depotNo) { | ||
453 | + //先按订单号查对应的异常包裹 | ||
454 | + ExpressRecord expressRecord = expressRecordMapper.selectByOrderCodeAndType(queryStr, null, EXPRESS_TYPE_SELLER_TO_JUDGE); | ||
455 | + if(null != expressRecord) { | ||
456 | + return abnormalPackageMapper.selectValidCnt(expressRecord.getWaybillCode(), depotNo); | ||
457 | + } | ||
458 | + | ||
459 | + return abnormalPackageMapper.selectValidCnt(queryStr, depotNo); | ||
460 | + } | ||
461 | + | ||
452 | private List<BuyerOrder> queryOrderByQueryStr(String queryStr, Integer depotNo, Byte status) { | 462 | private List<BuyerOrder> queryOrderByQueryStr(String queryStr, Integer depotNo, Byte status) { |
453 | - //按卖家运单号来查 | 463 | + //先按订单号来查 |
454 | BuyerOrderReq req = new BuyerOrderReq(); | 464 | BuyerOrderReq req = new BuyerOrderReq(); |
465 | + req.setOrderCode(queryStr); | ||
466 | + req.setDepotNo(depotNo); | ||
467 | + req.setStatus(status); | ||
468 | + req.setSize(100); | ||
469 | + List<BuyerOrder> orderList = buyerOrderMapper.selectByCondition(req); | ||
470 | + if(CollectionUtils.isEmpty(orderList)){//再按卖家运单号来查 | ||
455 | req = new BuyerOrderReq(); | 471 | req = new BuyerOrderReq(); |
456 | req.setSellerWaybillCode(queryStr); | 472 | req.setSellerWaybillCode(queryStr); |
457 | req.setDepotNo(depotNo); | 473 | req.setDepotNo(depotNo); |
@@ -463,6 +479,9 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService, ApplicationCon | @@ -463,6 +479,9 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService, ApplicationCon | ||
463 | } | 479 | } |
464 | 480 | ||
465 | return list; | 481 | return list; |
482 | + }else{ | ||
483 | + return orderList; | ||
484 | + } | ||
466 | } | 485 | } |
467 | 486 | ||
468 | public Map<String, Integer> getCountByOrderStatus(){ | 487 | public Map<String, Integer> getCountByOrderStatus(){ |
-
Please register or login to post a comment