From 1ff31e1338f95ea77eaaf35d475cb7c06e37869d Mon Sep 17 00:00:00 2001 From: cun-nan <19819293608@163.com> Date: Tue, 6 Feb 2024 18:10:15 +0800 Subject: [PATCH] bug --- .../order/controller/OilOrderController.java | 8 +- .../business/order/mapper/OilOrderMapper.java | 4 +- .../order/mapper/xml/OilOrderMapper.xml | 14 +-- .../order/service/OilOrderService.java | 4 +- .../service/impl/OilOrderServiceImpl.java | 6 +- .../fuint/business/order/vo/OilOrderVo.java | 2 + gasStation-uni/pagesMy/details/details.vue | 85 +++++++++++++++---- gasStation-uni/pagesMy/myorder/myorder.vue | 12 +-- 8 files changed, 95 insertions(+), 40 deletions(-) diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/controller/OilOrderController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/controller/OilOrderController.java index dcccd21dc..a16654b46 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/controller/OilOrderController.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/controller/OilOrderController.java @@ -268,12 +268,12 @@ public class OilOrderController extends BaseController { /** * 根据订单id查询油品订单信息(小程序) - * @param id + * @param orderNo * @return */ - @GetMapping("oilOrderId/{id}") - public ResponseObject getOilOrderInfo(@PathVariable Integer id){ - return getSuccessResult(orderService.selectOilOrderDescByOrderId(id)); + @GetMapping("oilOrderId/{orderNo}") + public ResponseObject getOilOrderInfo(@PathVariable String orderNo){ + return getSuccessResult(orderService.selectOilOrderDescByOrderId(orderNo)); } /** diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/OilOrderMapper.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/OilOrderMapper.java index 1a636f3f6..04f182bc5 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/OilOrderMapper.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/OilOrderMapper.java @@ -119,10 +119,10 @@ public interface OilOrderMapper extends BaseMapper { /** * 根据订单id查询订单详情信息 - * @param orderId + * @param orderNo * @return */ - OilOrderVo selectOilOrderDescByOrderId(@Param("orderId") Integer orderId); + OilOrderVo selectOilOrderDescByOrderId(@Param("orderNo") String orderNo); OilOrderVo getInfoByTime(@Param("time") Date time,@Param("list") List tankIds); } diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/OilOrderMapper.xml b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/OilOrderMapper.xml index 21b870399..bf841a7aa 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/OilOrderMapper.xml +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/OilOrderMapper.xml @@ -534,13 +534,15 @@