| | |
| | | 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.Max; |
| | | import jakarta.validation.constraints.Min; |
| | | import jakarta.validation.constraints.Positive; |
| | | import jakarta.validation.constraints.*; |
| | | import lombok.*; |
| | | import org.hibernate.validator.constraints.Length; |
| | | |
| | |
| | | @AllArgsConstructor |
| | | @Schema(name = "开卡/补卡实体") |
| | | public class SeActiveCard implements BaseEntity { |
| | | public static final long serialVersionUID = 202312071927001L; |
| | | public static final long serialVersionUID = 202401151518001L; |
| | | |
| | | /** |
| | | * 主键 |
| | | */ |
| | | * 主键 |
| | | */ |
| | | @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) |
| | | @Length(message = "水卡编号不小于{min}", min = 1) |
| | | * 水卡编号 |
| | | */ |
| | | //@Schema(description = "水卡编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | //@NotBlank(message = "水卡编号不能为空") |
| | | //private String cardnum; |
| | | |
| | | /** |
| | | * 农户编号 |
| | | */ |
| | | //@Schema(description = "农户编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | //@NotBlank(message = "农户编号不能为空") |
| | | //private String clientnum; |
| | | |
| | | /** |
| | | * 水卡ID;水卡主键 |
| | | */ |
| | | @Schema(description = "水卡ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @NotNull(message = "水卡ID不能为空") |
| | | private Long cardid; |
| | | |
| | | /** |
| | | * 农户编号 |
| | | */ |
| | | @Schema(description = "农户编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @Length(message = "农户编号不小于{min}", min = 1) |
| | | * 农户ID;农户主键 |
| | | */ |
| | | @Schema(description = "农户ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @NotNull(message = "农户ID不能为空") |
| | | private Long clientid; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Schema(description = "补卡金额", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @Length(message = "补卡金额不小于{min}", min = 0) |
| | | private Double reissueamount; |
| | | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) |
| | | private Float reissueamount; |
| | | |
| | | /** |
| | | * 操作类型;1-开卡,2-补卡 |
| | |
| | | private String remarks; |
| | | |
| | | /** |
| | | * 操作人编号 |
| | | * 操作人ID |
| | | */ |
| | | @Schema(description = "操作人编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @Positive(message = "操作人编号必须为大于0的整数") |
| | | @Schema(description = "操作人ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @Positive(message = "操作人ID必须为大于0的整数") |
| | | private Long operator; |
| | | |
| | | /** |