83 lines
2.7 KiB
Java
83 lines
2.7 KiB
Java
package com.gunshi.project.hsz.model;
|
||
|
||
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.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||
import com.gunshi.core.dateformat.DateFormatString;
|
||
import com.gunshi.project.hsz.common.validate.markers.Insert;
|
||
import com.gunshi.project.hsz.common.validate.markers.Update;
|
||
import io.swagger.v3.oas.annotations.media.Schema;
|
||
import jakarta.validation.constraints.NotNull;
|
||
import lombok.Data;
|
||
|
||
import java.io.Serializable;
|
||
import java.util.Date;
|
||
import java.util.List;
|
||
|
||
/**
|
||
* 安全检查管理
|
||
*/
|
||
@Schema(description="安全检查管理")
|
||
@Data
|
||
@TableName(value = "public.safety_check")
|
||
public class SafetyCheck implements Serializable {
|
||
/**
|
||
* 主键
|
||
*/
|
||
@TableId(value = "id", type = IdType.INPUT)
|
||
@Schema(description="主键")
|
||
@NotNull(message = "主键不能为空",groups = {Update.class})
|
||
@JsonSerialize(using = ToStringSerializer.class)
|
||
private Long id;
|
||
|
||
@TableField(value = "check_date")
|
||
@Schema(description="检查日期")
|
||
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD, timezone = "GMT+8")
|
||
@NotNull(message = "检查日期不能为空",groups = {Insert.class,Update.class})
|
||
private Date checkDate;
|
||
|
||
@TableField(value = "check_type")
|
||
@Schema(description="检查类型(1日常检查 2年度检查 3特别检查 4临时检查)")
|
||
private Integer checkType;
|
||
|
||
@TableField(value = "name")
|
||
@Schema(description="名称")
|
||
@NotNull(message = "名称不能为空",groups = {Insert.class,Update.class})
|
||
private String name;
|
||
|
||
@TableField(value = "check_org")
|
||
@Schema(description="检查单位")
|
||
private String checkOrg;
|
||
|
||
@TableField(value = "check_user")
|
||
@Schema(description="检查人员")
|
||
private String checkUser;
|
||
|
||
@TableField(value = "check_content")
|
||
@Schema(description="主要检查内容")
|
||
private String checkContent;
|
||
|
||
@TableField(value = "main_problem")
|
||
@Schema(description="发现的主要问题")
|
||
private String mainProblem;
|
||
|
||
@TableField(value = "handle_suggestion")
|
||
@Schema(description="处理意见与建议")
|
||
private String handleSuggestion;
|
||
|
||
@TableField(value = "recity_desc")
|
||
@Schema(description="问题整改情况")
|
||
private String recityDesc;
|
||
|
||
|
||
@TableField(exist = false)
|
||
@Schema(description = "文件集合")
|
||
private List<FileAssociations> files;
|
||
|
||
private static final long serialVersionUID = 1L;
|
||
|
||
} |