From f579b75a925d9e92a5a1fca26709e294d3944a88 Mon Sep 17 00:00:00 2001 From: water_xu Date: Tue, 30 Jul 2024 16:11:51 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B8=E5=85=B3=E6=96=B9=20-=20=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E6=96=B9=E7=BB=9F=E8=AE=A1=E6=8A=A5=E8=A1=A8=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/openApi/OpenApiController.java | 16 ++++++++++++++++ .../zcloud/mapper/dsno2/bus/ClassInfoMapper.java | 1 + .../com/zcloud/service/bus/ClassInfoService.java | 3 +-- .../service/bus/impl/ClassInfoServiceImpl.java | 11 +++++++++-- .../mybatis/dsno2/bus/ClassInfoMapper.xml | 6 +++++- 5 files changed, 32 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/zcloud/controller/openApi/OpenApiController.java b/src/main/java/com/zcloud/controller/openApi/OpenApiController.java index 8fab9475..ac3595e1 100644 --- a/src/main/java/com/zcloud/controller/openApi/OpenApiController.java +++ b/src/main/java/com/zcloud/controller/openApi/OpenApiController.java @@ -3,6 +3,7 @@ package com.zcloud.controller.openApi; import com.zcloud.controller.base.BaseController; import com.zcloud.entity.PageData; import com.zcloud.entity.system.Department; +import com.zcloud.service.bus.ClassInfoService; import com.zcloud.service.bus.CorpInfoService; import com.zcloud.service.system.DepartmentService; import com.zcloud.service.system.UsersService; @@ -32,6 +33,8 @@ public class OpenApiController extends BaseController { private UsersService usersService; @Autowired private CorpInfoService corpInfoService; + @Autowired + private ClassInfoService classInfoService; /** * 显示列表ztree * @return @@ -152,4 +155,17 @@ public class OpenApiController extends BaseController { map.put("result", errInfo); return map; } + + /**列表 + * @throws Exception + */ + @RequestMapping(value="/class/getInfo") + @ResponseBody + public Object getInfo() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + map.put("list", classInfoService.getCountGroupByCorpInfoId(this.getPageData())); + map.put("result", errInfo); + return map; + } } diff --git a/src/main/java/com/zcloud/mapper/dsno2/bus/ClassInfoMapper.java b/src/main/java/com/zcloud/mapper/dsno2/bus/ClassInfoMapper.java index 3cbca053..e8f2df94 100644 --- a/src/main/java/com/zcloud/mapper/dsno2/bus/ClassInfoMapper.java +++ b/src/main/java/com/zcloud/mapper/dsno2/bus/ClassInfoMapper.java @@ -30,5 +30,6 @@ public interface ClassInfoMapper { List findinfoByCondition(PageData pd); + List getCountGroupByCorpInfoId(PageData pd); } diff --git a/src/main/java/com/zcloud/service/bus/ClassInfoService.java b/src/main/java/com/zcloud/service/bus/ClassInfoService.java index 0ee34beb..f60a126f 100644 --- a/src/main/java/com/zcloud/service/bus/ClassInfoService.java +++ b/src/main/java/com/zcloud/service/bus/ClassInfoService.java @@ -21,7 +21,6 @@ public interface ClassInfoService { List findinfoByCondition(PageData condition) throws Exception; - - + List getCountGroupByCorpInfoId(PageData pd); } diff --git a/src/main/java/com/zcloud/service/bus/impl/ClassInfoServiceImpl.java b/src/main/java/com/zcloud/service/bus/impl/ClassInfoServiceImpl.java index 91b8e35c..1f58ab1f 100644 --- a/src/main/java/com/zcloud/service/bus/impl/ClassInfoServiceImpl.java +++ b/src/main/java/com/zcloud/service/bus/impl/ClassInfoServiceImpl.java @@ -37,7 +37,14 @@ public class ClassInfoServiceImpl implements ClassInfoService { return classInfoMapper.findinfoByCondition(condition); } - - + /** + * 根据CORPINFO_ID分组获取合格/不合格人数统计 + * @param pd + * @return + */ + @Override + public List getCountGroupByCorpInfoId(PageData pd) { + return classInfoMapper.getCountGroupByCorpInfoId(pd); + } } diff --git a/src/main/resources/mybatis/dsno2/bus/ClassInfoMapper.xml b/src/main/resources/mybatis/dsno2/bus/ClassInfoMapper.xml index 8a25c2a4..961ab9c3 100644 --- a/src/main/resources/mybatis/dsno2/bus/ClassInfoMapper.xml +++ b/src/main/resources/mybatis/dsno2/bus/ClassInfoMapper.xml @@ -139,5 +139,9 @@ - +