a-tuoheng-task/src/main/java/com/ruoyi/task/domain/model/TaskPlan.java

230 lines
4.7 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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 + '\'' +
'}';
}
}