update domain suffix

This commit is contained in:
Turbolisten
2021-10-08 20:36:06 +08:00
parent 8ead192c44
commit 7a28835f1e
51 changed files with 209 additions and 222 deletions

View File

@@ -13,17 +13,17 @@
from t_notice n
left join t_employee e on e.id = n.create_user
<where>
<if test="queryDTO.startDate != null and queryDTO.startDate != ''">
AND DATE_FORMAT(n.create_time, '%Y-%m-%d') &gt;= #{queryDTO.startDate}
<if test="query.startDate != null and query.startDate != ''">
AND DATE_FORMAT(n.create_time, '%Y-%m-%d') &gt;= #{query.startDate}
</if>
<if test="queryDTO.endDate != null and queryDTO.endDate != ''">
AND DATE_FORMAT(n.create_time, '%Y-%m-%d') &lt;= #{queryDTO.endDate}
<if test="query.endDate != null and query.endDate != ''">
AND DATE_FORMAT(n.create_time, '%Y-%m-%d') &lt;= #{query.endDate}
</if>
<if test="queryDTO.title != null and queryDTO.title != ''">
AND INSTR(n.title,#{queryDTO.title})
<if test="query.title != null and query.title != ''">
AND INSTR(n.title,#{query.title})
</if>
<if test="queryDTO.deletedFlag != null">
AND n.deleted_flag = #{queryDTO.deletedFlag}
<if test="query.deletedFlag != null">
AND n.deleted_flag = #{query.deletedFlag}
</if>
</where>
ORDER by n.create_time desc
@@ -47,7 +47,7 @@
</select>
<select id="queryReceiveByPage" resultType="net.lab1024.smartadmin.service.module.business.notice.domain.dto.NoticeReceiveDTO">
<select id="queryReceiveByPage" resultType="net.lab1024.smartadmin.service.module.business.notice.domain.dto.NoticeReceiveForm">
select
n.id,
n.title,
@@ -58,19 +58,19 @@
nrr.create_time as receiveTime
from t_notice n
left join t_employee e on e.id = n.create_user
left join t_notice_receive_record nrr on nrr.notice_id=n.id and nrr.employee_id=#{queryDTO.employeeId}
left join t_notice_receive_record nrr on nrr.notice_id=n.id and nrr.employee_id=#{query.employeeId}
<where>
<if test="queryDTO.startDate != null and queryDTO.startDate != ''">
AND DATE_FORMAT(n.create_time, '%Y-%m-%d') &gt;= #{queryDTO.startDate}
<if test="query.startDate != null and query.startDate != ''">
AND DATE_FORMAT(n.create_time, '%Y-%m-%d') &gt;= #{query.startDate}
</if>
<if test="queryDTO.endDate != null and queryDTO.endDate != ''">
AND DATE_FORMAT(n.create_time, '%Y-%m-%d') &lt;= #{queryDTO.endDate}
<if test="query.endDate != null and query.endDate != ''">
AND DATE_FORMAT(n.create_time, '%Y-%m-%d') &lt;= #{query.endDate}
</if>
<if test="queryDTO.title != null and queryDTO.title != ''">
AND INSTR(n.title,#{queryDTO.title})
<if test="query.title != null and query.title != ''">
AND INSTR(n.title,#{query.title})
</if>
<if test="queryDTO.sendStatus != null">
AND n.send_status = #{queryDTO.sendStatus}
<if test="query.sendStatus != null">
AND n.send_status = #{query.sendStatus}
</if>
</where>
ORDER by n.create_time desc

View File

@@ -3,32 +3,20 @@
<mapper namespace="net.lab1024.smartadmin.service.module.support.operatelog.OperateLogDao">
<select id="queryByPage" resultType="net.lab1024.smartadmin.service.module.support.operatelog.domain.OperateLogEntity">
select
id,
user_id,
user_name,
module,
content,
url,
method,
param,
success_flag,
fail_reason,
update_time,
create_time
select *
from t_user_operate_log
<where>
<if test="queryDTO.startDate != null and queryDTO.startDate != ''">
AND DATE_FORMAT(create_time, '%Y-%m-%d') &gt;= #{queryDTO.startDate}
<if test="query.startDate != null and query.startDate != ''">
AND DATE_FORMAT(create_time, '%Y-%m-%d') &gt;= #{query.startDate}
</if>
<if test="queryDTO.endDate != null and queryDTO.endDate != ''">
AND DATE_FORMAT(create_time, '%Y-%m-%d') &lt;= #{queryDTO.endDate}
<if test="query.endDate != null and query.endDate != ''">
AND DATE_FORMAT(create_time, '%Y-%m-%d') &lt;= #{query.endDate}
</if>
<if test="queryDTO.userName != null and queryDTO.userName != ''">
AND INSTR(user_name,#{queryDTO.userName})
<if test="query.userName != null and query.userName != ''">
AND INSTR(user_name,#{query.userName})
</if>
<if test="queryDTO.resultFlag != null">
AND result = #{queryDTO.resultFlag}
<if test="query.resultFlag != null">
AND result = #{query.resultFlag}
</if>
</where>
order by create_time desc