| package com.dy.pipIrrSell.activeCard; | 
|   | 
| import io.swagger.v3.oas.annotations.media.Schema; | 
| import jakarta.validation.constraints.*; | 
| import lombok.*; | 
|   | 
| /** | 
|  * @author ZhuBaoMin | 
|  * @date 2023/12/6 20:49 | 
|  * @LastEditTime 2023/12/6 20:49 | 
|  * @Description | 
|  */ | 
|   | 
| @Data | 
| @Builder | 
| @ToString | 
| @NoArgsConstructor | 
| @AllArgsConstructor | 
| @Schema(name = "开卡/补卡传入对象") | 
| public class DtoActiveCard { | 
|     public static final long serialVersionUID = 20231191728001L; | 
|   | 
|     /** | 
|      * 水卡地址,仅保存,无业务 | 
|      */ | 
|     @Schema(description = "水卡地址", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|     @NotBlank(message = "水卡地址不能为空") | 
|     private String cardAddr; | 
|   | 
|     /** | 
|      * 农户编号,开卡使用 | 
|      */ | 
|     @Schema(description = "农户编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|     private String clientNum; | 
|   | 
|     /** | 
|      * 农户ID(主键),不是开卡接口传入,由农户编号获得,保存开卡记录和充值记录都需要 | 
|      */ | 
|     @Schema(description = "农户ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|     private Long clientId; | 
|   | 
|     /** | 
|      * 水卡编号 | 
|      * 补卡时使用 | 
|      */ | 
|     @Schema(description = "水卡编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|     private Long cardNum; | 
|   | 
|     /** | 
|      * 卡片费用 | 
|      */ | 
|     @Schema(description = "卡片费用", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|     @Positive(message = "卡片费用必须为大于0的整数") | 
|     private Integer cardCost; | 
|   | 
|     /** | 
|      * 充值金额 | 
|      */ | 
|     @Schema(description = "充值金额", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|     @Min(value = 0, message="充值金额不能小于0") | 
|     private Float amount; | 
|   | 
|     /** | 
|      * 补卡金额 | 
|      */ | 
|     @Schema(description = "补卡金额", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|     @Min(value = 0, message="补卡金额不能小于0") | 
|     private Float reissueAmount; | 
|   | 
|     /** | 
|      * 支付方式编号 | 
|      */ | 
|     @Schema(description = "支付方式编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|     @Positive(message = "支付方式编号必须为大于0的整数") | 
|     private Long paymentId; | 
|   | 
|     /** | 
|      * 备注信息 | 
|      */ | 
|     @Schema(description = "备注", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|     private String remarks; | 
|   | 
|     /** | 
|      * 操作人编号 | 
|      */ | 
|     @Schema(description = "操作人编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|     @Positive(message = "操作人编号必须为大于0的整数") | 
|     private Long operator; | 
| } |