by-crm/backend/src/main/java/com/bycrm/entity/Report.java
2026-02-03 15:37:25 +08:00

97 lines
1.6 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.bycrm.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
/**
* 报备实体
*/
@Data
public class Report implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 报备ID
*/
private Long id;
/**
* 经销商ID
*/
private Long dealerId;
/**
* 学校ID从 crm_school 选择)
*/
private Long schoolId;
/**
* 学校名称(冗余存储,方便查询)
*/
private String schoolName;
/**
* 所属产品
*/
private String product;
/**
* 项目类型
*/
private String projectType;
/**
* 报备说明
*/
private String description;
/**
* 状态0-待审核 1-已通过 2-已驳回 3-已失效 4-已作废
*/
private Integer status;
/**
* 驳回原因
*/
private String rejectReason;
/**
* 作废原因
*/
private String cancelReason;
/**
* 保护期开始日期
*/
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDate protectStartDate;
/**
* 保护期结束日期
*/
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDate protectEndDate;
/**
* 创建时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime createdAt;
/**
* 更新时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime updatedAt;
/**
* 关联查询字段 - 经销商名称
*/
private String dealerName;
}