97 lines
1.6 KiB
Java
97 lines
1.6 KiB
Java
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;
|
||
}
|