package org.dromara.eims.domain.vo;
|
|
import java.util.Date;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import jakarta.validation.constraints.NotNull;
|
import org.dromara.common.core.validate.AddGroup;
|
import org.dromara.common.core.validate.EditGroup;
|
import org.dromara.common.translation.annotation.Translation;
|
import org.dromara.common.translation.constant.TransConstant;
|
import org.dromara.eims.domain.EimsMaintPlan;
|
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
import com.alibaba.excel.annotation.ExcelProperty;
|
import org.dromara.common.excel.annotation.ExcelDictFormat;
|
import org.dromara.common.excel.convert.ExcelDictConvert;
|
import io.github.linpeilie.annotations.AutoMapper;
|
import lombok.Data;
|
|
import java.io.Serial;
|
import java.io.Serializable;
|
import java.util.Date;
|
|
|
|
/**
|
* 保养计划视图对象 eims_maint_plan
|
*
|
* @author zhuguifei
|
* @date 2025-03-04
|
*/
|
@Data
|
@ExcelIgnoreUnannotated
|
@AutoMapper(target = EimsMaintPlan.class)
|
public class EimsMaintPlanVo implements Serializable {
|
|
@Serial
|
private static final long serialVersionUID = 1L;
|
|
/**
|
*
|
*/
|
@ExcelProperty(value = "")
|
private Long id;
|
|
|
/**
|
* 保养项名称
|
*/
|
private String maintName;
|
|
/**
|
* 保养项编号
|
*/
|
private Integer maintNo;
|
|
/**
|
* 保养项描述
|
*/
|
private String maintDesc;
|
|
/**
|
* 设备id
|
|
*/
|
@ExcelProperty(value = "设备id")
|
private Long equId;
|
|
/**
|
* 设备名称
|
*/
|
@Translation(type = TransConstant.EQU_ID_TO_NAME, mapper = "equId")
|
private String equName;
|
|
/**
|
* 设备资产编号
|
*/
|
private String assetNo;
|
|
/**
|
* 保养类型(字典)
|
*/
|
@ExcelProperty(value = "保养类型", converter = ExcelDictConvert.class)
|
@ExcelDictFormat(dictType = "eims_maint_type")
|
private String maintType;
|
|
/**
|
* 保养周期
|
*/
|
@ExcelProperty(value = "保养周期")
|
private Long maintCycle;
|
|
/**
|
* 保养周期单位(字典)
|
*/
|
@ExcelProperty(value = "保养周期单位", converter = ExcelDictConvert.class)
|
@ExcelDictFormat(dictType = "maint_cycle_unit")
|
private String maintCycleUnit;
|
|
/**
|
* 字段拼接 maintCycle + maintCycleUnit的dictLabel
|
*/
|
private String maintCycleUnitName;
|
|
/**
|
* 保养规则(字典)保养时间计算:1-按周期 2-按上次保养时间
|
*/
|
@ExcelProperty(value = "保养规则", converter = ExcelDictConvert.class)
|
@ExcelDictFormat(dictType = "maint_time_rule")
|
private String maintRule;
|
|
/**
|
* 保养人
|
*/
|
@ExcelProperty(value = "保养人")
|
private Long maintUser;
|
|
@Translation(type = TransConstant.USER_ID_TO_NICKNAME, mapper = "maintUser")
|
private String maintUserName;
|
|
/**
|
* 保养部门
|
*/
|
@ExcelProperty(value = "保养部门")
|
private Long maintDept;
|
|
private String maintDeptName;
|
|
/**
|
* 状态(字典) 0-启用 1-禁用
|
*/
|
@ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
|
@ExcelDictFormat(dictType = "sys_normal_disable")
|
private String status;
|
|
/**
|
* 首次执行时间
|
*/
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
private Date maintFirstTime;
|
|
/**
|
* 上次执行时间
|
*/
|
@ExcelProperty(value = "上次执行时间")
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
private Date maintLastTime;
|
|
/**
|
* 下次执行时间
|
*/
|
@ExcelProperty(value = "下次执行时间")
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
private Date maintNextTime;
|
|
/**
|
* 备注
|
*/
|
@ExcelProperty(value = "备注")
|
private String remark;
|
/**
|
* 上次生成工单时间
|
*/
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
private Date lastGenerateDate;
|
|
|
}
|