|
|
@@ -70,6 +70,7 @@ import java.util.Map;
|
|
|
import java.util.concurrent.atomic.AtomicReference;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
+import static com.yc.ship.framework.common.pojo.CommonResult.error;
|
|
|
import static com.yc.ship.framework.common.pojo.CommonResult.success;
|
|
|
import static com.yc.ship.framework.operatelog.core.enums.OperateTypeEnum.API;
|
|
|
import static com.yc.ship.framework.operatelog.core.enums.OperateTypeEnum.EXPORT;
|
|
|
@@ -401,7 +402,11 @@ public class OtcTradeOrderController {
|
|
|
@Operation(summary = "win-订单详情", description = "根据订单id查询订单详情")
|
|
|
@PlatTenantEnv
|
|
|
public CommonResult<TradeOrderRespNewVO> getOrderInfoNew(@Valid @RequestParam("id") Long id) {
|
|
|
- return success(otcTradeOrderService.getOrderInfoNew(id));
|
|
|
+ TradeOrderRespNewVO orderInfoNew = otcTradeOrderService.getOrderInfoNew(id);
|
|
|
+ if(orderInfoNew == null) {
|
|
|
+ return error(500,"订单已修改请刷新页面后再试");
|
|
|
+ }
|
|
|
+ return success(orderInfoNew);
|
|
|
}
|
|
|
|
|
|
@GetMapping("/window/orderConfirmation")
|