...
|
...
|
@@ -3,7 +3,9 @@ package com.yohoufo.order.service.impl; |
|
|
import com.yohobuy.ufo.model.order.common.AppraiseOrderStatus;
|
|
|
import com.yohobuy.ufo.model.order.req.DeliverToDepotReq;
|
|
|
import com.yohoufo.common.utils.DateUtil;
|
|
|
import com.yohoufo.dal.order.AppraiseOrderGoodsMapper;
|
|
|
import com.yohoufo.dal.order.AppraiseOrderMapper;
|
|
|
import com.yohoufo.dal.order.model.AppraiseOrderGoods;
|
|
|
import com.yohoufo.order.service.IGoodsService;
|
|
|
import com.yohoufo.order.service.proxy.OrderStatusFlowService;
|
|
|
import com.yohoufo.order.utils.LoggerUtils;
|
...
|
...
|
@@ -18,6 +20,9 @@ public abstract class AbsGoodsServiceOrderService implements IGoodsService { |
|
|
@Autowired
|
|
|
private OrderStatusFlowService orderStatusFlowService;
|
|
|
|
|
|
@Autowired
|
|
|
private AppraiseOrderGoodsMapper appraiseOrderGoodsMapper;
|
|
|
|
|
|
@Override
|
|
|
public int deliver2Depot(DeliverToDepotReq req){
|
|
|
Long orderCode = req.getOrderCode();
|
...
|
...
|
@@ -25,7 +30,14 @@ public abstract class AbsGoodsServiceOrderService implements IGoodsService { |
|
|
expectedStatus = AppraiseOrderStatus.HAS_PAYED;
|
|
|
|
|
|
int rows = triggerStatusChange(orderCode, targetStatus, expectedStatus);
|
|
|
logger.info("appraise order deliver2Depot update status, orderCode {} rows {}", orderCode, rows);
|
|
|
logger.info("appraise order deliver2Depot update status, req {} rows {}", req, rows);
|
|
|
if (rows>0){
|
|
|
AppraiseOrderGoods aogc = new AppraiseOrderGoods();
|
|
|
aogc.setOrderCode(orderCode);
|
|
|
aogc.setDepotNo(req.getDepotNum());
|
|
|
int depotPrdCnt = appraiseOrderGoodsMapper.updateDepotNo(aogc);
|
|
|
logger.info("appraise order deliver2Depot update status, req {} depotPrdCnt {}", req, depotPrdCnt);
|
|
|
}
|
|
|
return rows;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -54,6 +66,15 @@ public abstract class AbsGoodsServiceOrderService implements IGoodsService { |
|
|
return rows;
|
|
|
}
|
|
|
|
|
|
public int platformChecking(long orderCode){
|
|
|
AppraiseOrderStatus targetStatus = AppraiseOrderStatus.PLATFORM_CHECKING,
|
|
|
expectedStatus = AppraiseOrderStatus.PLATFORM_RECEIVE;
|
|
|
|
|
|
int rows = triggerStatusChange(orderCode, targetStatus, expectedStatus);
|
|
|
logger.info("appraise order platformChecking update status, orderCode {} rows {}", orderCode, rows);
|
|
|
return rows;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 鉴定通过
|
|
|
* @param orderCode
|
...
|
...
|
@@ -61,7 +82,7 @@ public abstract class AbsGoodsServiceOrderService implements IGoodsService { |
|
|
@Override
|
|
|
public int appraisePass(long orderCode){
|
|
|
AppraiseOrderStatus targetStatus = AppraiseOrderStatus.JUDGE_PASS,
|
|
|
expectedStatus = AppraiseOrderStatus.PLATFORM_RECEIVE;
|
|
|
expectedStatus = AppraiseOrderStatus.PLATFORM_CHECKING;
|
|
|
|
|
|
int rows = triggerStatusChange(orderCode, targetStatus, expectedStatus);
|
|
|
logger.info("appraise order appraisePass update status, orderCode {} rows {}", orderCode, rows);
|
...
|
...
|
|