package com.ruoyi.aftersalesservice.pojo; import com.baomidou.mybatisplus.annotation.FieldFill; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; import java.time.LocalDate; import java.time.LocalDateTime; /** *
* 临期售后管理实体类 *
* * @author deslrey * @version 1.0 * @since 2026/03/02 14:41 */ @Data @TableName("after_sales_near_expiry") @Schema(name = "临期售后管理表") public class AfterSalesNearExpiry { @TableId(type = IdType.AUTO) @Schema(description = "主键") private Long id; @Schema(description = "临期产品名称") private String productName; @Schema(description = "产品批号") private String batchNumber; @Schema(description = "临期日期") @JsonFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd") private LocalDate expireDate; @Schema(description = "库存数量") private Integer stockQuantity; @Schema(description = "客户名称") private String customerName; @Schema(description = "联系电话") private String contactPhone; @Schema(description = "问题描述") private String disRes; @Schema(description = "处理结果") private String disposeResult; @Schema(description = "处理状态 (1-待处理 2-已处理)") private Integer status; @Schema(description = "处理人ID") private Long disposeUserId; @Schema(description = "处理人名称") private String disposeNickName; @Schema(description = "处理日期") @JsonFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd") private LocalDate disDate; @Schema(description = "创建者") private Long createUser; @Schema(description = "创建时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime createTime; @Schema(description = "修改者") private Long updateUser; @Schema(description = "修改时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime updateTime; @Schema(description = "租户id") private Long tenantId; @TableField(fill = FieldFill.INSERT) private Long deptId; }