1.用能系统空调关机策略
2.终端模块对外接口
This commit is contained in:
@@ -67,7 +67,9 @@ public enum EnergyResponseEnum {
|
||||
TASK_HAS_START("508","任务已经执行完毕"),
|
||||
TASK_DEL_ERROR("509","定时任务删除失败,请联系管理员"),
|
||||
TASK_RUNING("510","任务正在执行无法操作,请先停止任务"),
|
||||
TASK_TIME_ERROR("511","两条策略时间差应在5分钟以上")
|
||||
TASK_TIME_ERROR("511","两条策略时间差应在5分钟以上"),
|
||||
TASK_NO_RUN("512","策略不在执行中"),
|
||||
TASK_STOP_ERROR("513","策略停止失败,请联系管理员"),
|
||||
;
|
||||
|
||||
private final String code;
|
||||
|
||||
@@ -31,14 +31,16 @@ public class AirStrategyParam{
|
||||
@NotBlank(message = "名称不可为空")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(name = "类型",required = true,value = "0.普通策略 1.关机策略 2.开机策略")
|
||||
@NotNull(message = "策略类型不能为空")
|
||||
private Integer type;
|
||||
|
||||
@ApiModelProperty(name = "开始时间",required = true)
|
||||
@NotBlank(message = "开始时间不可为空")
|
||||
@DateTimeStrValid(format = "yyyy-MM-dd HH:mm:ss",message = "开始时间格式有误")
|
||||
private String startTime;
|
||||
|
||||
@ApiModelProperty(name = "开始时间",required = true)
|
||||
@NotBlank(message = "开始时间不可为空")
|
||||
@DateTimeStrValid(format = "yyyy-MM-dd HH:mm:ss",message = "结束时间格式有误")
|
||||
private String endTime;
|
||||
|
||||
@ApiModelProperty(name = "空调模式",required = true)
|
||||
@@ -83,6 +85,7 @@ public class AirStrategyParam{
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class AirStrategyQueryParam extends BaseParam {
|
||||
|
||||
private Integer type;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import lombok.Data;
|
||||
public class AirStrategy extends BaseEntity {
|
||||
private String id;
|
||||
private String name;
|
||||
private Integer type;
|
||||
private String startTime;
|
||||
private String endTime;
|
||||
private String mode;
|
||||
|
||||
@@ -30,6 +30,9 @@ public class AirStrategyVO {
|
||||
@ApiModelProperty(name = "策略名称",required = true)
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(name = "策略类型",required = true)
|
||||
private Integer type;
|
||||
|
||||
@ApiModelProperty(name = "开始时间",required = true)
|
||||
private String startTime;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user