Compare commits
No commits in common. "9baa8144148e06cbf35f1942770d40697615ef76" and "9f63738c39770f2ec298dbe4838d4a233634ac7c" have entirely different histories.
9baa814414
...
9f63738c39
|
@ -181,6 +181,7 @@ public class DictionaryController extends BaseController {
|
||||||
/**
|
/**
|
||||||
* 列表
|
* 列表
|
||||||
*
|
*
|
||||||
|
* @param page
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value = "/listSelect")
|
@RequestMapping(value = "/listSelect")
|
||||||
|
@ -195,22 +196,4 @@ public class DictionaryController extends BaseController {
|
||||||
map.put("result", errInfo);
|
map.put("result", errInfo);
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
*
|
|
||||||
* @throws Exception
|
|
||||||
*/
|
|
||||||
@RequestMapping(value = "/validateExist")
|
|
||||||
@ResponseBody
|
|
||||||
public Object validateExist() throws Exception {
|
|
||||||
Map<String, Object> map = new HashMap<String, Object>();
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,7 +62,5 @@ public interface DictionaryMapper {
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
List<PageData> listSelect(PageData pd);
|
List<PageData> listSelect(PageData pd);
|
||||||
|
|
||||||
Integer validateExist(PageData pd);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -72,11 +72,5 @@ public interface DictionaryService {
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
List<PageData> listSelect(PageData pd)throws Exception;
|
List<PageData> listSelect(PageData pd)throws Exception;
|
||||||
|
|
||||||
/**列表(全部)
|
|
||||||
* @param pd
|
|
||||||
* @throws Exception
|
|
||||||
*/
|
|
||||||
Integer validateExist(PageData pd)throws Exception;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -150,10 +150,5 @@ public class DictionaryServiceImpl implements DictionaryService {
|
||||||
public List<PageData> listSelect(PageData pd)throws Exception{
|
public List<PageData> listSelect(PageData pd)throws Exception{
|
||||||
return dictionaryMapper.listSelect(pd);
|
return dictionaryMapper.listSelect(pd);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public Integer validateExist(PageData pd) throws Exception {
|
|
||||||
return dictionaryMapper.validateExist(pd);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -237,9 +237,9 @@
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
FROM
|
FROM
|
||||||
<include refid="tableName"></include> f
|
<include refid="tableName"></include> f
|
||||||
WHERE 1=1
|
WHERE
|
||||||
<if test="DICTIONARY_LEVEL != null">
|
<if test="DICTIONARY_LEVEL != null">
|
||||||
and DICTIONARY_LEVEL = #{DICTIONARY_LEVEL}
|
DICTIONARY_LEVEL = #{DICTIONARY_LEVEL}
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
@ -270,22 +270,4 @@
|
||||||
order by f.DICTIONARY_SORT asc
|
order by f.DICTIONARY_SORT asc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- * 获取符合条件数,+1后作为排序使用-->
|
|
||||||
<select id="validateExist" parameterType="pd" resultType="Integer" >
|
|
||||||
SELECT
|
|
||||||
COUNT(*)
|
|
||||||
FROM
|
|
||||||
<include refid="tableName"></include> f
|
|
||||||
WHERE f.ISDELETE = '0'
|
|
||||||
<if test="DICTIONARY_LEVEL != null">
|
|
||||||
and f.DICTIONARY_LEVEL = #{DICTIONARY_LEVEL}
|
|
||||||
</if>
|
|
||||||
<if test="DICTIONARY_NAME != null and DICTIONARY_NAME != ''">
|
|
||||||
and f.DICTIONARY_NAME = #{DICTIONARY_NAME}
|
|
||||||
</if>
|
|
||||||
<if test="PARENT_ID != null and PARENT_ID != ''">
|
|
||||||
and f.PARENT_ID = #{PARENT_ID}
|
|
||||||
</if>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
Loading…
Reference in New Issue