Browse Source

Data

master
laishajiang 2 years ago
parent
commit
ab24962994
  1. 8
      mailbox-lan/src/main/resources/mapper/DataMapper.xml

8
mailbox-lan/src/main/resources/mapper/DataMapper.xml

@ -91,13 +91,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
(SELECT COUNT(*) FROM mail_mark b where 1=1
<if test="searchStartTime != null and searchEndTime != null">
AND b.completion_time BETWEEN #{searchStartTime} AND (to_date(#{searchEndTime}) + interval '1 D')
</if>) AS total
</if>) AS total2
from mail_mark b left join dept a on a.id=b.second_dept_id where 1=1
<if test="searchStartTime != null and searchEndTime != null">
AND b.completion_time BETWEEN #{searchStartTime} AND (to_date(#{searchEndTime}) + interval '1 D')
</if>
) t2 on t1.total = t2.total
) t2 on t1.total = t2.total2
) t3 JOIN
@ -109,13 +109,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
(SELECT COUNT(*) FROM mail_mark b where 1=1
<if test="searchStartTime != null and searchEndTime != null">
AND b.completion_time BETWEEN #{searchStartTime} AND (to_date(#{searchEndTime}) + interval '1 D')
</if>) AS total
</if>) AS total3
from mail_mark b left join dept a on a.id=b.second_dept_id where 1=1
<if test="searchStartTime != null and searchEndTime != null">
AND b.completion_time BETWEEN #{searchStartTime} AND (to_date(#{searchEndTime}) + interval '1 D')
</if>
) t4 on t3.total = t4.total
) t4 on t3.total2 = t4.total3
</select>

Loading…
Cancel
Save