From 69bb678a58d2267f45e15f686a93ca8ee24e6328 Mon Sep 17 00:00:00 2001 From: "2265829957@qq.com" <2265829957@qq.com> Date: Wed, 25 Feb 2026 17:46:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=9A=84=E5=9C=BA=E7=AB=99=E5=B7=A1?= =?UTF-8?q?=E6=A3=80=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/XhpcInspectionController.java | 7 +++++- .../order/mapper/XhpcInspectionMapper.java | 2 +- .../order/service/IXhpcInspectionService.java | 2 +- .../impl/XhpcInspectionServiceImpl.java | 8 +++++++ .../resources/mapper/XhpcInspectionMapper.xml | 22 +++++++++++++++++++ 5 files changed, 38 insertions(+), 3 deletions(-) diff --git a/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/controller/XhpcInspectionController.java b/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/controller/XhpcInspectionController.java index 3302991a..383b9d67 100644 --- a/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/controller/XhpcInspectionController.java +++ b/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/controller/XhpcInspectionController.java @@ -2,6 +2,7 @@ package com.xhpc.order.controller; import com.xhpc.common.core.web.controller.BaseController; import com.xhpc.common.core.web.domain.AjaxResult; +import com.xhpc.common.core.web.page.TableDataInfo; import com.xhpc.order.domain.XhpcInspection; import com.xhpc.order.service.IXhpcInspectionService; import io.swagger.annotations.Api; @@ -99,6 +100,10 @@ public class XhpcInspectionController extends BaseController { } - + @GetMapping("/getInspectionUserList") + public TableDataInfo getInspectionUserList(HttpServletRequest request) { + List> list = xhpcInspectionService.getInspectionUserList(request); + return getDataTable(list); + } } diff --git a/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/mapper/XhpcInspectionMapper.java b/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/mapper/XhpcInspectionMapper.java index 850d80d8..a7011570 100644 --- a/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/mapper/XhpcInspectionMapper.java +++ b/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/mapper/XhpcInspectionMapper.java @@ -24,5 +24,5 @@ public interface XhpcInspectionMapper { List> getWXXhpcTerminalMassage(@Param("chargingStationId") Long chargingStationId); - + List> getInspectionUserList(@Param("userId") Long userId); } diff --git a/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/service/IXhpcInspectionService.java b/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/service/IXhpcInspectionService.java index 8a6408ad..94f2c974 100644 --- a/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/service/IXhpcInspectionService.java +++ b/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/service/IXhpcInspectionService.java @@ -19,5 +19,5 @@ public interface IXhpcInspectionService { List> getStationList(HttpServletRequest request); - + List> getInspectionUserList(HttpServletRequest request); } diff --git a/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/service/impl/XhpcInspectionServiceImpl.java b/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/service/impl/XhpcInspectionServiceImpl.java index 04842548..637d43f3 100644 --- a/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/service/impl/XhpcInspectionServiceImpl.java +++ b/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/service/impl/XhpcInspectionServiceImpl.java @@ -236,4 +236,12 @@ public class XhpcInspectionServiceImpl implements IXhpcInspectionService { } return mapList; } + + @Override + public List> getInspectionUserList(HttpServletRequest request) { + LoginUser loginUser = tokenService.getLoginUser(request); + Long logUserId = loginUser.getUserid(); + List> inspectionUserList = xhpcInspectionMapper.getInspectionUserList(logUserId); + return inspectionUserList; + } } diff --git a/xhpc-modules/xhpc-order/src/main/resources/mapper/XhpcInspectionMapper.xml b/xhpc-modules/xhpc-order/src/main/resources/mapper/XhpcInspectionMapper.xml index 838298df..42d5345d 100644 --- a/xhpc-modules/xhpc-order/src/main/resources/mapper/XhpcInspectionMapper.xml +++ b/xhpc-modules/xhpc-order/src/main/resources/mapper/XhpcInspectionMapper.xml @@ -346,4 +346,26 @@ and te.del_flag = 0 order by te.serial_number desc + + + + +