Commit 050e6490 by 杨林龙

修改设备激活报表查询

1 parent f7e996d7
......@@ -48,8 +48,7 @@ public class DeviceActiveSearch extends Page {
public void setEndTime(String endTime) {
if (StringUtils.isNullOrEmpty(endTime)) {
this.endTime = endTime;
} else {
this.endTime = endTime.concat(" 23:59:59");
}
this.endTime = endTime.concat(" 23:59:59");
}
}
......@@ -535,10 +535,13 @@
</choose>
</if>
<if test="startTime != null and startTime != ''">
tvd.created_date &gt;= #{startTime}
and tvd.created_date &gt;= #{startTime}
</if>
<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 test="keywords != null and keywords !=''">
and(
......@@ -571,22 +574,22 @@
and tvd.bind_status = 1
and tvd.del_flag = 0
<if test="activeDateStart != null and activeDateStart != ''">
tvd.created_date &gt;= #{activeDateStart}
and tvd.created_date &gt;= #{activeDateStart}
</if>
<if test="activeDateEnd != null and activeDateEnd != ''">
tvd.created_date &lt;= #{activeDateEnd}
and tvd.created_date &lt;= #{activeDateEnd}
</if>
<if test="finalGpsTimeStart != null and finalGpsTimeStart != ''">
tvd.last_gps_time &gt;= #{finalGpsTimeStart}
and tdl.last_gps_time &gt;= #{finalGpsTimeStart}
</if>
<if test="finalGpsTimeEnd != null and finalGpsTimeEnd != ''">
tvd.last_gps_time &lt;= #{finalGpsTimeEnd}
and tdl.last_gps_time &lt;= #{finalGpsTimeEnd}
</if>
<if test="finalBsTimeStart != null and finalBsTimeStart != ''">
tvd.last_bs_time &gt;= #{finalBsTimeStart}
and tdl.last_bs_time &gt;= #{finalBsTimeStart}
</if>
<if test="finalBsTimeEnd != null and finalBsTimeEnd != ''">
tvd.last_bs_time &lt;= #{finalBsTimeEnd}
and tdl.last_bs_time &lt;= #{finalBsTimeEnd}
</if>
<if test="orgId != null ">
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!