| | |
| | | <if test="dictType != null and dictType != ''">
|
| | | AND dict_type like concat('%', #{dictType}, '%')
|
| | | </if>
|
| | | <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
| | | and date_format(create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
|
| | | <if test="beginTime != null and beginTime != ''"><!-- 开始时间检索 -->
|
| | | and date_format(create_time,'%y%m%d') >= date_format(#{beginTime},'%y%m%d')
|
| | | </if>
|
| | | <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
| | | and date_format(create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
|
| | | <if test="endTime != null and endTime != ''"><!-- 结束时间检索 -->
|
| | | and date_format(create_time,'%y%m%d') <= date_format(#{endTime},'%y%m%d')
|
| | | </if>
|
| | | </where>
|
| | | </select>
|
| | |
| | | <delete id="deleteDictTypeById" parameterType="Long">
|
| | | delete from sys_dict_type where dict_id = #{dictId}
|
| | | </delete>
|
| | | |
| | | <delete id="deleteDictTypeByIds" parameterType="Long">
|
| | | delete from sys_dict_type where dict_id in
|
| | | <foreach collection="array" item="dictId" open="(" separator="," close=")">
|
| | | #{dictId}
|
| | | </foreach> |
| | | </delete>
|
| | |
|
| | | <update id="updateDictType" parameterType="SysDictType">
|
| | | update sys_dict_type
|