...
|
...
|
@@ -434,12 +434,16 @@ public class AppraiseService { |
|
|
* 更新发到卖家的物流信息
|
|
|
* 将卖家的保证金分账给平台和买家
|
|
|
* 更新买家订单状态
|
|
|
* @param expressCompanyId
|
|
|
* @param orderCode
|
|
|
* @param wayBillCode
|
|
|
* @return
|
|
|
*/
|
|
|
public ApiResponse appraiseFail(Integer expressCompanyId, Long orderCode, String wayBillCode, Integer depotNum,String mobile){
|
|
|
public ApiResponse appraiseFail(AppraiseExpressInfoBo appraiseExpressInfoBo,OrderStatus expectStatus,boolean sendExpressFlag){
|
|
|
LOGGER.info("appraiseFail enter , appraiseExpressInfoBo {} ,sendExpressFlag {}", appraiseExpressInfoBo ,sendExpressFlag);
|
|
|
Integer expressCompanyId = appraiseExpressInfoBo.getExpressCompanyId();
|
|
|
Long orderCode = appraiseExpressInfoBo.getOrderCode();
|
|
|
String wayBillCode = appraiseExpressInfoBo.getWayBillCode();
|
|
|
Integer depotNum = appraiseExpressInfoBo.getDepotNum();
|
|
|
String mobile = appraiseExpressInfoBo.getMobile();
|
|
|
|
|
|
ApiResponse apiResponse=new ApiResponse();
|
|
|
BuyerOrder buyerOrder = buyerOrderMapper.selectOnlyByOrderCode(orderCode);
|
|
|
|
...
|
...
|
@@ -447,7 +451,7 @@ public class AppraiseService { |
|
|
LOGGER.warn("appraiseFail getOrderInfo order not exist, orderCode {}", orderCode);
|
|
|
throw new ServiceException(ServiceError.ORDER_NULL);
|
|
|
}
|
|
|
OrderStatus expectStatus = OrderStatus.PLATFORM_CHECKING;
|
|
|
|
|
|
if (buyerOrder.getStatus() != expectStatus.getCode()){
|
|
|
LOGGER.warn("appraiseFail expectStatus {}, actual status {}, orderCode {}", expectStatus,
|
|
|
buyerOrder.getStatus(), orderCode);
|
...
|
...
|
@@ -564,7 +568,10 @@ public class AppraiseService { |
|
|
}finally {
|
|
|
//更新物流信息,写到最后
|
|
|
//鉴定不通过,发物流
|
|
|
expressInfoService.returnBackOrderCauseOfJudgeFailure(sellerUid, expressCompanyId, orderCode, wayBillCode, depotNum,mobile);
|
|
|
if(sendExpressFlag){
|
|
|
expressInfoService.returnBackOrderCauseOfJudgeFailure(sellerUid, expressCompanyId, orderCode, wayBillCode, depotNum,mobile);
|
|
|
}
|
|
|
|
|
|
|
|
|
//记录调拨信息(只保存卖家一条)
|
|
|
EnumExpressType expressType = EnumExpressType.EXPRESS_TYPE_JUDGE_CENTER;
|
...
|
...
|
|