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 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 2024-01-18 19:10 
 | 
 * @LastEditTime 2024-02-02 16:00 
 | 
 * @Description 
 | 
 */ 
 | 
  
 | 
@TableName(value="se_card_operate", autoResultMap = true) 
 | 
@Data 
 | 
@Builder 
 | 
@ToString 
 | 
@NoArgsConstructor 
 | 
@AllArgsConstructor 
 | 
@Schema(name = "水卡操作实体") 
 | 
public class SeCardOperate implements BaseEntity { 
 | 
    public static final long serialVersionUID = 202401181914001L; 
 | 
  
 | 
    /** 
 | 
     * 主键 
 | 
     */ 
 | 
    @JSONField(serializeUsing= ObjectWriterImplToString.class) 
 | 
    @TableId(type = IdType.INPUT) 
 | 
    @Schema(description = "实体id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) 
 | 
    private Long id; 
 | 
  
 | 
    /** 
 | 
     * 水卡ID 
 | 
     */ 
 | 
    @Schema(description = "水卡ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED) 
 | 
    @NotNull(message = "水卡ID不能为空") 
 | 
    private Long cardId; 
 | 
  
 | 
    /** 
 | 
     * 农户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 Float money; 
 | 
  
 | 
    /** 
 | 
     * 系统余额;冲正时使用 
 | 
     */ 
 | 
    @Schema(description = "系统余额", requiredMode = Schema.RequiredMode.REQUIRED) 
 | 
    @Length(message = "系统余额不小于{min}", min = 0) 
 | 
    private Float systemBalance; 
 | 
  
 | 
    /** 
 | 
     * 交易金额;购水金额、退款金额 
 | 
     */ 
 | 
    @Schema(description = "交易金额", requiredMode = Schema.RequiredMode.NOT_REQUIRED) 
 | 
    @Length(message = "交易金额不小于{min}", min = 0) 
 | 
    private Float tradeAmount; 
 | 
  
 | 
    /** 
 | 
     * 水价;充值时使用 
 | 
     */ 
 | 
    @Schema(description = "水价", requiredMode = Schema.RequiredMode.NOT_REQUIRED) 
 | 
    @Length(message = "水价不小于{min}", min = 0) 
 | 
    private Float price; 
 | 
  
 | 
    /** 
 | 
     * 购卡金额 
 | 
     */ 
 | 
    @Schema(description = "购卡金额", requiredMode = Schema.RequiredMode.REQUIRED) 
 | 
    @Length(message = "购卡金额不小于{min}字", min = 0) 
 | 
    private Integer cardCost; 
 | 
  
 | 
    /** 
 | 
     * 赠送金额 
 | 
     */ 
 | 
    @Schema(description = "赠送金额", requiredMode = Schema.RequiredMode.NOT_REQUIRED) 
 | 
    @Length(message = "赠送金额不小于{min}", min = 0) 
 | 
    private Float gift; 
 | 
  
 | 
    /** 
 | 
     * 返还金额;补扣操作时返还的金额 
 | 
     */ 
 | 
    @Schema(description = "返还金额", requiredMode = Schema.RequiredMode.NOT_REQUIRED) 
 | 
    @Length(message = "返还金额不小于{min}", min = 0) 
 | 
    private Float refundAmount; 
 | 
  
 | 
    /** 
 | 
     * 非交易金额;补卡金额、补扣金额、剩余金额(解锁) 
 | 
     */ 
 | 
    @Schema(description = "非交易金额", requiredMode = Schema.RequiredMode.NOT_REQUIRED) 
 | 
    @Length(message = "非交易金额不小于{min}", min = 0) 
 | 
    private Float noTradeAmount; 
 | 
  
 | 
    /** 
 | 
     * 操作类型 
 | 
     */ 
 | 
    @Schema(description = "操作类型", requiredMode = Schema.RequiredMode.NOT_REQUIRED) 
 | 
    @Length(message = "付款方式不大于{max},不小于{min}", min = 1, max = 8) 
 | 
    private Byte operateType; 
 | 
  
 | 
    /** 
 | 
     * 付款方式编号 
 | 
     */ 
 | 
    @Schema(description = "付款方式编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED) 
 | 
    @Length(message = "付款方式编号不大于{max},不小于{min}", min = 1, max = 4) 
 | 
    private Long paymentId; 
 | 
  
 | 
    /** 
 | 
     * 备注信息 
 | 
     */ 
 | 
    @Schema(description = "备注", requiredMode = Schema.RequiredMode.NOT_REQUIRED) 
 | 
    @Length(message = "备注长度小于{max}字", min = 1, max = 200) 
 | 
    private String remarks; 
 | 
  
 | 
    /** 
 | 
     * 操作人编号 
 | 
     */ 
 | 
    @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; 
 | 
  
 | 
    /** 
 | 
     * 操作是否有效 
 | 
     */ 
 | 
    @Length(message = "操作有效性不大于{max},不小于{min}", min = 1, max = 2) 
 | 
    private Byte operateValid; 
 | 
} 
 |