From 35b1aad4e41bafdc9f1751a673f27c8676d9838f Mon Sep 17 00:00:00 2001 From: yuyang <2265829957@qq.com> Date: Sun, 15 Aug 2021 22:09:54 +0800 Subject: [PATCH] =?UTF-8?q?PC=E7=AB=AF=20=E5=AE=9E=E6=97=B6=E8=AE=A2?= =?UTF-8?q?=E5=8D=95/=E5=BC=82=E5=B8=B8=E8=AE=A2=E5=8D=95=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/HxpcChargeOrderController.java | 4 ++-- .../XhpcRealTimeOrderController.java | 13 +++++++------ .../order/mapper/XhpcRealTimeOrderMapper.java | 2 +- .../service/IXhpcRealTimeOrderService.java | 3 ++- .../impl/XhpcRealTimeOrderServiceImpl.java | 6 +++--- .../mapper/XhpcRealTimeOrderMapper.xml | 19 ++++++++++--------- 6 files changed, 25 insertions(+), 22 deletions(-) diff --git a/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/controller/HxpcChargeOrderController.java b/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/controller/HxpcChargeOrderController.java index de428617..cfb841f1 100644 --- a/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/controller/HxpcChargeOrderController.java +++ b/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/controller/HxpcChargeOrderController.java @@ -27,7 +27,7 @@ public class HxpcChargeOrderController extends BaseController { private IHxpcChargeOrderService iHxpcChargeOrderService; /** - * 实时订单 + * 实时订单(微信) */ @GetMapping("/getHistotyChargeOrderMessage") public AjaxResult getHistotyChargeOrderMessage(@RequestParam Long userId) @@ -36,7 +36,7 @@ public class HxpcChargeOrderController extends BaseController { } /** - * 异常订单 + * 异常订单(微信) */ @GetMapping("/getHistotyChargeOrderStatusList") public TableDataInfo getHistotyChargeOrderStatusList(@RequestParam Long userId) diff --git a/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/controller/XhpcRealTimeOrderController.java b/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/controller/XhpcRealTimeOrderController.java index 656adcd0..b3e7f6fb 100644 --- a/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/controller/XhpcRealTimeOrderController.java +++ b/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/controller/XhpcRealTimeOrderController.java @@ -27,7 +27,7 @@ public class XhpcRealTimeOrderController extends BaseController { /** - * 实时订单接口 + * 实时/异常订单接口(PC) * @param phone 用户账号 * @param transactionNumber 订单编号 * @param source 用户类型 0C端用户 1流量用户 @@ -36,18 +36,19 @@ public class XhpcRealTimeOrderController extends BaseController { * @param operatorId 运营商 * @param startTime 订单开始时间 * @param endTime 订单结束时间 + * @param status 状态(-1准备充电 0开始充电 1自动结算,2异常,3平台结算) * @return */ @GetMapping("/list") - public TableDataInfo list(String phone,String transactionNumber,Integer source,String chargingStationName,String terminalName,Long operatorId,String startTime,String endTime) + public TableDataInfo list(String phone,String transactionNumber,Integer source,String chargingStationName,String terminalName,Long operatorId,String startTime,String endTime,@RequestParam("status") Integer status) { startPage(); - List> list = xhpcRealTimeOrderService.list(phone, transactionNumber, source, chargingStationName,terminalName, operatorId, startTime, endTime); + List> list = xhpcRealTimeOrderService.list(phone, transactionNumber, source, chargingStationName,terminalName, operatorId, startTime, endTime,status); return getDataTable(list); } /** - * 实时订单详情 + * 实时/异常订单详情(PC) */ @GetMapping("/getMessage") public AjaxResult getMessage(@RequestParam Long realTimeOrderId) @@ -57,7 +58,7 @@ public class XhpcRealTimeOrderController extends BaseController { } /** - * 实时订单详情数据列表(PC) + * 实时/异常订单详情数据列表(PC) * @param chargingOrderId * @return */ @@ -70,7 +71,7 @@ public class XhpcRealTimeOrderController extends BaseController { } /** - * 实时订单详情数据图表(PC) + * 实时/异常订单详情数据图表(PC) * @param chargingOrderId * @return */ diff --git a/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/mapper/XhpcRealTimeOrderMapper.java b/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/mapper/XhpcRealTimeOrderMapper.java index d95b881b..62e4d1f3 100644 --- a/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/mapper/XhpcRealTimeOrderMapper.java +++ b/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/mapper/XhpcRealTimeOrderMapper.java @@ -59,7 +59,7 @@ public interface XhpcRealTimeOrderMapper { * @param type 0 都没有 1 phone 有 2 用户类型有 3 都有 * @return */ - List> list(@Param("phone") String phone,@Param("transactionNumber") String transactionNumber,@Param("source") Integer source,@Param("chargingStationName") String chargingStationName,@Param("terminalName")String terminalName,@Param("operatorId") Long operatorId,@Param("startTime") String startTime,@Param("endTime") String endTime,@Param("type") Integer type); + List> list(@Param("phone") String phone,@Param("transactionNumber") String transactionNumber,@Param("source") Integer source,@Param("chargingStationName") String chargingStationName,@Param("terminalName")String terminalName,@Param("operatorId") Long operatorId,@Param("startTime") String startTime,@Param("endTime") String endTime,@Param("type") Integer type,@Param("status")Integer status); /** * 实时订单详情接口(PC端) diff --git a/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/service/IXhpcRealTimeOrderService.java b/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/service/IXhpcRealTimeOrderService.java index 1126bdcd..b0c093d4 100644 --- a/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/service/IXhpcRealTimeOrderService.java +++ b/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/service/IXhpcRealTimeOrderService.java @@ -30,9 +30,10 @@ public interface IXhpcRealTimeOrderService { * @param operatorId 运营商 * @param startTime 订单开始时间 * @param endTime 订单结束时间 + * @param status 状态(-1准备充电 0开始充电 1自动结算,2异常,3平台结算) * @return */ - List> list(String phone,String transactionNumber,Integer source,String chargingStationName,String terminalName,Long operatorId,String startTime,String endTime); + List> list(String phone,String transactionNumber,Integer source,String chargingStationName,String terminalName,Long operatorId,String startTime,String endTime,Integer status); /** * 实时订单详情接口(PC端) diff --git a/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/service/impl/XhpcRealTimeOrderServiceImpl.java b/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/service/impl/XhpcRealTimeOrderServiceImpl.java index bc313b6e..e061bacd 100644 --- a/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/service/impl/XhpcRealTimeOrderServiceImpl.java +++ b/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/service/impl/XhpcRealTimeOrderServiceImpl.java @@ -49,7 +49,7 @@ public class XhpcRealTimeOrderServiceImpl implements IXhpcRealTimeOrderService { } @Override - public List> list(String phone, String transactionNumber, Integer source, String chargingStationName, String terminalName, Long operatorId, String startTime, String endTime) { + public List> list(String phone, String transactionNumber, Integer source, String chargingStationName, String terminalName, Long operatorId, String startTime, String endTime,Integer status) { Integer type =0; if(!"".equals(phone) && phone!=null && !"".equals(source) && source !=null){ @@ -59,7 +59,7 @@ public class XhpcRealTimeOrderServiceImpl implements IXhpcRealTimeOrderService { }else{ type =2; } - return xhpcRealTimeOrderMapper.list(phone,transactionNumber,source,chargingStationName,terminalName,operatorId,startTime,endTime,type); + return xhpcRealTimeOrderMapper.list(phone,transactionNumber,source,chargingStationName,terminalName,operatorId,startTime,endTime,type,status); } @Override @@ -77,7 +77,7 @@ public class XhpcRealTimeOrderServiceImpl implements IXhpcRealTimeOrderService { Map map =new HashMap(); map.put("soc",xhpcRealTimeOrderMapper.timeChartSOCList(chargingOrderId)); map.put("voltage",xhpcRealTimeOrderMapper.timeChartVoltageList(chargingOrderId)); - map.put("soc",xhpcRealTimeOrderMapper.timeChartCurrentList(chargingOrderId)); + map.put("current",xhpcRealTimeOrderMapper.timeChartCurrentList(chargingOrderId)); return AjaxResult.success(map); } diff --git a/xhpc-modules/xhpc-order/src/main/resources/mapper/XhpcRealTimeOrderMapper.xml b/xhpc-modules/xhpc-order/src/main/resources/mapper/XhpcRealTimeOrderMapper.xml index 6a538f56..881c5fef 100644 --- a/xhpc-modules/xhpc-order/src/main/resources/mapper/XhpcRealTimeOrderMapper.xml +++ b/xhpc-modules/xhpc-order/src/main/resources/mapper/XhpcRealTimeOrderMapper.xml @@ -372,7 +372,7 @@