add 功能安全中心增加@Excel

This commit is contained in:
lijiarao
2024-07-01 10:31:19 +08:00
parent 5dbda5dffe
commit 2f4fb76d2b
@@ -4,10 +4,14 @@ 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.fasterxml.jackson.annotation.JsonFormat;
import com.jero.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
/**
*功能安全中心
@@ -44,13 +48,16 @@ public class SafetyCenter {
*/
@TableField(value = "project_name")
@ApiModelProperty(value="项目名称")
@Excel(name = "项目名称", width = 15)
private String projectName;
/**
* 负责人id
*/
@TableField(value = "principal_id")
@ApiModelProperty(value="负责人id")
@ApiModelProperty(value = "负责人id")
@Excel(name = "负责人", width = 15, dictTable = "sys_user",dicText = "realname",dicCode = "id")
@Dict(dictTable = "sys_user",dicText = "realname",dicCode = "id")
private String principalId;
/**
@@ -58,6 +65,7 @@ public class SafetyCenter {
*/
@TableField(value = "mission_and_objectives")
@ApiModelProperty(value="任务及目标")
@Excel(name = "任务及目标", width = 15)
private String missionAndObjectives;
/**
@@ -65,6 +73,7 @@ public class SafetyCenter {
*/
@TableField(value = "remarks")
@ApiModelProperty(value="备注")
@Excel(name = "备注", width = 15)
private String remarks;
/**
@@ -79,6 +88,8 @@ public class SafetyCenter {
*/
@TableField(value = "create_time")
@ApiModelProperty(value="创建时间")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
private Date createTime;
/**
@@ -93,5 +104,7 @@ public class SafetyCenter {
*/
@TableField(value = "update_time")
@ApiModelProperty(value="更新时间")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
private Date updateTime;
}