| package com.dy.pipIrrGlobal.pojoSe; | 
|   | 
| 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 com.fasterxml.jackson.annotation.JsonFormat; | 
| 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; | 
|   | 
| import java.util.Date; | 
|   | 
| /** | 
|  * @author ZhuBaoMin | 
|  * @date 2025-06-06 10:34 | 
|  * @LastEditTime 2025-06-06 10:34 | 
|  * @Description | 
|  */ | 
|   | 
| /** | 
|  * 充值历史表 | 
|  */ | 
|   | 
| @TableName(value="se_recharge_history", autoResultMap = true) | 
| @Data | 
| @Builder | 
| @ToString | 
| @NoArgsConstructor | 
| @AllArgsConstructor | 
| public class SeRechargeHistory implements BaseEntity { | 
|     public static final long serialVersionUID = 202401151519002L; | 
|   | 
|     /** | 
|      * 主键 | 
|      */ | 
|     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
|     @TableId(type = IdType.INPUT) | 
|     private Long id; | 
|   | 
|     /** | 
|      * 水卡ID | 
|      */ | 
|     @NotNull(message = "水卡ID不能为空") | 
|     private Long cardid; | 
|   | 
|     /** | 
|      * 农户ID | 
|      */ | 
|     @NotNull(message = "农户ID不能为空") | 
|     private Long clientid; | 
|   | 
|     /** | 
|      * 卡片余额 | 
|      */ | 
|     @NotNull(message = "卡片余额不能为空") | 
|     @Length(message = "卡片余额不小于{min}", min = 0) | 
|     @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) | 
|     private Float money; | 
|   | 
|     /** | 
|      * 充值金额 | 
|      */ | 
|     @NotNull(message = "充值金额不能为空") | 
|     @Length(message = "充值金额不小于{min}", min = 0) | 
|     @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) | 
|     private Float amount; | 
|   | 
|     /** | 
|      * 赠送金额 | 
|      */ | 
|     @Length(message = "赠送金额不小于{min}", min = 0) | 
|     @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) | 
|     private Float gift; | 
|   | 
|     /** | 
|      * 充值后余额 | 
|      */ | 
|     @Length(message = "充值后余额不小于{min}", min = 0) | 
|     @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) | 
|     private Float afterrecharge; | 
|   | 
|     /** | 
|      * 付款方式编号 | 
|      */ | 
|     @Length(message = "付款方式编号不大于{max},不小于{min}", min = 1, max = 4) | 
|     private Long paymentid; | 
|   | 
|     /** | 
|      * 水价 | 
|      */ | 
|     @Length(message = "水价不小于{min}", min = 0) | 
|     @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) | 
|     private Float price; | 
|   | 
|     /** | 
|      * 备注信息 | 
|      */ | 
|     @Length(message = "备注长度小于{max}字", min = 1, max = 200) | 
|     private String remarks; | 
|   | 
|     /** | 
|      * 操作人ID | 
|      */ | 
|     @Positive(message = "操作人ID必须为大于0的整数") | 
|     private Long operator; | 
|   | 
|     /** | 
|      * 操作时间 | 
|      */ | 
|     private Date operatedt; | 
|   | 
|     /** | 
|      * 操作是否有效 | 
|      */ | 
|     @Length(message = "操作有效性不大于{max},不小于{min}", min = 1, max = 2) | 
|     private Byte operateValid; | 
|   | 
|     /** | 
|      * 订单号 | 
|      */ | 
|     private String orderNo; | 
|   | 
| } |