|
|
@@ -1970,6 +1970,14 @@ public class OtcTradeOrderServiceImpl implements OtcTradeOrderService {
|
|
|
}
|
|
|
int auditType = 0;
|
|
|
String orderNo = tradeOrderDO.getOrderNo();
|
|
|
+ Long oldvoyageId = tradeOrderDO.getVoyageId();
|
|
|
+ Long newvoyageId = createVO.getVoyageId();
|
|
|
+ if (newvoyageId == null) {
|
|
|
+ return CommonResult.error(ORDER_NOT_VOYAGE);
|
|
|
+ }
|
|
|
+ if(!Objects.equals(oldvoyageId, newvoyageId)){
|
|
|
+ return CommonResult.error(ORDER_NOT_VOYAGE_CHANGE);
|
|
|
+ }
|
|
|
//现在给整个订单号的加锁
|
|
|
String lockKey = String.format(ProductRedisKeyConstants.ORDER_REDIS_KEY_PREFIX, orderNo);
|
|
|
RLock lock = redissonClient.getLock(lockKey);
|