EquipmentInspectionPlan.java 3.5 KB
package com.skua.modules.equipment.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.skua.core.aspect.annotation.Dict;
import com.skua.tool.annotation.JoinSqlQueryAnno;
import com.skua.tool.enums.JoinSqlQueryEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Data
@TableName("equipment_inspection_plan")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "equip_inspection对象", description = "设备检查计划")
public class EquipmentInspectionPlan {
    @TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "id")
    @JoinSqlQueryAnno(joinSqlQueryEnum = JoinSqlQueryEnum.IN)
    private String id;

    @Excel(name = "计划名称", width = 15)
    @ApiModelProperty(value = "计划名称")
    private String planName;
    /**
     * 所属机构
     */
    @Excel(name = "所属机构", width = 15)
    @ApiModelProperty(value = "所属机构")
    private String departId;
    /**
     * 送检负责人
     */
    @Excel(name = "送检负责人", width = 15)
    @ApiModelProperty(value = "送检负责人")
    private String submitterId;
    /**
     * 开始时间
     */
    @Excel(name = "开始时间", width = 15)
    @ApiModelProperty(value = "开始时间")
    private Date startTime;
    /**
     * 结束时间
     */
    @Excel(name = "结束时间", width = 15)
    @ApiModelProperty(value = "结束时间")
    private Date endTime;
    /**
     * 循环周期
     */
    @Excel(name = "循环周期", width = 15)
    @ApiModelProperty(value = "循环周期")
    private Integer cycle;
    /**
     * 周期单位
     */
    @Excel(name = "周期单位", width = 15)
    @ApiModelProperty(value = "周期单位")
    @Dict(dicCode = "loop_unit")
    private String cycleUnit;
    /**
     * 说明
     */
    @Excel(name = "说明", width = 15)
    @ApiModelProperty(value = "说明")
    private String whRemark;

    /**
     * 删除标识,0:正常,1:删除
     */
    @Excel(name = "删除标识,0:正常,1:删除", width = 15)
    @ApiModelProperty(value = "删除标识,0:正常,1:删除")
    private Integer delFlag;
    /**
     * 创建人id
     */
    @Excel(name = "创建人id", width = 15)
    @ApiModelProperty(value = "创建人id")
    private String createBy;
    /**
     * 创建时间
     */
    @Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 修改人id
     */
    @Excel(name = "修改人id", width = 15)
    @ApiModelProperty(value = "修改人id")
    private String updateBy;
    /**
     * 修改时间
     */
    @Excel(name = "修改时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
    @Excel(name = "发布状态", width = 15)
    @ApiModelProperty(value = "发布状态")
    private Integer releaseStatus;
}