New file |
| | |
| | | package com.dy.pipIrrGlobal.pojoIr; |
| | | |
| | | import com.alibaba.fastjson2.annotation.JSONField; |
| | | import com.alibaba.fastjson2.writer.ObjectWriterImplToString; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.dy.common.po.BaseEntity; |
| | | import jakarta.validation.constraints.NotNull; |
| | | import lombok.*; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @author ZhuBaoMin |
| | | * @date 2025-03-24 20:53 |
| | | * @LastEditTime 2025-03-24 20:53 |
| | | * @Description 取水口操作实体类 |
| | | */ |
| | | |
| | | @TableName(value="ir_intake_operate", autoResultMap = true) |
| | | @Data |
| | | @Builder |
| | | @ToString |
| | | @NoArgsConstructor |
| | | @AllArgsConstructor |
| | | public class IrIntakeOperate implements BaseEntity { |
| | | public static final long serialVersionUID = 202503242057001L; |
| | | |
| | | /** |
| | | * 主键 |
| | | */ |
| | | @JSONField(serializeUsing= ObjectWriterImplToString.class) |
| | | @TableId(type = IdType.INPUT) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 计划ID |
| | | */ |
| | | private Long planId; |
| | | |
| | | /** |
| | | * 操作类型;1-发布(计划开阀),2-终止(远程关阀) |
| | | */ |
| | | private Byte operateType; |
| | | |
| | | /** |
| | | * 命令ID |
| | | */ |
| | | @NotNull(message = "命令ID不能为空") |
| | | private Long commandId; |
| | | |
| | | /** |
| | | * 取水口ID |
| | | */ |
| | | @NotNull(message = "取水口ID不能为空") |
| | | private Long intakeId; |
| | | |
| | | /** |
| | | * 灌溉开始时间 |
| | | */ |
| | | private Date startTime; |
| | | |
| | | /** |
| | | * 灌溉时长 |
| | | */ |
| | | private Integer duration; |
| | | |
| | | /** |
| | | * 命令下发结果;1-成功,2-失败 |
| | | */ |
| | | private Byte commandResult; |
| | | |
| | | /** |
| | | * 失败因素 |
| | | */ |
| | | private String failureFactors; |
| | | |
| | | } |