|
@@ -1648,7 +1648,7 @@
|
|
<if test="orgId != null and orgId != ''">
|
|
<if test="orgId != null and orgId != ''">
|
|
and tee.org_id = #{orgId}
|
|
and tee.org_id = #{orgId}
|
|
</if>
|
|
</if>
|
|
- and (teesol.create_time >= unix_timestamp(date_sub(#{currentDate}, interval #{interval} day)) * 1000
|
|
|
|
|
|
+ and (teesol.create_time <![CDATA[ >= ]]> unix_timestamp(date_sub(#{currentDate}, interval #{interval} day)) * 1000
|
|
and teesol.create_time <![CDATA[ <= ]]> unix_timestamp(#{currentDate}) * 1000)
|
|
and teesol.create_time <![CDATA[ <= ]]> unix_timestamp(#{currentDate}) * 1000)
|
|
and teesol.`type` = 'ON_LINE') t where t.createTime <![CDATA[ <= ]]> #{item}
|
|
and teesol.`type` = 'ON_LINE') t where t.createTime <![CDATA[ <= ]]> #{item}
|
|
union all
|
|
union all
|
|
@@ -1672,7 +1672,7 @@
|
|
<if test="orgId != null and orgId != ''">
|
|
<if test="orgId != null and orgId != ''">
|
|
and tee.org_id = #{orgId}
|
|
and tee.org_id = #{orgId}
|
|
</if>
|
|
</if>
|
|
- and (teesol.create_time >= unix_timestamp(date_sub(#{currentDate}, interval #{interval} day)) * 1000
|
|
|
|
|
|
+ and (teesol.create_time <![CDATA[ >= ]]> unix_timestamp(date_sub(#{currentDate}, interval #{interval} day)) * 1000
|
|
and teesol.create_time <![CDATA[ <= ]]> unix_timestamp(#{currentDate}) * 1000)
|
|
and teesol.create_time <![CDATA[ <= ]]> unix_timestamp(#{currentDate}) * 1000)
|
|
and teesol.`type` = 'OFF_LINE') t where t.createTime <![CDATA[ <= ]]> #{item}
|
|
and teesol.`type` = 'OFF_LINE') t where t.createTime <![CDATA[ <= ]]> #{item}
|
|
</sql>
|
|
</sql>
|