Authored by chenchao

fix loss uid

@@ -397,7 +397,7 @@ public class BuyerOrderCancelService { @@ -397,7 +397,7 @@ public class BuyerOrderCancelService {
397 logger.warn("cancelOverseasOrder fail -> buyerOrderMapper.updateStatusByOrderCode, orderCode {}", orderCode); 397 logger.warn("cancelOverseasOrder fail -> buyerOrderMapper.updateStatusByOrderCode, orderCode {}", orderCode);
398 return; 398 return;
399 } 399 }
400 - saveFailRecord(orderCode, failReason); 400 + saveFailRecord(buyerUid, orderCode, failReason);
401 401
402 int sellerUid = buyerOrder.getSellerUid(); 402 int sellerUid = buyerOrder.getSellerUid();
403 //clean cache 403 //clean cache
@@ -432,9 +432,10 @@ public class BuyerOrderCancelService { @@ -432,9 +432,10 @@ public class BuyerOrderCancelService {
432 orderStatusFlowService.addAsy(orderCode,targetStatus.getCode()); 432 orderStatusFlowService.addAsy(orderCode,targetStatus.getCode());
433 } 433 }
434 434
435 - private int saveFailRecord(long orderCode, String failReason){ 435 + private int saveFailRecord(int uid, long orderCode, String failReason){
436 BuyerOrderMeta record = new BuyerOrderMeta(); 436 BuyerOrderMeta record = new BuyerOrderMeta();
437 record.setOrderCode(orderCode); 437 record.setOrderCode(orderCode);
  438 + record.setUid(uid);
438 record.setMetaKey(MetaKey.CUSTOMS_CLEARANCE); 439 record.setMetaKey(MetaKey.CUSTOMS_CLEARANCE);
439 CustomsClearanceResult ccr = CustomsClearanceResult.builder() 440 CustomsClearanceResult ccr = CustomsClearanceResult.builder()
440 .type(CustomsClearanceResultType.fail.getCode()) 441 .type(CustomsClearanceResultType.fail.getCode())