From 94e3a209bb9a31c4ddbd31494bb1628f6fe2e96e Mon Sep 17 00:00:00 2001 From: lidongdong <1459917685@qq.com> Date: 星期三, 12 十月 2022 17:54:49 +0800 Subject: [PATCH] 新增首页工单 办事指南排行榜接口 导办人员排行榜接口 组织排行榜接口 新增办事指南统计接口 导办人员统计接口 组织胖行榜统计接口 --- flower_city/src/main/java/com/dg/core/controller/TransactionEventController.java | 17 +++++++++++++---- 1 files changed, 13 insertions(+), 4 deletions(-) diff --git a/flower_city/src/main/java/com/dg/core/controller/TransactionEventController.java b/flower_city/src/main/java/com/dg/core/controller/TransactionEventController.java index b65c6b6..d4d795e 100644 --- a/flower_city/src/main/java/com/dg/core/controller/TransactionEventController.java +++ b/flower_city/src/main/java/com/dg/core/controller/TransactionEventController.java @@ -10,6 +10,7 @@ import com.dg.core.db.manual.pojo.QueryResults; import com.dg.core.db.manual.pojo.RecommendResult; import com.dg.core.db.manual.pojo.Search; +import com.dg.core.service.IOrganizationChartService; import com.dg.core.service.ITransactionEventService; import com.dg.core.util.TableDataInfo; import io.swagger.annotations.Api; @@ -29,6 +30,10 @@ @Autowired(required = true) ITransactionEventService iTransactionEventService; + + @Autowired(required = true) + IOrganizationChartService iOrganizationChartService; + /** * 查询导办事务详情 * @param Id @@ -36,7 +41,7 @@ */ @ApiOperation("查询导办事务详情") @GetMapping("/getData") - @Authorization + public ResultData selectConfigData(@RequestParam("Id") String Id,@CurrentUser SysUser sysUser) { Assert.notNull(Id, "Id 不能为空"); @@ -50,16 +55,20 @@ */ @ApiOperation("导办事物列表") @GetMapping("/getList") + @Authorization public TableDataInfo selectConfigList(@RequestParam(value = "pageNum",required = false) Integer pageNum, @RequestParam(value = "pageSize",required = false) Integer pageSize, @RequestParam(value = "matterAndUser",required = false) String matterAndUser, - @RequestParam(value = "classifyGrade",required = false) String classifyGrade) + @RequestParam(value = "classifyGrade",required = false) String classifyGrade, + @CurrentUser SysUser sysUser) { Assert.notNull(pageNum, "pageNum 不能为空"); Assert.notNull(pageSize, "pageSize 不能为空"); Page<TransactionEvent> pageParam = new Page<>(pageNum,pageSize); - List<TransactionEvent> list = iTransactionEventService.selectConfigList(pageParam,pageSize,matterAndUser,classifyGrade); - int num=iTransactionEventService.countNum(matterAndUser,classifyGrade); + List<String> ids=iOrganizationChartService.getIds(sysUser.getDepartmentId()); + List<TransactionEvent> list = iTransactionEventService.selectConfigList(pageParam,pageSize,matterAndUser, + classifyGrade,ids); + int num=iTransactionEventService.countNum(matterAndUser,classifyGrade,ids); return getDataTable(list,num); } -- Gitblit v1.7.1