|
|
@@ -193,6 +193,7 @@
|
|
|
<include refid="Base_Column_List" />
|
|
|
from sys_dict
|
|
|
where del_flag = 0
|
|
|
+ and status = 0
|
|
|
<if test="type != null and type != ''">
|
|
|
and type = #{type, jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
@@ -210,6 +211,7 @@
|
|
|
id, value, label, type, description, remark,url
|
|
|
from sys_dict
|
|
|
where del_flag = 0
|
|
|
+ and status = 0
|
|
|
<if test="type != null and type != ''">
|
|
|
and type = #{type, jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
@@ -223,7 +225,7 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="queryByType" resultType="com.sckw.system.model.SysDict">
|
|
|
- select * from sys_dict where del_flag = 0 and type = #{type} order by sort
|
|
|
+ select * from sys_dict where del_flag = 0 and type = #{type} and status = 0 order by sort
|
|
|
</select>
|
|
|
|
|
|
<select id="queryUnitDict" resultType="com.sckw.system.model.SysDict">
|
|
|
@@ -232,6 +234,7 @@
|
|
|
where del_flag = 0
|
|
|
and dict_id = #{dictTypeId}
|
|
|
and parent_id = #{parentId}
|
|
|
+ and status = 0
|
|
|
and (value = #{value} or label = #{label})
|
|
|
order by sort
|
|
|
</select>
|
|
|
@@ -240,6 +243,7 @@
|
|
|
select *
|
|
|
from sys_dict
|
|
|
where del_flag = 0
|
|
|
+ and status = 0
|
|
|
and type = #{type}
|
|
|
and value = #{value} limit 1
|
|
|
</select>
|
|
|
@@ -248,6 +252,7 @@
|
|
|
select *
|
|
|
from sys_dict
|
|
|
where del_flag = 0
|
|
|
+ and status = 0
|
|
|
</select>
|
|
|
|
|
|
<select id="selectByKeys" resultType="com.sckw.system.model.SysDict">
|
|
|
@@ -261,4 +266,4 @@
|
|
|
</foreach>
|
|
|
</select>
|
|
|
|
|
|
-</mapper>
|
|
|
+</mapper>
|