|
|
@@ -0,0 +1,210 @@
|
|
|
+package com.dk.oauth.entity;
|
|
|
+
|
|
|
+import cn.afterturn.easypoi.excel.annotation.Excel;
|
|
|
+import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
+import com.dk.common.infrastructure.annotaiton.ExportTitle;
|
|
|
+import com.dk.common.infrastructure.handler.IntListTypeHandler;
|
|
|
+import com.dk.common.infrastructure.handler.StringListTypeHandler;
|
|
|
+import com.dk.common.infrastructure.handler.TimestampTypeHandler;
|
|
|
+import com.dk.common.infrastructure.handler.UuidTypeHandler;
|
|
|
+import com.dk.common.model.pojo.PageInfo;
|
|
|
+import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
+import io.swagger.annotations.ApiModel;
|
|
|
+import io.swagger.annotations.ApiModelProperty;
|
|
|
+import lombok.AllArgsConstructor;
|
|
|
+import lombok.Data;
|
|
|
+import lombok.EqualsAndHashCode;
|
|
|
+import lombok.NoArgsConstructor;
|
|
|
+import lombok.experimental.Accessors;
|
|
|
+import org.apache.poi.util.IntList;
|
|
|
+
|
|
|
+import java.io.Serializable;
|
|
|
+import java.time.LocalDate;
|
|
|
+import java.time.LocalDateTime;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 广告管理
|
|
|
+ */
|
|
|
+@Data
|
|
|
+@AllArgsConstructor
|
|
|
+@NoArgsConstructor
|
|
|
+@EqualsAndHashCode(callSuper = true)
|
|
|
+@Accessors(chain = true)
|
|
|
+@ExportTitle("广告管理")
|
|
|
+@TableName(value = "t_mst_advertisement", schema = "dkic_m", autoResultMap = true)
|
|
|
+@ApiModel(value = "实体类:广告管理", description = "表名:t_mst_advertisement")
|
|
|
+public class Advertisement extends PageInfo<Advertisement> implements Serializable {
|
|
|
+
|
|
|
+ /*
|
|
|
+ * 数据库字段
|
|
|
+ */
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 广告管理ID
|
|
|
+ */
|
|
|
+ @ApiModelProperty(value = "广告管理ID")
|
|
|
+ private String adId;
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 广告路径
|
|
|
+ */
|
|
|
+ @Excel(name = "广告路径")
|
|
|
+ @ApiModelProperty(value = "广告路径")
|
|
|
+ private String adPath;
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 广告管理名称
|
|
|
+ */
|
|
|
+ @Excel(name = "广告管理名称")
|
|
|
+ @ApiModelProperty(value = "广告管理名称")
|
|
|
+ private String adName;
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 广告描述
|
|
|
+ */
|
|
|
+ @Excel(name = "广告描述")
|
|
|
+ @ApiModelProperty(value = "广告描述")
|
|
|
+ private String adDescribe;
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 开始日期
|
|
|
+ */
|
|
|
+ @Excel(name = "开始日期")
|
|
|
+ @ApiModelProperty(value = "开始日期")
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
|
|
+ private LocalDate startDate;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 开始日期
|
|
|
+ */
|
|
|
+ @Excel(name = "截止日期")
|
|
|
+ @ApiModelProperty(value = "截止日期")
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
|
|
+ private LocalDate endDate;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 应用代码
|
|
|
+ */
|
|
|
+ @Excel(name = "应用代码")
|
|
|
+ @ApiModelProperty(value = "应用代码")
|
|
|
+ private String appCode;
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 系统版本
|
|
|
+ */
|
|
|
+ @Excel(name = "系统版本")
|
|
|
+ @ApiModelProperty(value = "系统版本")
|
|
|
+ @TableField(typeHandler = StringListTypeHandler.class)
|
|
|
+ private List<String> gradeCodes;
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 投放企业
|
|
|
+ */
|
|
|
+ @Excel(name = "投放企业")
|
|
|
+ @ApiModelProperty(value = "投放企业")
|
|
|
+ @TableField(typeHandler = IntListTypeHandler.class)
|
|
|
+ private List<Integer> cp_ids;
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 人显示顺序
|
|
|
+ */
|
|
|
+ @Excel(name = "显示顺序")
|
|
|
+ @ApiModelProperty(value = "显示顺序")
|
|
|
+ private Boolean displayNo;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 有效标识 (1:正常 0:停用)
|
|
|
+ */
|
|
|
+ @Excel(name = "有效标识 (1:正常 0:停用)")
|
|
|
+ @ApiModelProperty(value = "有效标识 (1:正常 0:停用)")
|
|
|
+ private Boolean flgValid;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 创建时间 (触发器自动处理)
|
|
|
+ */
|
|
|
+ @Excel(name = "创建时间 (触发器自动处理)", format = "yyyy-MM-dd HH:mm:ss", width = 20)
|
|
|
+ @ApiModelProperty(value = "创建时间 (触发器自动处理)")
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
|
+ @TableField(typeHandler = TimestampTypeHandler.class)
|
|
|
+ private LocalDateTime opCreateTime;
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 创建用户 (触发器自动处理)
|
|
|
+ */
|
|
|
+ @Excel(name = "创建用户 (触发器自动处理)")
|
|
|
+ @ApiModelProperty(value = "创建用户 (触发器自动处理)")
|
|
|
+ @TableField(typeHandler = UuidTypeHandler.class)
|
|
|
+ private String opCreateUserId;
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 修改时间 (触发器自动处理)
|
|
|
+ */
|
|
|
+ @Excel(name = "修改时间 (触发器自动处理)", format = "yyyy-MM-dd HH:mm:ss", width = 20)
|
|
|
+ @ApiModelProperty(value = "修改时间 (触发器自动处理)")
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
|
+ @TableField(typeHandler = TimestampTypeHandler.class)
|
|
|
+ private LocalDateTime opUpdateTime;
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 修改用户 (触发器自动处理)
|
|
|
+ */
|
|
|
+ @Excel(name = "修改用户 (触发器自动处理)")
|
|
|
+ @ApiModelProperty(value = "修改用户 (触发器自动处理)")
|
|
|
+ @TableField(typeHandler = UuidTypeHandler.class)
|
|
|
+ private String opUpdateUserId;
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 数据操作应用 (触发器自动处理)
|
|
|
+ */
|
|
|
+ @Excel(name = "数据操作应用 (触发器自动处理)")
|
|
|
+ @ApiModelProperty(value = "数据操作应用 (触发器自动处理)")
|
|
|
+ private String opAppCode;
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 数据时间戳 (触发器自动处理)
|
|
|
+ */
|
|
|
+ @Excel(name = "数据时间戳 (触发器自动处理)")
|
|
|
+ @ApiModelProperty(value = "数据时间戳 (触发器自动处理)")
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
|
+ @TableField(typeHandler = TimestampTypeHandler.class)
|
|
|
+ private LocalDateTime opTimestamp;
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 数据操作数据库用户 (触发器自动处理)
|
|
|
+ */
|
|
|
+ @Excel(name = "数据操作数据库用户 (触发器自动处理)")
|
|
|
+ @ApiModelProperty(value = "数据操作数据库用户 (触发器自动处理)")
|
|
|
+ private String opDbUser;
|
|
|
+
|
|
|
+
|
|
|
+ /*
|
|
|
+ * 相关属性
|
|
|
+ * @TableField(exist = false)
|
|
|
+ */
|
|
|
+
|
|
|
+ /*
|
|
|
+ * 关联属性 + 查询条件
|
|
|
+ * @TableField(exist = false)
|
|
|
+ */
|
|
|
+
|
|
|
+
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
+
|
|
|
+}
|