修复bug:通过时间查询人员记录bug

This commit is contained in:
gaoben 2021-04-06 18:15:05 +08:00
parent db7ffe29da
commit f76bf8491b
1 changed files with 2 additions and 1 deletions

View File

@ -198,6 +198,7 @@
select r.*,t.name from ten_record_${params.tenantId} r left join ten_person t on r.person_id = t.person_id
where 1 = 1
<if test="params.cellId != null and params.cellId!=''">
and r.cell_id = #{params.cellId}
</if>
@ -207,7 +208,7 @@
<if test="params.recordTimeStart != null and params.recordTimeStart!=''">
and `record_time` &gt;= #{params.recordTimeStart}
</if>
<if test="params.recordTimeEnd != null and params.recordTimeStart!=''">
<if test="params.recordTimeEnd != null and params.recordTimeEnd!=''">
and `record_time` &lt; #{params.recordTimeEnd}
</if>
<if test="cellIds != null">