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 + + + + +