|  |  | 
 |  |  | 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 com.fasterxml.jackson.annotation.JsonFormat; | 
 |  |  | 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; | 
 |  |  |  | 
 |  |  | 
 |  |  | @ToString | 
 |  |  | @NoArgsConstructor | 
 |  |  | @AllArgsConstructor | 
 |  |  | @Schema(name = "项目实体") | 
 |  |  | public class IrIrrigateUnit { | 
 |  |  | @Schema(name = "灌溉单元实体") | 
 |  |  | public class IrIrrigateUnit  implements BaseEntity { | 
 |  |  |     public static final long serialVersionUID = 202405161833001L; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  | 
 |  |  |     @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) | 
 |  |  |     @NotNull(message = "项目ID不能为空") | 
 |  |  |     private Long projectId; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 取水口ID | 
 |  |  |      */ | 
 |  |  |     @Schema(description = "取水口ID", requiredMode = Schema.RequiredMode.REQUIRED) | 
 |  |  |     private Long intakeId; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 灌溉面积 | 
 |  |  |      */ | 
 |  |  |     @Schema(description = "灌溉面积", requiredMode = Schema.RequiredMode.REQUIRED) | 
 |  |  |     @Length(message = "项目名称不大于{max}字",max = 12) | 
 |  |  |     private float area; | 
 |  |  |     @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) | 
 |  |  |     private Float area; | 
 |  |  |     /** | 
 |  |  |      * 操作人ID | 
 |  |  |      */ |