kongzy
2024-01-29 983bdb5b89932b38d08a11ad1eed6ea89d1597e1
assess-system/src/main/resources/mapper/SysDictDataMapper.xml
文件名从 assess-system/src/main/resources/mapper/system/SysDictDataMapper.xml 修改
@@ -12,12 +12,12 @@
    </update>
    <select id="countDictDataByType" resultType="java.lang.Integer">
        select count(1) from sys_dict_data where dict_type=#{dictType}
        select count(1) from sys_dict_data where dict_type=#{dictType} and del_flag=0
    </select>
    <select id="getDictDataByType" resultType="com.gkhy.assess.system.domain.SysDictData">
        <include refid="selectDictDataVo"/>
        where d.dict_type=#{dictType} and d.status=0
        where d.dict_type=#{dictType} and d.status=0 and d.del_flag=0
        order by d.sort asc
    </select>
@@ -29,13 +29,14 @@
    <select id="dictDataList" resultType="com.gkhy.assess.system.domain.SysDictData">
        <include refid="selectDictDataVo"/>
        <where>
            and del_flag=0
            <if test="dictType != null and dictType != ''">
                AND dict_type = #{dictType}
            </if>
            <if test="label != null and label != ''">
                AND label like concat('%', #{label}, '%')
            </if>
            <if test="status != null and status != ''">
            <if test="status != null">
                AND status = #{status}
            </if>
        </where>