|  |  |  | 
|---|
|  |  |  | import com.baomidou.mybatisplus.annotation.TableId; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.annotation.TableName; | 
|---|
|  |  |  | import com.dy.common.po.BaseEntity; | 
|---|
|  |  |  | import io.swagger.v3.oas.annotations.media.Schema; | 
|---|
|  |  |  | import jakarta.validation.constraints.NotNull; | 
|---|
|  |  |  | import com.fasterxml.jackson.annotation.JsonFormat; | 
|---|
|  |  |  | import jakarta.validation.constraints.NotBlank; | 
|---|
|  |  |  | import lombok.*; | 
|---|
|  |  |  | import org.apache.logging.log4j.core.config.plugins.validation.constraints.NotBlank; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.Date; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * @author :WuZeYu | 
|---|
|  |  |  | * @Date :2024/5/21  15:34 | 
|---|
|  |  |  | * @LastEditTime :2024/5/21  15:34 | 
|---|
|  |  |  | * @Description | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 轮灌组表 | 
|---|
|  |  |  | * @author ZhuBaoMin | 
|---|
|  |  |  | * @date 2025-03-18 11:21 | 
|---|
|  |  |  | * @LastEditTime 2025-03-18 11:21 | 
|---|
|  |  |  | * @Description 轮灌组实体类 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @TableName(value="ir_irrigate_group", autoResultMap = true) | 
|---|
|  |  |  | 
|---|
|  |  |  | @ToString | 
|---|
|  |  |  | @NoArgsConstructor | 
|---|
|  |  |  | @AllArgsConstructor | 
|---|
|  |  |  | @Schema(name = "轮灌组实体") | 
|---|
|  |  |  | public class IrIrrigateGroup implements BaseEntity { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public static final long serialVersionUID = 202405211534001L; | 
|---|
|  |  |  | public static final long serialVersionUID = 202503181126001L; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 主键 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | * 主键 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
|---|
|  |  |  | @TableId(type = IdType.INPUT) | 
|---|
|  |  |  | @Schema(description = "实体id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | private Long id; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 轮灌组编码 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "轮灌组编码", requiredMode = Schema.RequiredMode.REQUIRED) | 
|---|
|  |  |  | @NotBlank(message = "轮灌组编码不能为空") | 
|---|
|  |  |  | * 轮灌组名称 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @NotBlank(message = "轮灌组名称不能为空") | 
|---|
|  |  |  | private String groupCode; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 项目ID | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) | 
|---|
|  |  |  | @NotNull(message = "项目ID不能为空") | 
|---|
|  |  |  | private Long projectId; | 
|---|
|  |  |  | * 默认灌溉时长;精确到分钟 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Integer defaultDuration; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 备注 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED) | 
|---|
|  |  |  | * 备注信息 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private String remarks; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 操作人ID | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "操作人ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | @NotNull(message = "操作人ID不能为空") | 
|---|
|  |  |  | * 操作人 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Long operator; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 操作时间 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "操作时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | private Date operateDt; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | * 操作时间 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") | 
|---|
|  |  |  | private Date operateTime; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 逻辑删除标识;0-未删除,1-删除 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "删除标识", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | * 逻辑删除标识;0-未删除,1-删除 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Byte deleted; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|