Explorar el Código

添加字典选择框列表分类

wyyay hace 2 años
padre
commit
8a3ecbb344

+ 1 - 1
base-system/src/main/java/com/ozs/system/mapper/SysDictTypeMapper.java

@@ -27,7 +27,7 @@ public interface SysDictTypeMapper extends JoinBaseMapper<SysDictType> {
      *
      * @return 字典类型集合信息
      */
-    public List<SysDictType> selectDictTypeAll();
+    public List<SysDictType> selectDictTypeAll(Integer dataType);
 
     /**
      * 根据字典类型ID查询信息

+ 1 - 1
base-system/src/main/java/com/ozs/system/service/ISysDictTypeService.java

@@ -25,7 +25,7 @@ public interface ISysDictTypeService extends JoinIService<SysDictType> {
      *
      * @return 字典类型集合信息
      */
-    public List<SysDictType> selectDictTypeAll();
+    public List<SysDictType> selectDictTypeAll(Integer dataType);
 
     /**
      * 根据字典类型查询字典数据

+ 2 - 2
base-system/src/main/java/com/ozs/system/service/impl/SysDictTypeServiceImpl.java

@@ -58,8 +58,8 @@ public class SysDictTypeServiceImpl extends JoinServiceImpl<SysDictTypeMapper, S
      * @return 字典类型集合信息
      */
     @Override
-    public List<SysDictType> selectDictTypeAll() {
-        return dictTypeMapper.selectDictTypeAll();
+    public List<SysDictType> selectDictTypeAll(Integer dataType) {
+        return dictTypeMapper.selectDictTypeAll(dataType);
     }
 
     /**

+ 1 - 0
base-system/src/main/resources/mapper/system/SysDictTypeMapper.xml

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