|  |  | 
 |  |  | 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.NotNull; | 
 |  |  | import jakarta.validation.constraints.Positive; | 
 |  |  | import lombok.*; | 
 |  |  | import org.hibernate.validator.constraints.Length; | 
 |  |  | 
 |  |  |  | 
 |  |  | /** | 
 |  |  |  * @author ZhuBaoMin | 
 |  |  |  * @date 2023/12/6 14:40 | 
 |  |  |  * @LastEditTime 2023/12/6 14:40 | 
 |  |  |  * @date 2023/12/11 9:11 | 
 |  |  |  * @LastEditTime 2023/12/11 9:11 | 
 |  |  |  * @Description | 
 |  |  |  */ | 
 |  |  |  | 
 |  |  | 
 |  |  | @NoArgsConstructor | 
 |  |  | @AllArgsConstructor | 
 |  |  | @Schema(name = "水卡解锁实体") | 
 |  |  | public class SeUnlock { | 
 |  |  |     public static final long serialVersionUID = 1L; | 
 |  |  | public class SeUnlock implements BaseEntity { | 
 |  |  |     public static final long serialVersionUID = 202401151519004L; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |     * 主键 | 
 |  |  |     */ | 
 |  |  |      * 主键 | 
 |  |  |      */ | 
 |  |  |     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
 |  |  |     @TableId(type = IdType.INPUT) | 
 |  |  |     @Schema(description = "实体id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
 |  |  | 
 |  |  |     private Long id; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |     * 水卡编号 | 
 |  |  |     */ | 
 |  |  |      * 水卡编号 | 
 |  |  |      */ | 
 |  |  |     @Schema(description = "水卡编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
 |  |  |     @Positive(message = "水卡编号必须为大于0的整数") | 
 |  |  |     @NotNull(message = "水卡编号不能为空") | 
 |  |  |     private Long cardid; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |     * 剩余金额 | 
 |  |  |     */ | 
 |  |  |     @Schema(description = "剩余金额", requiredMode = Schema.RequiredMode.REQUIRED) | 
 |  |  |     @Length(message = "剩余金额不小于{min}字", min = 1) | 
 |  |  |     private Double money; | 
 |  |  |      * 农户编号 | 
 |  |  |      */ | 
 |  |  |     @Schema(description = "农户编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
 |  |  |     @NotNull(message = "农户编号不能为空") | 
 |  |  |     private Long clientid; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |     * 备注信息 | 
 |  |  |     */ | 
 |  |  |      * 剩余金额 | 
 |  |  |      */ | 
 |  |  |     @Schema(description = "剩余金额", requiredMode = Schema.RequiredMode.REQUIRED) | 
 |  |  |     @Length(message = "剩余金额不小于{min}字", min = 1) | 
 |  |  |     private Float money; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 备注信息 | 
 |  |  |      */ | 
 |  |  |     @Schema(description = "备注", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
 |  |  |     @Length(message = "备注长度小于{max}字", min = 1, max = 200) | 
 |  |  |     private String remarks; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |     * 操作人编号 | 
 |  |  |     */ | 
 |  |  |     @Schema(description = "操作人编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
 |  |  |     @Positive(message = "操作人编号必须为大于0的整数") | 
 |  |  |      * 操作人ID | 
 |  |  |      */ | 
 |  |  |     @Schema(description = "操作人ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
 |  |  |     @Positive(message = "操作人ID必须为大于0的整数") | 
 |  |  |     private Long operator; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |     * 操作时间 | 
 |  |  |     */ | 
 |  |  |      * 操作时间 | 
 |  |  |      */ | 
 |  |  |     @Schema(description = "操作时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
 |  |  |     private Date operatedt; | 
 |  |  | } |