package org.dromara.eims.domain.vo; import java.util.Date; import com.fasterxml.jackson.annotation.JsonFormat; import org.dromara.common.translation.annotation.Translation; import org.dromara.common.translation.constant.TransConstant; import org.dromara.eims.domain.EimsRepairRes; 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_repair_res * * @author zhuguifei * @date 2025-02-25 */ @Data @ExcelIgnoreUnannotated @AutoMapper(target = EimsRepairRes.class) public class EimsRepairResVo implements Serializable { @Serial private static final long serialVersionUID = 1L; /** * */ @ExcelProperty(value = "") private Long id; /** * 报修单id */ @ExcelProperty(value = "报修单id") private Long reqId; private Long reqUser;//报修人 private Long reqDept;//报修人部门 /** * 维修单号 */ @ExcelProperty(value = "维修单号") private String resCode; /** * 维修人 */ private Long resUser; @ExcelProperty(value = "维修人") @Translation(type = TransConstant.USER_ID_TO_NICKNAME, mapper = "resUser") private String resUserName; /** * 维修人部门 */ private Long resDept; @ExcelProperty(value = "维修人部门") @Translation(type = TransConstant.DEPT_ID_TO_NAME, mapper = "resDept") private String resDeptName; /** * 原因分析 */ @ExcelProperty(value = "原因分析") private String resReason; /** * 处理措施 */ @ExcelProperty(value = "处理措施") private String resHandle; /** * 预防措施 */ @ExcelProperty(value = "预防措施") private String resPrevent; /** * 维修状态(字典) */ @ExcelProperty(value = "维修状态(字典)", converter = ExcelDictConvert.class) @ExcelDictFormat(dictType = "repair_res_status") private String status; /** * 开始时间 */ @ExcelProperty(value = "开始时间") private Date startTime; /** * 结束时间 */ @ExcelProperty(value = "结束时间") private Date endTime; /** * 使用工具 */ @ExcelProperty(value = "使用工具") private String useFixture; /** * 使用备件 */ @ExcelProperty(value = "使用备件") private String useParts; /** * 备注 */ @ExcelProperty(value = "备注") private String remark; /** * 评价id */ private Long fbId; // 关联表字段 private String reqType;//报修类型 @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date reqTime;//报修时间 private String equName;//设备名称 private String fixtureName;//工具名称 private String faultType;//故障类别 private String reqDeptName;//报修部门 private String reqUserName;//报修人 private String reqDesc;//故障描述 @Translation(type = TransConstant.REPAIR_REQ_ID_TO_CODE, mapper = "reqId") private String reqCode;//报修编码 }