package org.jeecg.modules.mdc.entity;
|
|
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 io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import lombok.EqualsAndHashCode;
|
import lombok.experimental.Accessors;
|
import org.jeecg.common.aspect.annotation.Dict;
|
import org.jeecgframework.poi.excel.annotation.Excel;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
import java.util.List;
|
|
/**
|
* @Description: 假期管理
|
* @Author: ym
|
* @Date: 2023-07-04
|
*/
|
@Data
|
@Accessors(chain = true)
|
@EqualsAndHashCode(callSuper = false)
|
@TableName("mdc_vacation_management")
|
@ApiModel(value = "mdc_vacation_management对象",description = "假期管理")
|
public class MdcVacationManagement implements Serializable {
|
private static final long serialVersionUID=1L;
|
|
/**
|
* 主键
|
*/
|
@TableId(type = IdType.ASSIGN_ID)
|
@ApiModelProperty("主键")
|
private String id;
|
|
/**
|
* 设备编号
|
*/
|
@Excel(name = "设备编号",width = 15)
|
@ApiModelProperty("设备编号")
|
private String equipmentId;
|
|
/**
|
* 设备编号
|
*/
|
@Excel(name = "设备名称",width = 15)
|
@ApiModelProperty("设备名称")
|
private String equipmentName;
|
|
/**
|
* 日期
|
*/
|
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
@ApiModelProperty(value = "日期")
|
private Date vacationDate;
|
|
/**
|
* 类型
|
*/
|
@Excel(name = "类型",width = 15)
|
@ApiModelProperty("类型")
|
@Dict(dicCode = "vacation_type")
|
private String vacationType;
|
|
/**
|
* 备注
|
*/
|
@Excel(name = "备注",width = 15)
|
@ApiModelProperty("备注")
|
private String notes;
|
|
/**
|
* 创建时间
|
*/
|
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@ApiModelProperty("创建时间")
|
private Date createTime;
|
|
/**
|
* 创建人
|
*/
|
@Excel(name = "创建人",width = 15)
|
@ApiModelProperty("创建人")
|
private String createBy;
|
|
/**
|
* 更新时间
|
*/
|
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@ApiModelProperty("更新时间")
|
private Date updateTime;
|
|
/**
|
* 更新人
|
*/
|
@Excel(name = "更新人",width = 15)
|
@ApiModelProperty("更新人")
|
private String updateBy;
|
|
@TableField(exist = false)
|
private String equipmentIds;
|
|
/**
|
* 开始时间
|
*/
|
@TableField(exist = false)
|
private String startTime;
|
|
/**
|
* 结束时间
|
*/
|
@TableField(exist = false)
|
private String endTime;
|
|
/**
|
* 前台传入,判断每个id
|
*/
|
@TableField(exist = false)
|
private String parentId;
|
|
/**
|
* 前台传入 车间层级:1,部门层级:2
|
*/
|
@TableField(exist = false)
|
private String typeTree;
|
|
/**
|
* 部门parentId,关联子集id
|
*/
|
@TableField(exist = false)
|
private List<String> mdcSectionIds;
|
}
|