| | |
| | | * @return 结果 |
| | | */ |
| | | public int updateDictDataType(@Param("oldDictType") String oldDictType, @Param("newDictType") String newDictType); |
| | | |
| | | List<SysDictData> selectByValue(String dictTypeApsArea, String dictValue); |
| | | |
| | | List<SysDictData> selectDictValueList(String dictType); |
| | | } |
| | |
| | | order by dict_sort asc |
| | | </select> |
| | | |
| | | <select id="selectByValue" resultMap="SysDictDataResult"> |
| | | <include refid="selectDictDataVo"/> |
| | | <where> |
| | | <if test="dictTypeApsArea != null and dictTypeApsArea != ''"> |
| | | AND dict_type = #{dictTypeApsArea} |
| | | </if> |
| | | <if test="dictValue != null and dictValue != ''"> |
| | | AND dict_value = #{dictValue} |
| | | </if> |
| | | </where> |
| | | order by dict_sort asc |
| | | </select> |
| | | |
| | | <select id="selectDictValueList" resultMap="SysDictDataResult"> |
| | | select distinct dict_value from sys_dict_data where dict_type = #{dictType} |
| | | </select> |
| | | |
| | | |
| | | <select id="selectDictDataByType" parameterType="String" resultMap="SysDictDataResult"> |
| | | <include refid="selectDictDataVo"/> |
| | | where status = '0' and dict_type = #{dictType} order by dict_sort asc |
| | |
| | | <include refid="selectDictTypeVo"/> |
| | | <where> |
| | | <if test="dictName != null and dictName != ''"> |
| | | AND dict_name like concat('%', #{dictName}, '%') |
| | | AND dict_name like concat('%', cast(#{dictName} as varchar), '%') |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | AND status = #{status} |
| | | </if> |
| | | <if test="dictType != null and dictType != ''"> |
| | | AND dict_type like concat('%', #{dictType}, '%') |
| | | AND dict_type like concat('%', cast(#{dictType} as varchar), '%') |
| | | </if> |
| | | <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 --> |
| | | and date_format(create_time,'%Y%m%d') >= date_format(#{params.beginTime},'%Y%m%d') |