...
|
...
|
@@ -695,6 +695,8 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { |
|
|
return false;
|
|
|
}
|
|
|
|
|
|
@Autowired
|
|
|
private AppraiseOrderMapper appraiseOrderMapper;
|
|
|
|
|
|
@Override
|
|
|
public void confirmReceive(long orderCode) {
|
...
|
...
|
@@ -721,13 +723,22 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { |
|
|
List<Integer> status = Lists.newArrayList(AppraiseOrderStatus.SELLER_SEND_OUT.getCode());
|
|
|
int cnt = serviceOrderProcessor.getSubOrderCntNotDefinedStatus(parentOrderCode, status);
|
|
|
logger.info("no confirm delivery sub order cnt is {}, parentOrderCode {}", cnt, parentOrderCode);
|
|
|
|
|
|
int cdt = DateUtil.getCurrentTimeSecond();
|
|
|
//
|
|
|
if (cnt == 0){
|
|
|
// 平台收货 内部调拨信息
|
|
|
EnumExpressType expressType = EnumExpressType.EXPRESS_TYPE_JUDGE_CENTER;
|
|
|
EnumExpressDataType expressDataType = EnumExpressDataType.operate_transfer;
|
|
|
EnumExpressDataOperateTransferCode operateTransferCode = EnumExpressDataOperateTransferCode.platform_receive;
|
|
|
expressInfoService.saveOperateTransferExpressInfo(existenceNode.getAppraiseOrder().getUid(),parentOrderCode ,expressType.getCode(),expressDataType,operateTransferCode);
|
|
|
try {
|
|
|
EnumExpressType expressType = EnumExpressType.EXPRESS_TYPE_JUDGE_CENTER;
|
|
|
EnumExpressDataType expressDataType = EnumExpressDataType.operate_transfer;
|
|
|
EnumExpressDataOperateTransferCode operateTransferCode = EnumExpressDataOperateTransferCode.platform_receive;
|
|
|
expressInfoService.saveOperateTransferExpressInfo(existenceNode.getAppraiseOrder().getUid(), parentOrderCode, expressType.getCode(), expressDataType, operateTransferCode);
|
|
|
}catch (Exception ex){
|
|
|
logger.warn("in confirmReceive isGoodsServiceOrder saveOperateTransferExpressInfo fail ,orderCode {} ", orderCode, ex);
|
|
|
}
|
|
|
//update
|
|
|
AppraiseOrderStatus targetStatus = AppraiseOrderStatus.PLATFORM_RECEIVE,
|
|
|
expectedStatus = AppraiseOrderStatus.SELLER_SEND_OUT;
|
|
|
appraiseOrderMapper.updateStatusByOrderCode(parentOrderCode, targetStatus.getCode(), expectedStatus.getCode(), cdt);
|
|
|
}
|
|
|
|
|
|
return;
|
...
|
...
|
|