Commit 050e6490 by 杨林龙

修改设备激活报表查询

1 parent f7e996d7
...@@ -48,8 +48,7 @@ public class DeviceActiveSearch extends Page { ...@@ -48,8 +48,7 @@ public class DeviceActiveSearch extends Page {
public void setEndTime(String endTime) { public void setEndTime(String endTime) {
if (StringUtils.isNullOrEmpty(endTime)) { if (StringUtils.isNullOrEmpty(endTime)) {
this.endTime = endTime; this.endTime = endTime;
} else {
this.endTime = endTime.concat(" 23:59:59");
} }
this.endTime = endTime.concat(" 23:59:59");
} }
} }
...@@ -535,10 +535,13 @@ ...@@ -535,10 +535,13 @@
</choose> </choose>
</if> </if>
<if test="startTime != null and startTime != ''"> <if test="startTime != null and startTime != ''">
tvd.created_date &gt;= #{startTime} and tvd.created_date &gt;= #{startTime}
</if> </if>
<if test="endTime != null and endTime != ''"> <if test="endTime != null and endTime != ''">
tvd.created_date &lt;= #{endTime} and tvd.created_date &lt;= #{endTime}
</if>
<if test="orgId != null ">
and tu.id = #{orgId}
</if> </if>
<if test="keywords != null and keywords !=''"> <if test="keywords != null and keywords !=''">
and( and(
...@@ -571,22 +574,22 @@ ...@@ -571,22 +574,22 @@
and tvd.bind_status = 1 and tvd.bind_status = 1
and tvd.del_flag = 0 and tvd.del_flag = 0
<if test="activeDateStart != null and activeDateStart != ''"> <if test="activeDateStart != null and activeDateStart != ''">
tvd.created_date &gt;= #{activeDateStart} and tvd.created_date &gt;= #{activeDateStart}
</if> </if>
<if test="activeDateEnd != null and activeDateEnd != ''"> <if test="activeDateEnd != null and activeDateEnd != ''">
tvd.created_date &lt;= #{activeDateEnd} and tvd.created_date &lt;= #{activeDateEnd}
</if> </if>
<if test="finalGpsTimeStart != null and finalGpsTimeStart != ''"> <if test="finalGpsTimeStart != null and finalGpsTimeStart != ''">
tvd.last_gps_time &gt;= #{finalGpsTimeStart} and tdl.last_gps_time &gt;= #{finalGpsTimeStart}
</if> </if>
<if test="finalGpsTimeEnd != null and finalGpsTimeEnd != ''"> <if test="finalGpsTimeEnd != null and finalGpsTimeEnd != ''">
tvd.last_gps_time &lt;= #{finalGpsTimeEnd} and tdl.last_gps_time &lt;= #{finalGpsTimeEnd}
</if> </if>
<if test="finalBsTimeStart != null and finalBsTimeStart != ''"> <if test="finalBsTimeStart != null and finalBsTimeStart != ''">
tvd.last_bs_time &gt;= #{finalBsTimeStart} and tdl.last_bs_time &gt;= #{finalBsTimeStart}
</if> </if>
<if test="finalBsTimeEnd != null and finalBsTimeEnd != ''"> <if test="finalBsTimeEnd != null and finalBsTimeEnd != ''">
tvd.last_bs_time &lt;= #{finalBsTimeEnd} and tdl.last_bs_time &lt;= #{finalBsTimeEnd}
</if> </if>
<if test="orgId != null "> <if test="orgId != null ">
and tu.id = #{orgId} and tu.id = #{orgId}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!