kongzy
2024-01-29 983bdb5b89932b38d08a11ad1eed6ea89d1597e1
assess-system/src/main/resources/mapper/SysDictTypeMapper.xml
文件名从 assess-system/src/main/resources/mapper/system/SysDictTypeMapper.xml 修改
@@ -9,10 +9,11 @@
    <select id="dictTypeList" resultType="com.gkhy.assess.system.domain.SysDictType">
        <include refid="selectDictTypeVo"/>
        <where>
            and d.del_flag=0
            <if test="name != null and name != ''">
                AND d.name like concat('%', #{name}, '%')
            </if>
            <if test="status != null and status != ''">
            <if test="status != null">
                AND d.status = #{status}
            </if>
            <if test="dictType != null and dictType != ''">
@@ -28,12 +29,19 @@
    <select id="checkDictTypeUnique" resultType="com.gkhy.assess.system.domain.SysDictType">
        <include refid="selectDictTypeVo"/>
        where d.dict_type = #{dictType} limit 1
        <where>
            and (d.dict_type = #{dictType}
            <if test="name!=null and name!=''">
                or name=#{name}
            </if>
            )
            and d.del_flag=0 limit 1
        </where>
    </select>
    <select id="getDictTypeByType" resultType="com.gkhy.assess.system.domain.SysDictType">
        <include refid="selectDictTypeVo"/>
        where d.dict_type = #{dictType}
        where d.dict_type = #{dictType} and d.del_flag=0
    </select>