文件名从 assess-system/src/main/resources/mapper/system/SysDictDataMapper.xml 修改 |
| | |
| | | </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> |
| | | |
| | |
| | | <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> |