代码提交
This commit is contained in:
parent
9aff0c7208
commit
9deb286e61
|
|
@ -88,7 +88,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
t1.del_flag = '1'
|
t1.del_flag = '1'
|
||||||
AND t1.LEVEL IN ( 0, 1, 2, 3 )
|
AND t1.LEVEL IN ( 0, 1, 2, 3 )
|
||||||
<if test="contentName != null and contentName != ''">
|
<if test="contentName != null and contentName != ''">
|
||||||
and t1.content_name like concat('%', #{contentName}, '%')
|
and INSTR(t1.content_name, #{contentName}) > 0
|
||||||
</if>
|
</if>
|
||||||
ORDER BY
|
ORDER BY
|
||||||
t1.`level`,t1.sort
|
t1.`level`,t1.sort
|
||||||
|
|
@ -118,7 +118,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
WHERE
|
WHERE
|
||||||
dkfc.del_flag = '1' and dkfc.parent_id = #{parentId} and dkfc.level = 4
|
dkfc.del_flag = '1' and dkfc.parent_id = #{parentId} and dkfc.level = 4
|
||||||
<if test="contentName != null and contentName != ''">
|
<if test="contentName != null and contentName != ''">
|
||||||
and dkfc.content_name like concat('%', #{contentName}, '%')
|
and INSTR(dkfc.content_name, #{contentName}) > 0
|
||||||
</if>
|
</if>
|
||||||
order by dkfc.create_time desc
|
order by dkfc.create_time desc
|
||||||
</select>
|
</select>
|
||||||
|
|
|
||||||
|
|
@ -147,7 +147,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
AND dkp.pro_id = #{proId}
|
AND dkp.pro_id = #{proId}
|
||||||
AND dkp.level IN (0,1,2,3,4)
|
AND dkp.level IN (0,1,2,3,4)
|
||||||
<if test="keyWord != null and keyWord != ''">
|
<if test="keyWord != null and keyWord != ''">
|
||||||
AND dkp.content_name LIKE CONCAT('%', #{keyWord}, '%')
|
AND INSTR(dkp.content_name, #{keyWord}) > 0
|
||||||
</if>
|
</if>
|
||||||
ORDER BY
|
ORDER BY
|
||||||
dkp.`level`, dkp.sort
|
dkp.`level`, dkp.sort
|
||||||
|
|
@ -179,7 +179,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
WHERE
|
WHERE
|
||||||
dkpfc.del_flag = '1' and dkpfc.parent_id = #{parentId} and dkpfc.pro_id = #{proId} and dkpfc.level = 5
|
dkpfc.del_flag = '1' and dkpfc.parent_id = #{parentId} and dkpfc.pro_id = #{proId} and dkpfc.level = 5
|
||||||
<if test="contentName != null and contentName != ''">
|
<if test="contentName != null and contentName != ''">
|
||||||
and dkpfc.content_name like concat('%', #{contentName}, '%')
|
AND INSTR(dkpfc.content_name, #{contentName}) > 0
|
||||||
</if>
|
</if>
|
||||||
<if test="uploadTime != null and uploadTime != ''">
|
<if test="uploadTime != null and uploadTime != ''">
|
||||||
and DATE(dkfs.create_time) = #{uploadTime}
|
and DATE(dkfs.create_time) = #{uploadTime}
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
WHERE
|
WHERE
|
||||||
del_flag = '1'
|
del_flag = '1'
|
||||||
<if test="classifyMarkName != null and classifyMarkName != ''">
|
<if test="classifyMarkName != null and classifyMarkName != ''">
|
||||||
AND classify_mark_name LIKE CONCAT('%',#{classifyMarkName},'%')
|
AND INSTR(classify_mark_name, #{classifyMarkName}) > 0
|
||||||
</if>
|
</if>
|
||||||
ORDER BY
|
ORDER BY
|
||||||
create_time DESC
|
create_time DESC
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
WHERE
|
WHERE
|
||||||
dkp.del_flag = '1'
|
dkp.del_flag = '1'
|
||||||
<if test="proName != null and proName != ''">
|
<if test="proName != null and proName != ''">
|
||||||
AND dkp.single_pro_name LIKE CONCAT('%',#{proName},'%')
|
AND INSTR(dkp.single_pro_name, #{proName}) > 0
|
||||||
</if>
|
</if>
|
||||||
<if test="proType != null and proType != ''">
|
<if test="proType != null and proType != ''">
|
||||||
AND dkp.pro_type = #{proType}
|
AND dkp.pro_type = #{proType}
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<include refid="selectJobLogVo"/>
|
<include refid="selectJobLogVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="jobName != null and jobName != ''">
|
<if test="jobName != null and jobName != ''">
|
||||||
AND job_name like concat('%', #{jobName}, '%')
|
AND INSTR(job_name, #{jobName}) > 0
|
||||||
</if>
|
</if>
|
||||||
<if test="jobGroup != null and jobGroup != ''">
|
<if test="jobGroup != null and jobGroup != ''">
|
||||||
AND job_group = #{jobGroup}
|
AND job_group = #{jobGroup}
|
||||||
|
|
@ -33,7 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
AND status = #{status}
|
AND status = #{status}
|
||||||
</if>
|
</if>
|
||||||
<if test="invokeTarget != null and invokeTarget != ''">
|
<if test="invokeTarget != null and invokeTarget != ''">
|
||||||
AND invoke_target like concat('%', #{invokeTarget}, '%')
|
AND INSTR(invoke_target, #{invokeTarget}) > 0
|
||||||
</if>
|
</if>
|
||||||
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
||||||
and date_format(create_time,'%Y%m%d') >= date_format(#{params.beginTime},'%Y%m%d')
|
and date_format(create_time,'%Y%m%d') >= date_format(#{params.beginTime},'%Y%m%d')
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<include refid="selectJobVo"/>
|
<include refid="selectJobVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="jobName != null and jobName != ''">
|
<if test="jobName != null and jobName != ''">
|
||||||
AND job_name like concat('%', #{jobName}, '%')
|
AND INSTR(job_name, #{jobName}) > 0
|
||||||
</if>
|
</if>
|
||||||
<if test="jobGroup != null and jobGroup != ''">
|
<if test="jobGroup != null and jobGroup != ''">
|
||||||
AND job_group = #{jobGroup}
|
AND job_group = #{jobGroup}
|
||||||
|
|
@ -38,7 +38,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
AND status = #{status}
|
AND status = #{status}
|
||||||
</if>
|
</if>
|
||||||
<if test="invokeTarget != null and invokeTarget != ''">
|
<if test="invokeTarget != null and invokeTarget != ''">
|
||||||
AND invoke_target like concat('%', #{invokeTarget}, '%')
|
AND INSTR(invoke_target, #{invokeTarget}) > 0
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
update_user_id,update_user_name
|
update_user_id,update_user_name
|
||||||
from da_ky_files_customize_classify where del_flag = '1'
|
from da_ky_files_customize_classify where del_flag = '1'
|
||||||
<if test="customizeClassifyName!=null">
|
<if test="customizeClassifyName!=null">
|
||||||
and customize_classify_name LIKE CONCAT('%', #{customizeClassifyName}, '%')
|
AND INSTR(customize_classify_name, #{customizeClassifyName}) > 0
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
<select id="getKyFilesCustomizeClassify" resultType="com.bonus.system.domain.KyFilesCustomizeClassify">
|
<select id="getKyFilesCustomizeClassify" resultType="com.bonus.system.domain.KyFilesCustomizeClassify">
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
left join da_ky_sys_dict_data dksdd2 on dkfmc.file_related = dksdd2.dict_value and dksdd2.dict_type = 'file_related_type'
|
left join da_ky_sys_dict_data dksdd2 on dkfmc.file_related = dksdd2.dict_value and dksdd2.dict_type = 'file_related_type'
|
||||||
where dkfmc.del_flag='1'
|
where dkfmc.del_flag='1'
|
||||||
<if test="classifyName!=null">
|
<if test="classifyName!=null">
|
||||||
and classify_name LIKE CONCAT('%', #{classifyName}, '%')
|
AND INSTR(classify_name, #{classifyName}) > 0
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
<select id="getKyFilesMultiClassifyByClassifyName"
|
<select id="getKyFilesMultiClassifyByClassifyName"
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
left join da_ky_sys_dict_data dksdd on dkdc.pid =dksdd.dict_value
|
left join da_ky_sys_dict_data dksdd on dkdc.pid =dksdd.dict_value
|
||||||
where del_flag='1'
|
where del_flag='1'
|
||||||
<if test="dataTypeName!=null">
|
<if test="dataTypeName!=null">
|
||||||
and data_type_name LIKE CONCAT('%', #{dataTypeName}, '%')
|
AND INSTR(data_type_name, #{dataTypeName}) > 0
|
||||||
</if>
|
</if>
|
||||||
order by dkdc.create_time desc
|
order by dkdc.create_time desc
|
||||||
</select>
|
</select>
|
||||||
|
|
@ -52,7 +52,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
select id,data_type_name
|
select id,data_type_name
|
||||||
from da_ky_data_classify where del_flag='1' and pid =#{pid}
|
from da_ky_data_classify where del_flag='1' and pid =#{pid}
|
||||||
<if test="dataTypeName!=null">
|
<if test="dataTypeName!=null">
|
||||||
and data_type_name LIKE CONCAT('%', #{dataTypeName}, '%')
|
AND INSTR(data_type_name, #{dataTypeName}) > 0
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
<select id="selectKyDataClassifyByDataTypeName" resultType="com.bonus.system.domain.KyDataClassify">
|
<select id="selectKyDataClassifyByDataTypeName" resultType="com.bonus.system.domain.KyDataClassify">
|
||||||
|
|
|
||||||
|
|
@ -42,13 +42,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<include refid="selectConfigVo"/>
|
<include refid="selectConfigVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="configName != null and configName != ''">
|
<if test="configName != null and configName != ''">
|
||||||
AND config_name like concat('%', #{configName}, '%')
|
AND INSTR(config_name, #{configName}) > 0
|
||||||
</if>
|
</if>
|
||||||
<if test="configType != null and configType != ''">
|
<if test="configType != null and configType != ''">
|
||||||
AND config_type = #{configType}
|
AND config_type = #{configType}
|
||||||
</if>
|
</if>
|
||||||
<if test="configKey != null and configKey != ''">
|
<if test="configKey != null and configKey != ''">
|
||||||
AND config_key like concat('%', #{configKey}, '%')
|
AND INSTR(config_key, #{configKey}) > 0
|
||||||
</if>
|
</if>
|
||||||
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
||||||
and date_format(create_time,'%Y%m%d') >= date_format(#{params.beginTime},'%Y%m%d')
|
and date_format(create_time,'%Y%m%d') >= date_format(#{params.beginTime},'%Y%m%d')
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
AND parent_id = #{parentId}
|
AND parent_id = #{parentId}
|
||||||
</if>
|
</if>
|
||||||
<if test="deptName != null and deptName != ''">
|
<if test="deptName != null and deptName != ''">
|
||||||
AND dept_name like concat('%', #{deptName}, '%')
|
AND INSTR(dept_name, #{deptName}) > 0
|
||||||
</if>
|
</if>
|
||||||
<if test="status != null and status != ''">
|
<if test="status != null and status != ''">
|
||||||
AND status = #{status}
|
AND status = #{status}
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
AND dict_type = #{dictType}
|
AND dict_type = #{dictType}
|
||||||
</if>
|
</if>
|
||||||
<if test="dictLabel != null and dictLabel != ''">
|
<if test="dictLabel != null and dictLabel != ''">
|
||||||
AND dict_label like concat('%', #{dictLabel}, '%')
|
AND INSTR(dict_label, #{dictLabel}) > 0
|
||||||
</if>
|
</if>
|
||||||
<if test="status != null and status != ''">
|
<if test="status != null and status != ''">
|
||||||
AND status = #{status}
|
AND status = #{status}
|
||||||
|
|
|
||||||
|
|
@ -24,13 +24,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<include refid="selectDictTypeVo"/>
|
<include refid="selectDictTypeVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="dictName != null and dictName != ''">
|
<if test="dictName != null and dictName != ''">
|
||||||
AND dict_name like concat('%', #{dictName}, '%')
|
AND INSTR(dict_name, #{dictName}) > 0
|
||||||
</if>
|
</if>
|
||||||
<if test="status != null and status != ''">
|
<if test="status != null and status != ''">
|
||||||
AND status = #{status}
|
AND status = #{status}
|
||||||
</if>
|
</if>
|
||||||
<if test="dictType != null and dictType != ''">
|
<if test="dictType != null and dictType != ''">
|
||||||
AND dict_type like concat('%', #{dictType}, '%')
|
AND INSTR(dict_type, #{dictType}) > 0
|
||||||
</if>
|
</if>
|
||||||
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
||||||
and date_format(create_time,'%Y%m%d') >= date_format(#{params.beginTime},'%Y%m%d')
|
and date_format(create_time,'%Y%m%d') >= date_format(#{params.beginTime},'%Y%m%d')
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@
|
||||||
from da_ky_sys_encrypt_set
|
from da_ky_sys_encrypt_set
|
||||||
where 1=1
|
where 1=1
|
||||||
<if test="encryptName != null and encryptName != ''">
|
<if test="encryptName != null and encryptName != ''">
|
||||||
and encrypt_name like concat ('%',#{encryptName},'%')
|
AND INSTR(dkp.encrypt_name, #{encryptName}) > 0
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
<select id="selectSysEncryType" resultType="java.lang.Integer">
|
<select id="selectSysEncryType" resultType="java.lang.Integer">
|
||||||
|
|
|
||||||
|
|
@ -125,16 +125,16 @@
|
||||||
from da_ky_sys_logs
|
from da_ky_sys_logs
|
||||||
where log_type=#{logType}
|
where log_type=#{logType}
|
||||||
<if test="operaUserName!=null and operaUserName!=''">
|
<if test="operaUserName!=null and operaUserName!=''">
|
||||||
and opera_user_name LIKE concat('%',#{operaUserName},'%')
|
AND INSTR(opera_user_name, #{operaUserName}) > 0
|
||||||
</if>
|
</if>
|
||||||
<if test="model!=null and model!=''">
|
<if test="model!=null and model!=''">
|
||||||
and model LIKE concat('%',#{model},'%')
|
AND INSTR(model, #{model}) > 0
|
||||||
</if>
|
</if>
|
||||||
<if test="operType!=null and operType !=''">
|
<if test="operType!=null and operType !=''">
|
||||||
and oper_type LIKE concat('%',#{operType},'%')
|
AND INSTR(oper_type, #{operType}) > 0
|
||||||
</if>
|
</if>
|
||||||
<if test="params!=null and params !=''">
|
<if test="params!=null and params !=''">
|
||||||
and params LIKE concat('%',#{params},'%')
|
AND INSTR(params, #{params}) > 0
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
<if test="errType!=null and errType!=''">
|
<if test="errType!=null and errType!=''">
|
||||||
|
|
@ -147,10 +147,10 @@
|
||||||
and oper_time BETWEEN concat(#{startTime}, ' 00:00:00') AND concat(#{endTime},' 23:59:59')
|
and oper_time BETWEEN concat(#{startTime}, ' 00:00:00') AND concat(#{endTime},' 23:59:59')
|
||||||
</if>
|
</if>
|
||||||
<if test="ip !=null and ip!=''">
|
<if test="ip !=null and ip!=''">
|
||||||
and ip LIKE concat('%',#{ip},'%')
|
and INSTR(ip, #{ip}) > 0
|
||||||
</if>
|
</if>
|
||||||
<if test="result !=null and result !=''">
|
<if test="result !=null and result !=''">
|
||||||
and result LIKE concat('%',#{result},'%')
|
and INSTR(result, #{result}) > 0
|
||||||
</if>
|
</if>
|
||||||
<if test="logSort!=null and logDesc !=null and logSort!='' and logDesc!='' ">
|
<if test="logSort!=null and logDesc !=null and logSort!='' and logDesc!='' ">
|
||||||
order by
|
order by
|
||||||
|
|
|
||||||
|
|
@ -25,13 +25,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
select info_id, user_name, ipaddr, login_location, browser, os, status, msg, login_time from da_ky_sys_logininfor
|
select info_id, user_name, ipaddr, login_location, browser, os, status, msg, login_time from da_ky_sys_logininfor
|
||||||
<where>
|
<where>
|
||||||
<if test="ipaddr != null and ipaddr != ''">
|
<if test="ipaddr != null and ipaddr != ''">
|
||||||
AND ipaddr like concat('%', #{ipaddr}, '%')
|
AND INSTR(ipaddr, #{ipaddr}) > 0
|
||||||
</if>
|
</if>
|
||||||
<if test="status != null and status != ''">
|
<if test="status != null and status != ''">
|
||||||
AND status = #{status}
|
AND status = #{status}
|
||||||
</if>
|
</if>
|
||||||
<if test="userName != null and userName != ''">
|
<if test="userName != null and userName != ''">
|
||||||
AND user_name like concat('%', #{userName}, '%')
|
AND INSTR(user_name, #{userName}) > 0
|
||||||
</if>
|
</if>
|
||||||
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
||||||
AND login_time >= #{params.beginTime}
|
AND login_time >= #{params.beginTime}
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@
|
||||||
<include refid="selectMenuVo"/>
|
<include refid="selectMenuVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="menuName != null and menuName != ''">
|
<if test="menuName != null and menuName != ''">
|
||||||
AND menu_name like concat('%', #{menuName}, '%')
|
AND INSTR(menu_name, #{menuName}) > 0
|
||||||
</if>
|
</if>
|
||||||
<if test="visible != null and visible != ''">
|
<if test="visible != null and visible != ''">
|
||||||
AND visible = #{visible}
|
AND visible = #{visible}
|
||||||
|
|
@ -63,7 +63,7 @@
|
||||||
left join da_ky_sys_role ro on ur.role_id = ro.role_id
|
left join da_ky_sys_role ro on ur.role_id = ro.role_id
|
||||||
where ur.user_id = #{params.userId}
|
where ur.user_id = #{params.userId}
|
||||||
<if test="menuName != null and menuName != ''">
|
<if test="menuName != null and menuName != ''">
|
||||||
AND m.menu_name like concat('%', #{menuName}, '%')
|
AND INSTR(m.menu_name, #{menuName}) > 0
|
||||||
</if>
|
</if>
|
||||||
<if test="visible != null and visible != ''">
|
<if test="visible != null and visible != ''">
|
||||||
AND m.visible = #{visible}
|
AND m.visible = #{visible}
|
||||||
|
|
|
||||||
|
|
@ -31,13 +31,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<include refid="selectNoticeVo"/>
|
<include refid="selectNoticeVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="noticeTitle != null and noticeTitle != ''">
|
<if test="noticeTitle != null and noticeTitle != ''">
|
||||||
AND notice_title like concat('%', #{noticeTitle}, '%')
|
AND INSTR(notice_title, #{noticeTitle}) > 0
|
||||||
</if>
|
</if>
|
||||||
<if test="noticeType != null and noticeType != ''">
|
<if test="noticeType != null and noticeType != ''">
|
||||||
AND notice_type = #{noticeType}
|
AND notice_type = #{noticeType}
|
||||||
</if>
|
</if>
|
||||||
<if test="createBy != null and createBy != ''">
|
<if test="createBy != null and createBy != ''">
|
||||||
AND create_by like concat('%', #{createBy}, '%')
|
AND INSTR(create_by, #{createBy}) > 0
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
|
||||||
|
|
@ -56,10 +56,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<include refid="selectOperLogVo"/>
|
<include refid="selectOperLogVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="operIp != null and operIp != ''">
|
<if test="operIp != null and operIp != ''">
|
||||||
AND oper_ip like concat('%', #{operIp}, '%')
|
AND INSTR(oper_ip, #{operIp}) > 0
|
||||||
</if>
|
</if>
|
||||||
<if test="title != null and title != ''">
|
<if test="title != null and title != ''">
|
||||||
AND title like concat('%', #{title}, '%')
|
AND INSTR(title, #{title}) > 0
|
||||||
</if>
|
</if>
|
||||||
<if test="businessType != null">
|
<if test="businessType != null">
|
||||||
AND business_type = #{businessType}
|
AND business_type = #{businessType}
|
||||||
|
|
@ -74,7 +74,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
AND status = #{status}
|
AND status = #{status}
|
||||||
</if>
|
</if>
|
||||||
<if test="operName != null and operName != ''">
|
<if test="operName != null and operName != ''">
|
||||||
AND oper_name like concat('%', #{operName}, '%')
|
AND INSTR(oper_name, #{operName}) > 0
|
||||||
</if>
|
</if>
|
||||||
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
||||||
AND oper_time >= #{params.beginTime}
|
AND oper_time >= #{params.beginTime}
|
||||||
|
|
|
||||||
|
|
@ -26,13 +26,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<include refid="selectPostVo"/>
|
<include refid="selectPostVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="postCode != null and postCode != ''">
|
<if test="postCode != null and postCode != ''">
|
||||||
AND post_code like concat('%', #{postCode}, '%')
|
AND INSTR(post_code, #{postCode}) > 0
|
||||||
</if>
|
</if>
|
||||||
<if test="status != null and status != ''">
|
<if test="status != null and status != ''">
|
||||||
AND status = #{status}
|
AND status = #{status}
|
||||||
</if>
|
</if>
|
||||||
<if test="postName != null and postName != ''">
|
<if test="postName != null and postName != ''">
|
||||||
AND post_name like concat('%', #{postName}, '%')
|
AND INSTR(post_name, #{postName}) > 0
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
|
||||||
|
|
@ -37,13 +37,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
AND r.role_id = #{roleId}
|
AND r.role_id = #{roleId}
|
||||||
</if>
|
</if>
|
||||||
<if test="roleName != null and roleName != ''">
|
<if test="roleName != null and roleName != ''">
|
||||||
AND r.role_name like concat('%', #{roleName}, '%')
|
AND INSTR(r.role_name, #{roleName}) > 0
|
||||||
</if>
|
</if>
|
||||||
<if test="status != null and status != ''">
|
<if test="status != null and status != ''">
|
||||||
AND r.status = #{status}
|
AND r.status = #{status}
|
||||||
</if>
|
</if>
|
||||||
<if test="roleKey != null and roleKey != ''">
|
<if test="roleKey != null and roleKey != ''">
|
||||||
AND r.role_key like concat('%', #{roleKey}, '%')
|
AND INSTR(r.role_key, #{roleKey}) > 0
|
||||||
</if>
|
</if>
|
||||||
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
<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 date_format(r.create_time,'%Y%m%d') >= date_format(#{params.beginTime},'%Y%m%d')
|
||||||
|
|
|
||||||
|
|
@ -71,13 +71,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
AND u.user_id = #{userId}
|
AND u.user_id = #{userId}
|
||||||
</if>
|
</if>
|
||||||
<if test="userName != null and userName != ''">
|
<if test="userName != null and userName != ''">
|
||||||
AND u.user_name like concat('%', #{userName}, '%')
|
AND INSTR(u.user_name, #{userName}) > 0
|
||||||
</if>
|
</if>
|
||||||
<if test="status != null and status != ''">
|
<if test="status != null and status != ''">
|
||||||
AND u.status = #{status}
|
AND u.status = #{status}
|
||||||
</if>
|
</if>
|
||||||
<if test="phonenumber != null and phonenumber != ''">
|
<if test="phonenumber != null and phonenumber != ''">
|
||||||
AND u.phonenumber like concat('%', #{phonenumber}, '%')
|
AND INSTR(u.phonenumber, #{phonenumber}) > 0
|
||||||
</if>
|
</if>
|
||||||
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
||||||
AND date_format(u.create_time,'%Y%m%d') >= date_format(#{params.beginTime},'%Y%m%d')
|
AND date_format(u.create_time,'%Y%m%d') >= date_format(#{params.beginTime},'%Y%m%d')
|
||||||
|
|
@ -100,10 +100,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
left join da_ky_sys_role r on r.role_id = ur.role_id
|
left join da_ky_sys_role r on r.role_id = ur.role_id
|
||||||
where u.del_flag = '0' and r.role_id = #{roleId}
|
where u.del_flag = '0' and r.role_id = #{roleId}
|
||||||
<if test="userName != null and userName != ''">
|
<if test="userName != null and userName != ''">
|
||||||
AND u.user_name like concat('%', #{userName}, '%')
|
AND INSTR(u.user_name, #{userName}) > 0
|
||||||
</if>
|
</if>
|
||||||
<if test="phonenumber != null and phonenumber != ''">
|
<if test="phonenumber != null and phonenumber != ''">
|
||||||
AND u.phonenumber like concat('%', #{phonenumber}, '%')
|
AND INSTR(u.phonenumber, #{phonenumber}) > 0
|
||||||
</if>
|
</if>
|
||||||
<!-- 数据范围过滤 -->
|
<!-- 数据范围过滤 -->
|
||||||
${params.dataScope}
|
${params.dataScope}
|
||||||
|
|
@ -118,10 +118,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
where u.del_flag = '0' and (r.role_id != #{roleId} or r.role_id IS NULL)
|
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 da_ky_sys_user u inner join da_ky_sys_user_role ur on u.user_id = ur.user_id and ur.role_id = #{roleId})
|
and u.user_id not in (select u.user_id from da_ky_sys_user u inner join da_ky_sys_user_role ur on u.user_id = ur.user_id and ur.role_id = #{roleId})
|
||||||
<if test="userName != null and userName != ''">
|
<if test="userName != null and userName != ''">
|
||||||
AND u.user_name like concat('%', #{userName}, '%')
|
AND INSTR(u.user_name, #{userName}) > 0
|
||||||
</if>
|
</if>
|
||||||
<if test="phonenumber != null and phonenumber != ''">
|
<if test="phonenumber != null and phonenumber != ''">
|
||||||
AND u.phonenumber like concat('%', #{phonenumber}, '%')
|
AND INSTR(u.phonenumber, #{phonenumber}) > 0
|
||||||
</if>
|
</if>
|
||||||
<!-- 数据范围过滤 -->
|
<!-- 数据范围过滤 -->
|
||||||
${params.dataScope}
|
${params.dataScope}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue