package org.dromara.eims.domain.vo;
|
|
import java.util.Date;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
import org.dromara.common.translation.annotation.Translation;
|
import org.dromara.common.translation.constant.TransConstant;
|
import org.dromara.eims.domain.EimsInspectPlan;
|
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_inspect_plan
|
*
|
* @author zhuguifei
|
* @date 2025-03-12
|
*/
|
@Data
|
@ExcelIgnoreUnannotated
|
@AutoMapper(target = EimsInspectPlan.class)
|
public class EimsInspectPlanVo extends BaseEntity implements Serializable {
|
|
@Serial
|
private static final long serialVersionUID = 1L;
|
|
/**
|
*
|
*/
|
@ExcelProperty(value = "")
|
private Long id;
|
|
/**
|
* 设备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(readConverterExp = "字=典")
|
private String inspType;
|
|
/**
|
* 点检项名称
|
*/
|
@ExcelProperty(value = "点检项名称")
|
private String inspName;
|
|
/**
|
* 点检项编号
|
*/
|
@ExcelProperty(value = "点检项编号")
|
private Long inspNo;
|
|
/**
|
* 点检说明
|
*/
|
@ExcelProperty(value = "点检说明")
|
private String inspDesc;
|
|
/**
|
* 点检周期
|
*/
|
@ExcelProperty(value = "点检周期")
|
private Long inspCycle;
|
|
/**
|
* 点检周期单位(字典)
|
*/
|
@ExcelProperty(value = "点检周期单位", converter = ExcelDictConvert.class)
|
@ExcelDictFormat(readConverterExp = "字=典")
|
private String inspCycleUnit;
|
|
/**
|
* 点检规则(字典)保养时间计算:1-按周期 2-按上次保养时间
|
*/
|
@ExcelProperty(value = "点检规则", converter = ExcelDictConvert.class)
|
@ExcelDictFormat(readConverterExp = "字=典")
|
private String inspRule;
|
|
/**
|
* 点检人
|
*/
|
@ExcelProperty(value = "点检人")
|
private Long inspUser;
|
|
|
@Translation(type = TransConstant.USER_ID_TO_NICKNAME, mapper = "inspUser")
|
private String inspUserName;
|
|
/**
|
* 点检部门
|
*/
|
@ExcelProperty(value = "点检部门")
|
private Long inspDept;
|
@Translation(type = TransConstant.DEPT_ID_TO_NAME, mapper = "inspDept")
|
private String inspDeptName;
|
|
/**
|
* 状态(字典) 0-启用 1-禁用
|
*/
|
@ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
|
@ExcelDictFormat(readConverterExp = "字=典")
|
private String status;
|
|
/**
|
* 首次执行时间
|
*/
|
@ExcelProperty(value = "首次执行时间")
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
private Date inspFirstTime;
|
|
/**
|
* 上次执行时间
|
*/
|
@ExcelProperty(value = "上次执行时间")
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
private Date inspLastTime;
|
|
/**
|
* 下次执行时间
|
*/
|
@ExcelProperty(value = "下次执行时间")
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
private Date inspNextTime;
|
|
/**
|
* 备注
|
*/
|
@ExcelProperty(value = "备注")
|
private String remark;
|
|
/**
|
* 循环周期
|
*/
|
private String inspCycleUnitName;
|
|
|
}
|