Commit 905f757a by levphon

围栏管理-管理设备搜索功能

1 parent 9aac5d20
package cn.com.glsx.admin.modules.model.param; package cn.com.glsx.admin.modules.model.param;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data; import lombok.Data;
import java.util.Date;
@Data @Data
public class VehicleSearch extends BasicSearch { public class VehicleSearch extends BasicSearch {
...@@ -16,13 +13,12 @@ public class VehicleSearch extends BasicSearch { ...@@ -16,13 +13,12 @@ public class VehicleSearch extends BasicSearch {
/** /**
* 激活开始日期 * 激活开始日期
*/ */
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") private String startTime;
private Date startTime;
/** /**
* 激活结束日期 * 激活结束日期
*/ */
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") private String endTime;
private Date endTime;
/** /**
* 设备 1有源 0无源 * 设备 1有源 0无源
......
...@@ -147,7 +147,7 @@ ...@@ -147,7 +147,7 @@
</choose> </choose>
</if> </if>
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''"> <if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
and DATE_FORMAT(tvd.created_date,'%Y-%m-%d') between #{startTime} and #{endTime} and DATE_FORMAT(tv.created_date,'%Y-%m-%d') between #{startTime} and #{endTime}
</if> </if>
<if test="shopId != null"> <if test="shopId != null">
and tv.created_by = #{shopId} and tv.created_by = #{shopId}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!