【UPDATE】修改系统管理相关基础功能模糊检索报错问题
| | |
| | | <include refid="selectConfigVo"/> |
| | | <where> |
| | | <if test="configName != null and configName != ''"> |
| | | AND config_name like concat('%', #{configName}, '%') |
| | | AND config_name like '%' || #{configName} || '%' |
| | | </if> |
| | | <if test="configType != null and configType != ''"> |
| | | AND config_type = #{configType} |
| | | </if> |
| | | <if test="configKey != null and configKey != ''"> |
| | | AND config_key like concat('%', #{configKey}, '%') |
| | | AND config_key like '%' || #{configKey} || '%' |
| | | </if> |
| | | <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 --> |
| | | and date_format(create_time,'%Y%m%d') >= date_format(#{params.beginTime},'%Y%m%d') |
| | |
| | | AND parent_id = #{parentId} |
| | | </if> |
| | | <if test="deptName != null and deptName != ''"> |
| | | AND dept_name like concat('%', #{deptName}, '%') |
| | | AND dept_name like '%' || #{deptName} '%' |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | AND status = #{status} |
| | |
| | | AND dict_type = #{dictType} |
| | | </if> |
| | | <if test="dictLabel != null and dictLabel != ''"> |
| | | AND dict_label like concat('%', #{dictLabel}, '%') |
| | | AND dict_label like '%' || #{dictLabel} || '%' |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | AND status = #{status} |
| | |
| | | <include refid="selectDictTypeVo"/> |
| | | <where> |
| | | <if test="dictName != null and dictName != ''"> |
| | | AND dict_name like concat('%', cast(#{dictName} as varchar), '%') |
| | | AND dict_name like '%' || #{dictName} || '%' |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | AND status = #{status} |
| | | </if> |
| | | <if test="dictType != null and dictType != ''"> |
| | | AND dict_type like concat('%', cast(#{dictType} as varchar), '%') |
| | | AND dict_type like '%' || #{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') |
| | |
| | | select info_id, user_name, ipaddr, status, msg, access_time from sys_logininfor |
| | | <where> |
| | | <if test="ipaddr != null and ipaddr != ''"> |
| | | AND ipaddr like concat('%', #{ipaddr}, '%') |
| | | AND ipaddr like '%' || #{ipaddr} || '%' |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | AND status = #{status} |
| | | </if> |
| | | <if test="userName != null and userName != ''"> |
| | | AND user_name like concat('%', #{userName}, '%') |
| | | AND user_name like '%' || #{userName} || '%' |
| | | </if> |
| | | <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 --> |
| | | AND access_time >= #{params.beginTime} |
| | |
| | | <include refid="selectMenuVo"/> |
| | | <where> |
| | | <if test="menuName != null and menuName != ''"> |
| | | AND menu_name like concat('%', #{menuName}, '%') |
| | | AND menu_name like '%' || #{menuName} || '%' |
| | | </if> |
| | | <if test="visible != null and visible != ''"> |
| | | AND visible = #{visible} |
| | |
| | | left join sys_role ro on ur.role_id = ro.role_id |
| | | where ur.user_id = #{params.userId} |
| | | <if test="menuName != null and menuName != ''"> |
| | | AND m.menu_name like concat('%', #{menuName}, '%') |
| | | AND m.menu_name like '%' || #{menuName} || '%' |
| | | </if> |
| | | <if test="visible != null and visible != ''"> |
| | | AND m.visible = #{visible} |
| | |
| | | <include refid="selectNoticeVo"/> |
| | | <where> |
| | | <if test="noticeTitle != null and noticeTitle != ''"> |
| | | AND notice_title like concat('%', #{noticeTitle}, '%') |
| | | AND notice_title like '%' || #{noticeTitle} || '%' |
| | | </if> |
| | | <if test="noticeType != null and noticeType != ''"> |
| | | AND notice_type = #{noticeType} |
| | | </if> |
| | | <if test="createBy != null and createBy != ''"> |
| | | AND create_by like concat('%', #{createBy}, '%') |
| | | AND create_by like '%' || #{createBy} || '%' |
| | | </if> |
| | | </where> |
| | | </select> |
| | |
| | | <include refid="selectOperLogVo"/> |
| | | <where> |
| | | <if test="operIp != null and operIp != ''"> |
| | | AND oper_ip like concat('%', #{operIp}, '%') |
| | | AND oper_ip like '%' || #{operIp} || '%' |
| | | </if> |
| | | <if test="title != null and title != ''"> |
| | | AND title like concat('%', #{title}, '%') |
| | | AND title like '%' || #{title} || '%' |
| | | </if> |
| | | <if test="businessType != null"> |
| | | AND business_type = #{businessType} |
| | |
| | | AND status = #{status} |
| | | </if> |
| | | <if test="operName != null and operName != ''"> |
| | | AND oper_name like concat('%', #{operName}, '%') |
| | | AND oper_name like '%' || #{operName} || '%' |
| | | </if> |
| | | <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 --> |
| | | AND oper_time >= #{params.beginTime} |
| | |
| | | <include refid="selectPostVo"/> |
| | | <where> |
| | | <if test="postCode != null and postCode != ''"> |
| | | AND post_code like concat('%', #{postCode}, '%') |
| | | AND post_code like '%' || #{postCode} || '%' |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | AND status = #{status} |
| | | </if> |
| | | <if test="postName != null and postName != ''"> |
| | | AND post_name like concat('%', #{postName}, '%') |
| | | AND post_name like '%' || #{postName} || '%' |
| | | </if> |
| | | </where> |
| | | </select> |
| | |
| | | AND r.role_id = #{roleId} |
| | | </if> |
| | | <if test="roleName != null and roleName != ''"> |
| | | AND r.role_name like concat('%', #{roleName}, '%') |
| | | AND r.role_name like '%' || #{roleName} || '%' |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | AND r.status = #{status} |
| | | </if> |
| | | <if test="roleKey != null and roleKey != ''"> |
| | | AND r.role_key like concat('%', #{roleKey}, '%') |
| | | AND r.role_key like '%' || #{roleKey} || '%' |
| | | </if> |
| | | <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 --> |
| | | and date_format(r.create_time,'%Y%m%d') >= date_format(#{params.beginTime},'%Y%m%d') |
| | |
| | | AND u.user_id = #{userId} |
| | | </if> |
| | | <if test="userName != null and userName != ''"> |
| | | AND u.user_name like concat('%', #{userName}, '%') |
| | | AND u.user_name like '%' || #{userName} || '%' |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | AND u.status = #{status} |
| | | </if> |
| | | <if test="phonenumber != null and phonenumber != ''"> |
| | | AND u.phonenumber like concat('%', #{phonenumber}, '%') |
| | | AND u.phonenumber like '%' || #{phonenumber} || '%' |
| | | </if> |
| | | <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 --> |
| | | AND date_format(u.create_time,'%Y%m%d') >= date_format(#{params.beginTime},'%Y%m%d') |
| | |
| | | left join sys_role r on r.role_id = ur.role_id |
| | | where u.del_flag = '0' and r.role_id = #{roleId} |
| | | <if test="userName != null and userName != ''"> |
| | | AND u.user_name like concat('%', #{userName}, '%') |
| | | AND u.user_name like '%' || #{userName} || '%' |
| | | </if> |
| | | <if test="phonenumber != null and phonenumber != ''"> |
| | | AND u.phonenumber like concat('%', #{phonenumber}, '%') |
| | | AND u.phonenumber like '%' || #{phonenumber} || '%' |
| | | </if> |
| | | <!-- 数据范围过滤 --> |
| | | ${params.dataScope} |
| | |
| | | where u.del_flag = '0' and (r.role_id != #{roleId} or r.role_id IS NULL) |
| | | and u.user_id not in (select u.user_id from sys_user u inner join sys_user_role ur on u.user_id = ur.user_id and ur.role_id = #{roleId}) |
| | | <if test="userName != null and userName != ''"> |
| | | AND u.user_name like concat('%', #{userName}, '%') |
| | | AND u.user_name like '%' || #{userName} || '%' |
| | | </if> |
| | | <if test="phonenumber != null and phonenumber != ''"> |
| | | AND u.phonenumber like concat('%', #{phonenumber}, '%') |
| | | AND u.phonenumber like '%' || #{phonenumber} || '%' |
| | | </if> |
| | | <!-- 数据范围过滤 --> |
| | | ${params.dataScope} |