diff --git a/src/main/java/com/zcloud/controller/app/AppHiddenController.java b/src/main/java/com/zcloud/controller/app/AppHiddenController.java index 916fcfa..04443d6 100644 --- a/src/main/java/com/zcloud/controller/app/AppHiddenController.java +++ b/src/main/java/com/zcloud/controller/app/AppHiddenController.java @@ -133,7 +133,8 @@ public class AppHiddenController extends BaseController { // STATE -- 隐患状态 0-未提交 1- 未整改 2-已整改 3-已复查 4-已验收 5-已过期 if (Tools.notEmpty(pd.get("userId").toString())) { pd.put("SELFUSERID", pd.get("userId")); - List rectifiHid = hiddenService.getCountByRectifiCationorId(pd); // 根据人员id获取整改隐患信息 state 1 5 +// List rectifiHid = hiddenService.getCountByRectifiCationorId(pd); // 根据人员id获取整改隐患信息 state 1 5 + List rectifiHid = hiddenService.getRiskStandardCountByRectifiCationorId(pd); // 根据用户ID获取待整改隐患(app首页) for (int i = 0; i < rectifiHid.size(); i++) { PageData rec = rectifiHid.get(i); if (null == rec.get("STATE")) { @@ -144,7 +145,8 @@ public class AppHiddenController extends BaseController { } } - List checkorHid = hiddenService.getCountByCheckorId(pd); // 根据人员id获取整改隐患信息 state 1 5 +// List checkorHid = hiddenService.getCountByCheckorId(pd); // 根据人员id获取整改隐患信息 state 1 5 + List checkorHid = hiddenService.getRiskStandardCountByCheckorId(pd); // 根据用户ID获取待验收隐患(app首页) for (int i = 0; i < checkorHid.size(); i++) { PageData che = checkorHid.get(i); if (null == che.get("STATE")) { @@ -155,7 +157,8 @@ public class AppHiddenController extends BaseController { } } - List confirmHid = hiddenService.getCountByConfirmId(pd); // 根据人员id获取整改隐患信息 state 1 5 +// List confirmHid = hiddenService.getCountByConfirmId(pd); // 根据人员id获取整改隐患信息 state 1 5 + List confirmHid = hiddenService.getRiskStandardCountByConfirmId(pd); // 根据用户ID获取待确认隐患(app首页) for (int i = 0; i < confirmHid.size(); i++) { PageData che = confirmHid.get(i); if (null == che.get("STATE")) { @@ -166,7 +169,8 @@ public class AppHiddenController extends BaseController { } } // userId -> 85437f01be1f4c959f71a850b1d731a1 - List specialHid = hiddenService.getCountSpecialByhId(pd); // 根据人员id获取特殊处理隐患和延期隐患信息 state 1 5 +// List specialHid = hiddenService.getCountSpecialByhId(pd); // 根据人员id获取特殊处理隐患和延期隐患信息 state 1 5 + List specialHid = hiddenService.getRiskStandardCountSpecialByhId(pd); // 根据用户ID获取特殊处理隐患和延期隐患(app首页) for (int i = 0; i < specialHid.size(); i++) { PageData che = specialHid.get(i); if (null == che.get("TYPE")) { @@ -183,7 +187,8 @@ public class AppHiddenController extends BaseController { - List creatorHid = hiddenService.getCountByCreatorId(pd); // 根据人员id获取发现隐患信息 +// List creatorHid = hiddenService.getCountByCreatorId(pd); // 根据人员id获取发现隐患信息 + List creatorHid = hiddenService.getRiskStandardCountByCreatorId(pd); // 根据用户ID获取发现隐患信息(app首页) for (int i = 0; i < creatorHid.size(); i++) { PageData cre = creatorHid.get(i); if (null == cre.get("STATE")) { @@ -226,7 +231,8 @@ public class AppHiddenController extends BaseController { // } int wjcNum = 0; int yjcNum = 0; - List varList = listmanagerService.listAll(pd);// 列出ListManager列表 +// List varList = listmanagerService.listAll(pd);// 列出ListManager列表 + List varList = listmanagerService.listAllRiskStandard(pd);// 列出ListManager列表 for (PageData list : varList) { String cycle = list.getString("PERIODNAME"); if (list.getString("TYPE").equals("listType0005")) { diff --git a/src/main/java/com/zcloud/mapper/datasource/check/ListManagerMapper.java b/src/main/java/com/zcloud/mapper/datasource/check/ListManagerMapper.java index e738145..b45f365 100644 --- a/src/main/java/com/zcloud/mapper/datasource/check/ListManagerMapper.java +++ b/src/main/java/com/zcloud/mapper/datasource/check/ListManagerMapper.java @@ -234,5 +234,13 @@ public interface ListManagerMapper { List findByCondition(PageData util); List analysis(PageData util); + + /** + * 列表(全部) + * 源自 listAll(PageData pd) + * @param pd + * @throws Exception + */ + List listAllRiskStandard(PageData pd); } diff --git a/src/main/java/com/zcloud/mapper/datasource/hidden/HiddenMapper.java b/src/main/java/com/zcloud/mapper/datasource/hidden/HiddenMapper.java index ef1ab09..5bb7659 100644 --- a/src/main/java/com/zcloud/mapper/datasource/hidden/HiddenMapper.java +++ b/src/main/java/com/zcloud/mapper/datasource/hidden/HiddenMapper.java @@ -314,5 +314,41 @@ public interface HiddenMapper{ * @throws Exception */ List riskStandardlistPage(Page page); + + /** + * 根据用户ID获取待整改隐患(app首页) + * @param pd CREATOR + * @return + * @throws Exception + */ + List getRiskStandardCountByRectifiCationorId(PageData pd); + + /**根据用户ID获取待验收隐患(app首页) + * @param pd + * @throws Exception + */ + List getRiskStandardCountByCheckorId(PageData pd); + + /**根据用户ID获取待确认隐患(app首页) + * @param pd + * @throws Exception + */ + List getRiskStandardCountByConfirmId(PageData pd); + + /** + * 根据用户ID获取特殊处理隐患和延期隐患(app首页) + * @param pd + * @return + * @throws Exception + */ + List getRiskStandardCountSpecialByhId(PageData pd); + + /** + * 根据用户ID获取发现隐患信息(app首页) + * @param pd + * @return + * @throws Exception + */ + List getRiskStandardCountByCreatorId(PageData pd); } diff --git a/src/main/java/com/zcloud/service/check/ListManagerService.java b/src/main/java/com/zcloud/service/check/ListManagerService.java index fc8e389..6a75d94 100644 --- a/src/main/java/com/zcloud/service/check/ListManagerService.java +++ b/src/main/java/com/zcloud/service/check/ListManagerService.java @@ -220,5 +220,13 @@ public interface ListManagerService { public List getCountNumBi(PageData pd)throws Exception; void saveBaoBaoType(PageData pd) throws Exception; + + /** + * 列表(全部) + * 源自 listAll(PageData pd) + * @param pd + * @throws Exception + */ + List listAllRiskStandard(PageData pd)throws Exception; } diff --git a/src/main/java/com/zcloud/service/check/impl/ListManagerServiceImpl.java b/src/main/java/com/zcloud/service/check/impl/ListManagerServiceImpl.java index 559b731..aee7a60 100644 --- a/src/main/java/com/zcloud/service/check/impl/ListManagerServiceImpl.java +++ b/src/main/java/com/zcloud/service/check/impl/ListManagerServiceImpl.java @@ -334,6 +334,16 @@ public class ListManagerServiceImpl implements ListManagerService { listCheckItemMapper.edit(entity); } } + + /** + * 列表(全部) + * 源自 listAll(PageData pd) + * @param pd + * @throws Exception + */ + public List listAllRiskStandard(PageData pd)throws Exception{ + return listmanagerMapper.listAllRiskStandard(pd); + } } diff --git a/src/main/java/com/zcloud/service/hidden/HiddenService.java b/src/main/java/com/zcloud/service/hidden/HiddenService.java index 0e5fb13..6c3220e 100644 --- a/src/main/java/com/zcloud/service/hidden/HiddenService.java +++ b/src/main/java/com/zcloud/service/hidden/HiddenService.java @@ -377,5 +377,41 @@ public interface HiddenService{ * @throws Exception */ public List listRiskStandard(Page page)throws Exception; + + /** + * 根据用户ID获取待整改隐患(app首页) + * @param pd CREATOR + * @return + * @throws Exception + */ + List getRiskStandardCountByRectifiCationorId(PageData pd) throws Exception; + + /** + * 根据用户ID获取待验收隐患(app首页) + * @param pd + * @throws Exception + */ + List getRiskStandardCountByCheckorId(PageData pd) throws Exception; + + /**根据用户ID获取待确认隐患(app首页) + * @param pd + * @throws Exception + */ + List getRiskStandardCountByConfirmId(PageData pd) throws Exception; + + /** + * 根据用户ID获取特殊处理隐患和延期隐患(app首页) + * @param pd + * @throws Exception + */ + List getRiskStandardCountSpecialByhId(PageData pd) throws Exception; + + /** + * 根据用户ID获取发现隐患信息(app首页) + * @param pd CREATOR + * @return + * @throws Exception + */ + List getRiskStandardCountByCreatorId(PageData pd) throws Exception; } diff --git a/src/main/java/com/zcloud/service/hidden/impl/HiddenServiceImpl.java b/src/main/java/com/zcloud/service/hidden/impl/HiddenServiceImpl.java index 0d613d7..d5c5155 100644 --- a/src/main/java/com/zcloud/service/hidden/impl/HiddenServiceImpl.java +++ b/src/main/java/com/zcloud/service/hidden/impl/HiddenServiceImpl.java @@ -794,5 +794,53 @@ public class HiddenServiceImpl implements HiddenService { public List listRiskStandard(Page page)throws Exception{ return hiddenMapper.riskStandardlistPage(page); } + + /** + * 根据用户ID获取待整改隐患(app首页) + * @param pd CREATOR + * @return + * @throws Exception + */ + public List getRiskStandardCountByRectifiCationorId(PageData pd) throws Exception{ + return hiddenMapper.getRiskStandardCountByRectifiCationorId(pd); + } + + /** + * 根据用户ID获取待验收隐患(app首页) + * @param pd + * @return + * @throws Exception + */ + public List getRiskStandardCountByCheckorId(PageData pd) throws Exception{ + return hiddenMapper.getRiskStandardCountByCheckorId(pd); + } + + /**根据用户ID获取待确认隐患(app首页) + * @param pd + * @throws Exception + */ + public List getRiskStandardCountByConfirmId(PageData pd) throws Exception{ + return hiddenMapper.getRiskStandardCountByConfirmId(pd); + } + + /** + * 根据用户ID获取特殊处理隐患和延期隐患(app首页) + * @param pd + * @return + * @throws Exception + */ + public List getRiskStandardCountSpecialByhId(PageData pd) throws Exception{ + return hiddenMapper.getRiskStandardCountSpecialByhId(pd); + } + + /** + * 根据用户ID获取发现隐患信息(app首页) + * @param pd CREATOR + * @return + * @throws Exception + */ + public List getRiskStandardCountByCreatorId(PageData pd) throws Exception{ + return hiddenMapper.getRiskStandardCountByCreatorId(pd); + } } diff --git a/src/main/resources/mybatis/datasource/check/ListManagerMapper.xml b/src/main/resources/mybatis/datasource/check/ListManagerMapper.xml index f032d90..a4dadf1 100644 --- a/src/main/resources/mybatis/datasource/check/ListManagerMapper.xml +++ b/src/main/resources/mybatis/datasource/check/ListManagerMapper.xml @@ -3089,4 +3089,272 @@ group by f.CUSTOM_ID order by field(f.ISDELETE,'0','1','2','-1') ,f.OPERATTIME desc ) + + + diff --git a/src/main/resources/mybatis/datasource/hidden/HiddenMapper.xml b/src/main/resources/mybatis/datasource/hidden/HiddenMapper.xml index d8199f3..e04c6af 100644 --- a/src/main/resources/mybatis/datasource/hidden/HiddenMapper.xml +++ b/src/main/resources/mybatis/datasource/hidden/HiddenMapper.xml @@ -3737,4 +3737,313 @@ order by z.CREATTIME desc + + + + + + + + + + + + + + +