230 lines
4.7 KiB
Java
230 lines
4.7 KiB
Java
package com.ruoyi.task.domain.model;
|
||
|
||
import java.util.Date;
|
||
|
||
/**
|
||
* 任务计划领域模型
|
||
*
|
||
* @author ruoyi
|
||
* @date 2026-03-05
|
||
*/
|
||
public class TaskPlan {
|
||
|
||
/** 计划ID */
|
||
private Long id;
|
||
|
||
/** 计划名称 */
|
||
private String planName;
|
||
|
||
/** 计划类型(定时任务计划、周期任务计划) */
|
||
private String planType;
|
||
|
||
/** 执行类型(单次执行、连续执行) */
|
||
private String executeType;
|
||
|
||
/** 周期类型(日周期、周周期、月周期) */
|
||
private String cycleType;
|
||
|
||
/** 周期值(周周期:1-7多选,如"1,3,5";月周期:1-31多选,如"1,15,30") */
|
||
private String cycleValue;
|
||
|
||
/** 开始日期 */
|
||
private Date startDate;
|
||
|
||
/** 结束日期 */
|
||
private Date endDate;
|
||
|
||
/** 执行时间(仅在定义任务时有效) */
|
||
private Date executeTime;
|
||
|
||
/** 航线ID */
|
||
private Long routeId;
|
||
|
||
/** 无人机ID */
|
||
private Long uavId;
|
||
|
||
/** 状态(0待执行 1执行中 2已完成 3已取消) */
|
||
private String status;
|
||
|
||
/** 描述 */
|
||
private String description;
|
||
|
||
/** 创建者 */
|
||
private String createBy;
|
||
|
||
/** 创建时间 */
|
||
private Date createTime;
|
||
|
||
/** 更新者 */
|
||
private String updateBy;
|
||
|
||
/** 更新时间 */
|
||
private Date updateTime;
|
||
|
||
/** 备注 */
|
||
private String remark;
|
||
|
||
// Getters and Setters
|
||
public Long getId() {
|
||
return id;
|
||
}
|
||
|
||
public void setId(Long id) {
|
||
this.id = id;
|
||
}
|
||
|
||
public String getPlanName() {
|
||
return planName;
|
||
}
|
||
|
||
public void setPlanName(String planName) {
|
||
this.planName = planName;
|
||
}
|
||
|
||
public String getPlanType() {
|
||
return planType;
|
||
}
|
||
|
||
public void setPlanType(String planType) {
|
||
this.planType = planType;
|
||
}
|
||
|
||
public String getExecuteType() {
|
||
return executeType;
|
||
}
|
||
|
||
public void setExecuteType(String executeType) {
|
||
this.executeType = executeType;
|
||
}
|
||
|
||
public String getCycleType() {
|
||
return cycleType;
|
||
}
|
||
|
||
public void setCycleType(String cycleType) {
|
||
this.cycleType = cycleType;
|
||
}
|
||
|
||
public String getCycleValue() {
|
||
return cycleValue;
|
||
}
|
||
|
||
public void setCycleValue(String cycleValue) {
|
||
this.cycleValue = cycleValue;
|
||
}
|
||
|
||
public Date getStartDate() {
|
||
return startDate;
|
||
}
|
||
|
||
public void setStartDate(Date startDate) {
|
||
this.startDate = startDate;
|
||
}
|
||
|
||
public Date getEndDate() {
|
||
return endDate;
|
||
}
|
||
|
||
public void setEndDate(Date endDate) {
|
||
this.endDate = endDate;
|
||
}
|
||
|
||
public Date getExecuteTime() {
|
||
return executeTime;
|
||
}
|
||
|
||
public void setExecuteTime(Date executeTime) {
|
||
this.executeTime = executeTime;
|
||
}
|
||
|
||
public Long getRouteId() {
|
||
return routeId;
|
||
}
|
||
|
||
public void setRouteId(Long routeId) {
|
||
this.routeId = routeId;
|
||
}
|
||
|
||
public Long getUavId() {
|
||
return uavId;
|
||
}
|
||
|
||
public void setUavId(Long uavId) {
|
||
this.uavId = uavId;
|
||
}
|
||
|
||
public String getStatus() {
|
||
return status;
|
||
}
|
||
|
||
public void setStatus(String status) {
|
||
this.status = status;
|
||
}
|
||
|
||
public String getDescription() {
|
||
return description;
|
||
}
|
||
|
||
public void setDescription(String description) {
|
||
this.description = description;
|
||
}
|
||
|
||
public String getCreateBy() {
|
||
return createBy;
|
||
}
|
||
|
||
public void setCreateBy(String createBy) {
|
||
this.createBy = createBy;
|
||
}
|
||
|
||
public Date getCreateTime() {
|
||
return createTime;
|
||
}
|
||
|
||
public void setCreateTime(Date createTime) {
|
||
this.createTime = createTime;
|
||
}
|
||
|
||
public String getUpdateBy() {
|
||
return updateBy;
|
||
}
|
||
|
||
public void setUpdateBy(String updateBy) {
|
||
this.updateBy = updateBy;
|
||
}
|
||
|
||
public Date getUpdateTime() {
|
||
return updateTime;
|
||
}
|
||
|
||
public void setUpdateTime(Date updateTime) {
|
||
this.updateTime = updateTime;
|
||
}
|
||
|
||
public String getRemark() {
|
||
return remark;
|
||
}
|
||
|
||
public void setRemark(String remark) {
|
||
this.remark = remark;
|
||
}
|
||
|
||
@Override
|
||
public String toString() {
|
||
return "TaskPlan{" +
|
||
"id=" + id +
|
||
", planName='" + planName + '\'' +
|
||
", planType='" + planType + '\'' +
|
||
", executeType='" + executeType + '\'' +
|
||
", cycleType='" + cycleType + '\'' +
|
||
", cycleValue='" + cycleValue + '\'' +
|
||
", startDate=" + startDate +
|
||
", endDate=" + endDate +
|
||
", executeTime=" + executeTime +
|
||
", routeId=" + routeId +
|
||
", uavId=" + uavId +
|
||
", status='" + status + '\'' +
|
||
", description='" + description + '\'' +
|
||
'}';
|
||
}
|
||
} |