New file |
| | |
| | | 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 jakarta.validation.constraints.NotBlank; |
| | | import jakarta.validation.constraints.NotNull; |
| | | import lombok.*; |
| | | import org.hibernate.validator.constraints.Length; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @author ZhuBaoMin |
| | | * @date 2024-07-24 10:36 |
| | | * @LastEditTime 2024-07-24 10:36 |
| | | * @Description |
| | | */ |
| | | /** |
| | | * 管理员水卡表 |
| | | */ |
| | | |
| | | @TableName(value = "se_manager_card", autoResultMap = true) |
| | | @Data |
| | | @Builder |
| | | @ToString |
| | | @NoArgsConstructor |
| | | @AllArgsConstructor |
| | | public class SeManagerCard implements BaseEntity { |
| | | public static final long serialVersionUID = 202407241040001L; |
| | | |
| | | /** |
| | | * 主键 |
| | | */ |
| | | @JSONField(serializeUsing= ObjectWriterImplToString.class) |
| | | @TableId(type = IdType.INPUT) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 卡片地址 |
| | | */ |
| | | @NotBlank(message = "卡片地址不能为空") |
| | | private String cardAddr; |
| | | |
| | | /** |
| | | * 卡片编号 |
| | | */ |
| | | @NotBlank(message = "卡片编号不能为空") |
| | | private String cardNum; |
| | | |
| | | /** |
| | | * 卡片类型;2-管理科,4-巡检卡,5清空卡 |
| | | */ |
| | | @NotNull(message = "卡片类型不能为空") |
| | | private Byte cardType; |
| | | |
| | | /** |
| | | * 开卡时间 |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * 备注信息 |
| | | */ |
| | | @Length(max = 200) |
| | | private String remarks; |
| | | } |