diff --git a/src/main/java/com/zcloud/controller/hiddenDangerCheckStandard/DictionaryController.java b/src/main/java/com/zcloud/controller/hiddenDangerCheckStandard/DictionaryController.java index ada4a64..a33366b 100644 --- a/src/main/java/com/zcloud/controller/hiddenDangerCheckStandard/DictionaryController.java +++ b/src/main/java/com/zcloud/controller/hiddenDangerCheckStandard/DictionaryController.java @@ -181,7 +181,6 @@ public class DictionaryController extends BaseController { /** * 列表 * - * @param page * @throws Exception */ @RequestMapping(value = "/listSelect") @@ -196,4 +195,22 @@ public class DictionaryController extends BaseController { map.put("result", errInfo); return map; } + + /** + * 列表 + * + * @throws Exception + */ + @RequestMapping(value = "/validateExist") + @ResponseBody + public Object validateExist() throws Exception { + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + Integer count = dictionaryService.validateExist(pd); //列出Dictionary列表 + map.put("count", count); + map.put("result", errInfo); + return map; + } } diff --git a/src/main/java/com/zcloud/mapper/dsno2/hiddenDangerCheckStandard/DictionaryMapper.java b/src/main/java/com/zcloud/mapper/dsno2/hiddenDangerCheckStandard/DictionaryMapper.java index 4a4fee4..769b115 100644 --- a/src/main/java/com/zcloud/mapper/dsno2/hiddenDangerCheckStandard/DictionaryMapper.java +++ b/src/main/java/com/zcloud/mapper/dsno2/hiddenDangerCheckStandard/DictionaryMapper.java @@ -62,5 +62,7 @@ public interface DictionaryMapper { * @throws Exception */ List listSelect(PageData pd); + + Integer validateExist(PageData pd); } diff --git a/src/main/java/com/zcloud/service/hiddenDangerCheckStandard/DictionaryService.java b/src/main/java/com/zcloud/service/hiddenDangerCheckStandard/DictionaryService.java index 0fba90f..bb36588 100644 --- a/src/main/java/com/zcloud/service/hiddenDangerCheckStandard/DictionaryService.java +++ b/src/main/java/com/zcloud/service/hiddenDangerCheckStandard/DictionaryService.java @@ -72,5 +72,11 @@ public interface DictionaryService { * @throws Exception */ List listSelect(PageData pd)throws Exception; + + /**列表(全部) + * @param pd + * @throws Exception + */ + Integer validateExist(PageData pd)throws Exception; } diff --git a/src/main/java/com/zcloud/service/hiddenDangerCheckStandard/impl/DictionaryServiceImpl.java b/src/main/java/com/zcloud/service/hiddenDangerCheckStandard/impl/DictionaryServiceImpl.java index 969a108..8c874d6 100644 --- a/src/main/java/com/zcloud/service/hiddenDangerCheckStandard/impl/DictionaryServiceImpl.java +++ b/src/main/java/com/zcloud/service/hiddenDangerCheckStandard/impl/DictionaryServiceImpl.java @@ -150,5 +150,10 @@ public class DictionaryServiceImpl implements DictionaryService { public List listSelect(PageData pd)throws Exception{ return dictionaryMapper.listSelect(pd); } + + @Override + public Integer validateExist(PageData pd) throws Exception { + return dictionaryMapper.validateExist(pd); + } } diff --git a/src/main/resources/mybatis/dsno2/hiddenDangerCheckStandard/DictionaryMapper.xml b/src/main/resources/mybatis/dsno2/hiddenDangerCheckStandard/DictionaryMapper.xml index 000c23c..ae2e88e 100644 --- a/src/main/resources/mybatis/dsno2/hiddenDangerCheckStandard/DictionaryMapper.xml +++ b/src/main/resources/mybatis/dsno2/hiddenDangerCheckStandard/DictionaryMapper.xml @@ -237,9 +237,9 @@ COUNT(*) FROM f - WHERE + WHERE 1=1 - DICTIONARY_LEVEL = #{DICTIONARY_LEVEL} + and DICTIONARY_LEVEL = #{DICTIONARY_LEVEL} @@ -270,4 +270,22 @@ order by f.DICTIONARY_SORT asc + + +