| 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.Max; | 
| import jakarta.validation.constraints.Min; | 
| import jakarta.validation.constraints.NotBlank; | 
| import jakarta.validation.constraints.NotNull; | 
| import lombok.*; | 
|   | 
| import java.util.Date; | 
|   | 
| /** | 
|  * @author ZhuBaoMin | 
|  * @date 2024-01-24 18:57 | 
|  * @LastEditTime 2024-01-24 18:57 | 
|  * @Description | 
|  */ | 
|   | 
| @TableName(value="se_general", autoResultMap = true) | 
| @Data | 
| @Builder | 
| @ToString | 
| @NoArgsConstructor | 
| @AllArgsConstructor | 
| @Schema(name = "总账实体") | 
| public class SeGeneral implements BaseEntity { | 
|     public static final long serialVersionUID = 202401241912001L; | 
|   | 
|     /** | 
|      * 主键 | 
|      */ | 
|     @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 cashierId; | 
|   | 
|     /** | 
|      * 收银员姓名 | 
|      */ | 
|     @Schema(description = "收银员姓名", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|     @NotBlank(message = "收银员姓名不能为空") | 
|     private String cashierName; | 
|   | 
|     /** | 
|      * 实收金额 | 
|      */ | 
|     @Schema(description = "实收金额", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|     @NotNull(message = "实收金额不能为空") | 
|     @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) | 
|     private Double tradeAmount; | 
|   | 
|     /** | 
|      * 赠送金额 | 
|      */ | 
|     @Schema(description = "赠送金额", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|     @NotNull(message = "赠送金额不能为空") | 
|     @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) | 
|     private Double gift; | 
|   | 
|     /** | 
|      * 返还金额 | 
|      */ | 
|     @Schema(description = "返还金额", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|     @NotNull(message = "返还金额不能为空") | 
|     @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) | 
|     private Double refundAmount; | 
|   | 
|     /** | 
|      * 交易日期 | 
|      */ | 
|     @Schema(description = "交易日期", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|     @NotNull(message = "交易日期不能为空") | 
|     private Date operateDate; | 
|   | 
|     /** | 
|      * 审核状态;1-未审核,2-同意,3-驳回 | 
|      */ | 
|     @Schema(description = "审核状态", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|     @Max(message = "审核状态最大为3", value = 3) | 
|     @Min(message = "审核状态最小为1",value = 1) | 
|     private Byte auditStatus; | 
| } |