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