| 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 io.swagger.v3.oas.annotations.media.Schema; | 
| import jakarta.validation.constraints.NotBlank; | 
| import jakarta.validation.constraints.NotNull; | 
| import lombok.*; | 
| import org.hibernate.validator.constraints.Length; | 
|   | 
| import java.util.Date; | 
|   | 
| /** | 
|  * @author :WuZeYu | 
|  * @Date :2024/5/25  9:41 | 
|  * @LastEditTime :2024/5/25  9:41 | 
|  * @Description | 
|  */ | 
| /** | 
|  * 灌溉制度表 | 
|  */ | 
|   | 
| @TableName(value="ir_irrigate_scheduling", autoResultMap = true) | 
| @Data | 
| @Builder | 
| @ToString | 
| @NoArgsConstructor | 
| @AllArgsConstructor | 
| @Schema(name = "项目实体") | 
| public class IrIrrigateScheduling implements BaseEntity { | 
|   | 
|     public static final long serialVersionUID = 202405270901001L; | 
|   | 
|     /** | 
|      * 主键 | 
|      */ | 
|     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
|     @TableId(type = IdType.INPUT) | 
|     @Schema(description = "实体id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|     private Long id; | 
|   | 
|     /** | 
|      * 作物id | 
|      */ | 
|     @Schema(description = "作物id", requiredMode = Schema.RequiredMode.REQUIRED) | 
|     @NotNull(message = "作物id不能为空") | 
|     private Long cropId; | 
|   | 
|     /** | 
|      * 作物生长期 | 
|      */ | 
|     @Schema(description = "作物生长期", requiredMode = Schema.RequiredMode.REQUIRED) | 
|     @Length(message = "作物生长期不大于{max}字",max = 10) | 
|     private String growthPeriod; | 
|   | 
|     /** | 
|      * 灌水周期 | 
|      */ | 
|     @Schema(description = "灌水周期", requiredMode = Schema.RequiredMode.REQUIRED) | 
|     @NotNull(message = "灌水周期不能为空") | 
|     private Integer irrigateCycle; | 
|   | 
|     /** | 
|      * 灌水延续时间 | 
|      */ | 
|     @Schema(description = "灌水延续时间", requiredMode = Schema.RequiredMode.REQUIRED) | 
|     @NotNull(message = "灌水延续时间不能为空") | 
|     private Integer duration; | 
|   | 
|     /** | 
|      * 备注 | 
|      */ | 
|     @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; | 
|   | 
|     /** | 
|      * 逻辑删除标识;0-未删除,1-删除 | 
|      */ | 
|     @Schema(description = "删除标识", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|     private Byte deleted; | 
| } |