|
|
@@ -0,0 +1,169 @@
|
|
|
+package com.jeesite.modules.report.entity;
|
|
|
+
|
|
|
+import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
+import com.jeesite.common.entity.DataEntity;
|
|
|
+import com.jeesite.common.mybatis.annotation.Column;
|
|
|
+import com.jeesite.common.mybatis.annotation.Table;
|
|
|
+import com.jeesite.common.mybatis.mapper.query.QueryType;
|
|
|
+
|
|
|
+import javax.validation.constraints.DecimalMax;
|
|
|
+import javax.validation.constraints.DecimalMin;
|
|
|
+import javax.validation.constraints.Size;
|
|
|
+import java.math.BigDecimal;
|
|
|
+import java.util.Date;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 简报智库Entity
|
|
|
+ * @author gg
|
|
|
+ * @version 2024-12-19
|
|
|
+ */
|
|
|
+@Table(name="research_brief_report", alias="a", label="简报智库信息", columns={
|
|
|
+ @Column(name="id", attrName="id", label="id", isPK=true),
|
|
|
+ @Column(includeEntity=DataEntity.class),
|
|
|
+ @Column(name="title", attrName="title", label="标题", queryType=QueryType.LIKE),
|
|
|
+ @Column(name="publish_date", attrName="publishDate", label="发布日期"),
|
|
|
+ @Column(name="outline", attrName="outline", label="概要"),
|
|
|
+ @Column(name="market_type", attrName="marketType", label="所属分类"),
|
|
|
+ @Column(name="file_name", attrName="fileName", label="图片名称"),
|
|
|
+ @Column(name="top_label_id", attrName="topLabelId", label="一级标签id"),
|
|
|
+ @Column(name="second_label_id", attrName="secondLabelId", label="二级标签id"),
|
|
|
+ @Column(name="preview_pdf_file", attrName="previewPdfFile", label="预览pdf文件"),
|
|
|
+ @Column(name="pdf_file", attrName="pdfFile", label="pdf文件"),
|
|
|
+ @Column(name="ppt_file", attrName="pptFile", label="ppt文件"),
|
|
|
+ @Column(name="use_down_pay", attrName="useDownPay", label="下载是否需要支付 0否 1是"),
|
|
|
+ @Column(name="use_down_pay_price", attrName="useDownPayPrice", label="下载需要支付单价"),
|
|
|
+ }, orderBy="a.update_date DESC"
|
|
|
+)
|
|
|
+public class ResearchBriefReport extends DataEntity<ResearchBriefReport> {
|
|
|
+
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
+ private String title; // 标题
|
|
|
+ private Date publishDate; // 发布日期
|
|
|
+ private String outline; // 概要
|
|
|
+ private String marketType; // 所属分类
|
|
|
+ private String fileName; // 图片名称
|
|
|
+ private String topLabelId; // 一级标签id
|
|
|
+ private String secondLabelId; // 二级标签id
|
|
|
+ private String previewPdfFile; // 预览pdf文件
|
|
|
+ private String pdfFile; // pdf文件
|
|
|
+ private String pptFile; // ppt文件
|
|
|
+ private String useDownPay; // 下载是否需要支付 0否 1是
|
|
|
+ private BigDecimal useDownPayPrice; // 下载需要支付单价
|
|
|
+
|
|
|
+ public ResearchBriefReport() {
|
|
|
+ this(null);
|
|
|
+ }
|
|
|
+
|
|
|
+ public ResearchBriefReport(String id){
|
|
|
+ super(id);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Size(min=0, max=255, message="标题长度不能超过 255 个字符")
|
|
|
+ public String getTitle() {
|
|
|
+ return title;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setTitle(String title) {
|
|
|
+ this.title = title;
|
|
|
+ }
|
|
|
+
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
+ public Date getPublishDate() {
|
|
|
+ return publishDate;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setPublishDate(Date publishDate) {
|
|
|
+ this.publishDate = publishDate;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getOutline() {
|
|
|
+ return outline;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setOutline(String outline) {
|
|
|
+ this.outline = outline;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Size(min=0, max=32, message="所属分类长度不能超过 32 个字符")
|
|
|
+ public String getMarketType() {
|
|
|
+ return marketType;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setMarketType(String marketType) {
|
|
|
+ this.marketType = marketType;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Size(min=0, max=128, message="图片名称长度不能超过 128 个字符")
|
|
|
+ public String getFileName() {
|
|
|
+ return fileName;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setFileName(String fileName) {
|
|
|
+ this.fileName = fileName;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Size(min=0, max=64, message="一级标签id长度不能超过 64 个字符")
|
|
|
+ public String getTopLabelId() {
|
|
|
+ return topLabelId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setTopLabelId(String topLabelId) {
|
|
|
+ this.topLabelId = topLabelId;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Size(min=0, max=64, message="二级标签id长度不能超过 64 个字符")
|
|
|
+ public String getSecondLabelId() {
|
|
|
+ return secondLabelId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSecondLabelId(String secondLabelId) {
|
|
|
+ this.secondLabelId = secondLabelId;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Size(min=0, max=255, message="预览pdf文件长度不能超过 255 个字符")
|
|
|
+ public String getPreviewPdfFile() {
|
|
|
+ return previewPdfFile;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setPreviewPdfFile(String previewPdfFile) {
|
|
|
+ this.previewPdfFile = previewPdfFile;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Size(min=0, max=255, message="pdf文件长度不能超过 255 个字符")
|
|
|
+ public String getPdfFile() {
|
|
|
+ return pdfFile;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setPdfFile(String pdfFile) {
|
|
|
+ this.pdfFile = pdfFile;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Size(min=0, max=255, message="ppt文件长度不能超过 255 个字符")
|
|
|
+ public String getPptFile() {
|
|
|
+ return pptFile;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setPptFile(String pptFile) {
|
|
|
+ this.pptFile = pptFile;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Size(min=0, max=2, message="下载是否需要支付 0否 1是长度不能超过 2 个字符")
|
|
|
+ public String getUseDownPay() {
|
|
|
+ return useDownPay;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setUseDownPay(String useDownPay) {
|
|
|
+ this.useDownPay = useDownPay;
|
|
|
+ }
|
|
|
+
|
|
|
+ @DecimalMin(value = "0", message = "单价不能小于0")
|
|
|
+ @DecimalMax(value = "99999999.99", message = "单价不能大于99999999.99")
|
|
|
+ public BigDecimal getUseDownPayPrice() {
|
|
|
+ return useDownPayPrice;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setUseDownPayPrice(BigDecimal useDownPayPrice) {
|
|
|
+ this.useDownPayPrice = useDownPayPrice;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|