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.NotBlank;
|
import jakarta.validation.constraints.Positive;
|
import jakarta.validation.constraints.Size;
|
import lombok.*;
|
import org.hibernate.validator.constraints.Length;
|
|
import java.util.Date;
|
|
/**
|
* @author ZhuBaoMin
|
* @date 2023/12/7 9:06
|
* @LastEditTime 2023/12/18 10:14
|
* @Description 添加水卡编号(cardnum)字段
|
*/
|
|
/**
|
* 农户水卡表
|
*/
|
|
@TableName(value="se_client_card", autoResultMap = true)
|
@Data
|
@Builder
|
@ToString
|
@NoArgsConstructor
|
@AllArgsConstructor
|
@Schema(name = "农户水卡实体")
|
public class SeClientCard implements BaseEntity {
|
public static final long serialVersionUID = 1L;
|
|
/**
|
* 主键
|
*/
|
@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)
|
@NotBlank(message = "水卡地址不能为空")
|
private String cardaddr;
|
|
/**
|
* 水卡编号
|
*/
|
@Schema(description = "水卡编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
@NotBlank(message = "水卡编号不能为空")
|
private String cardnum;
|
|
/**
|
* 农户编号
|
*/
|
@Schema(description = "农户编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
@NotBlank(message = "农户编号不能为空")
|
private String clientnum;
|
|
/**
|
* 余额
|
*/
|
@Schema(description = "余额", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
private Double money;
|
|
/**
|
* 卡片状态;1-正常,2-已注销,3-已挂失
|
*/
|
@Schema(description = "卡片状态", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
@Positive(message = "卡片状态必须为1或2或3")
|
@Size(min = 1, max = 3)
|
private Byte state;
|
|
/**
|
* 开卡时间
|
*/
|
@Schema(description = "开卡时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
private Date createdt;
|
|
/**
|
* 补卡时间
|
*/
|
@Schema(description = "补卡时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
private Date replacedt;
|
|
/**
|
* 充值时间
|
*/
|
@Schema(description = "充值时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
private Date rechargedt;
|
|
/**
|
* 挂失时间
|
*/
|
@Schema(description = "挂失时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
private Date lossdtdt;
|
|
/**
|
* 注销时间
|
*/
|
@Schema(description = "注销时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
private Date canceldt;
|
|
/**
|
* 解锁时间
|
*/
|
@Schema(description = "解锁时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
private Date unlockdt;
|
|
/**
|
* 冲正时间
|
*/
|
@Schema(description = "冲正时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
private Date reversaldt;
|
|
/**
|
* 消费时间
|
*/
|
@Schema(description = "消费时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
private Date consumedt;
|
|
/**
|
* 最后操作类型;1-开卡,2-补卡,3-充值,4-挂失,5-注销,6-解锁,7-冲正,8-消费
|
*/
|
@Schema(description = "最后操作类型", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
@Positive(message = "卡片状态必须为1到8的正整数")
|
@Size(min = 1, max = 8)
|
private Byte lastoper;
|
|
/**
|
* 备注信息
|
*/
|
@Schema(description = "备注", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
@Length(message = "备注长度小于{max}字", min = 1, max = 200)
|
private String remarks;
|
|
}
|