@@ -27,7 +27,7 @@ public interface SysDictTypeMapper extends JoinBaseMapper<SysDictType> {
*
* @return 字典类型集合信息
*/
- public List<SysDictType> selectDictTypeAll();
+ public List<SysDictType> selectDictTypeAll(Integer dataType);
/**
* 根据字典类型ID查询信息
@@ -25,7 +25,7 @@ public interface ISysDictTypeService extends JoinIService<SysDictType> {
* 根据字典类型查询字典数据
@@ -58,8 +58,8 @@ public class SysDictTypeServiceImpl extends JoinServiceImpl<SysDictTypeMapper, S
@Override
- public List<SysDictType> selectDictTypeAll() {
- return dictTypeMapper.selectDictTypeAll();
+ public List<SysDictType> selectDictTypeAll(Integer dataType) {
+ return dictTypeMapper.selectDictTypeAll(dataType);
}
@@ -48,6 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectDictTypeAll" resultMap="SysDictTypeResult">
<include refid="selectDictTypeVo"/>
+ where data_type =#{dataType}
</select>
<select id="selectDictTypeById" parameterType="Long" resultMap="SysDictTypeResult">