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.EimsSpareInout;
|
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 org.dromara.eims.domain.bo.EimsSpareBo;
|
|
import java.io.Serial;
|
import java.io.Serializable;
|
import java.util.Date;
|
import java.util.List;
|
|
|
/**
|
* 备件出入库视图对象 eims_spare_inout
|
*
|
* @author zhuguifei
|
* @date 2025-03-26
|
*/
|
@Data
|
@ExcelIgnoreUnannotated
|
@AutoMapper(target = EimsSpareInout.class)
|
public class EimsSpareInoutVo implements Serializable {
|
|
@Serial
|
private static final long serialVersionUID = 1L;
|
|
/**
|
*
|
*/
|
@ExcelProperty(value = "")
|
private Long id;
|
|
/**
|
* 单号
|
*/
|
@ExcelProperty(value = "单号")
|
private String orderCode;
|
|
/**
|
* 单号日期
|
*/
|
@ExcelProperty(value = "单号日期")
|
private Date orderTime;
|
|
/**
|
* 经办人
|
*/
|
@ExcelProperty(value = "经办人")
|
private Long chargeUser;
|
private Long chargeDept;
|
@Translation(type = TransConstant.USER_ID_TO_NICKNAME, mapper = "chargeUser")
|
private String chargeUserName;
|
@Translation(type = TransConstant.DEPT_ID_TO_NAME, mapper = "chargeDept")
|
private String chargeDeptName;
|
|
/**
|
* 工单类型(1-入库单 2-出库单) 字典
|
*/
|
@ExcelProperty(value = "工单类型", converter = ExcelDictConvert.class)
|
@ExcelDictFormat(dictType = "spare_inout_type")
|
private String type;
|
|
/**
|
* 出库客户名称或入库供应商
|
*/
|
@ExcelProperty(value = "出库客户名称或入库供应商")
|
private String partnerName;
|
|
/**
|
* 关联单号(如-维修单)
|
*/
|
@ExcelProperty(value = "关联单号", converter = ExcelDictConvert.class)
|
@ExcelDictFormat(readConverterExp = "如=-维修单")
|
private String associatedOrder;
|
|
/**
|
* 备注
|
*/
|
@ExcelProperty(value = "备注")
|
private String remark;
|
|
//出入库选择的备件明细
|
private List<EimsSpareVo> spareList;
|
}
|