文件名从 assess-system/src/main/resources/mapper/system/SysDictTypeMapper.xml 修改 |
| | |
| | | <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 != ''"> |
| | |
| | | |
| | | <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> |
| | | |
| | | |