From 7fde9069c596e1d0fb5229773370ba6907a58df2 Mon Sep 17 00:00:00 2001 From: huangfeng Date: Mon, 23 Jun 2025 15:50:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E6=8B=8D=E7=85=A7?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E8=A1=A8=E7=9A=84=E6=9C=80=E5=90=8E=E6=97=B6?= =?UTF-8?q?=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../entity/CameraSchedule.java | 34 +++++++++++ .../entity/CameraScheduleExample.java | 61 +++++++++++++++++++ .../mappers/CameraScheduleMapper.xml | 27 ++++++-- .../timeTask/StoreCameraScheduleTask.java | 7 +-- 4 files changed, 120 insertions(+), 9 deletions(-) diff --git a/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/CameraSchedule.java b/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/CameraSchedule.java index b8cdaa3..8b1d546 100644 --- a/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/CameraSchedule.java +++ b/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/CameraSchedule.java @@ -2,6 +2,7 @@ package com.shxy.xymanager_common.entity; import com.shxy.xymanager_common.dto.ScheduleDetailsDto; +import java.util.Date; import java.util.List; public class CameraSchedule { @@ -41,6 +42,15 @@ public class CameraSchedule { */ private Integer protocol; + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column camera_schedule.update_time + * + * @mbg.generated + */ + private Date updateTime; + /** * * This field was generated by MyBatis Generator. @@ -146,6 +156,30 @@ public class CameraSchedule { this.protocol = protocol; } + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column camera_schedule.update_time + * + * @return the value of camera_schedule.update_time + * + * @mbg.generated + */ + public Date getUpdateTime() { + return updateTime; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column camera_schedule.update_time + * + * @param updateTime the value for camera_schedule.update_time + * + * @mbg.generated + */ + public void setUpdateTime(Date updateTime) { + this.updateTime = updateTime; + } + /** * This method was generated by MyBatis Generator. * This method returns the value of the database column camera_schedule.data diff --git a/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/CameraScheduleExample.java b/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/CameraScheduleExample.java index 31d49e0..8efcfde 100644 --- a/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/CameraScheduleExample.java +++ b/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/CameraScheduleExample.java @@ -1,6 +1,7 @@ package com.shxy.xymanager_common.entity; import java.util.ArrayList; +import java.util.Date; import java.util.List; public class CameraScheduleExample { @@ -433,6 +434,66 @@ public class CameraScheduleExample { addCriterion("protocol not between", value1, value2, "protocol"); return (Criteria) this; } + + public Criteria andUpdateTimeIsNull() { + addCriterion("update_time is null"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIsNotNull() { + addCriterion("update_time is not null"); + return (Criteria) this; + } + + public Criteria andUpdateTimeEqualTo(Date value) { + addCriterion("update_time =", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotEqualTo(Date value) { + addCriterion("update_time <>", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeGreaterThan(Date value) { + addCriterion("update_time >", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { + addCriterion("update_time >=", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeLessThan(Date value) { + addCriterion("update_time <", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { + addCriterion("update_time <=", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIn(List values) { + addCriterion("update_time in", values, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotIn(List values) { + addCriterion("update_time not in", values, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeBetween(Date value1, Date value2) { + addCriterion("update_time between", value1, value2, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotBetween(Date value1, Date value2) { + addCriterion("update_time not between", value1, value2, "updateTime"); + return (Criteria) this; + } } /** diff --git a/xymanager_dao/src/main/resources/mappers/CameraScheduleMapper.xml b/xymanager_dao/src/main/resources/mappers/CameraScheduleMapper.xml index 68d3289..bfe0fb8 100644 --- a/xymanager_dao/src/main/resources/mappers/CameraScheduleMapper.xml +++ b/xymanager_dao/src/main/resources/mappers/CameraScheduleMapper.xml @@ -10,6 +10,7 @@ + - id, term_id, channel_id, protocol + id, term_id, channel_id, protocol, update_time