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.EimsFixtureBorrow;
|
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_fixture_borrow
|
*
|
* @author zhuguifei
|
* @date 2025-02-18
|
*/
|
@Data
|
@ExcelIgnoreUnannotated
|
@AutoMapper(target = EimsFixtureBorrow.class)
|
public class EimsFixtureBorrowVo implements Serializable {
|
|
@Serial
|
private static final long serialVersionUID = 1L;
|
|
/**
|
*
|
*/
|
@ExcelProperty(value = "")
|
private Long id;
|
|
/**
|
* 借用工具id
|
*/
|
@ExcelProperty(value = "借用工具id")
|
private Long fixtureId;
|
|
/**
|
* 借用工具名称
|
*/
|
@ExcelProperty(value = "借用工具名称")
|
private String fixtureName;
|
|
/**
|
* 借用部门
|
*/
|
private Long borrowDept;
|
|
/**
|
* 借用部门
|
*/
|
@ExcelProperty(value = "借用部门")
|
@Translation(type = TransConstant.DEPT_ID_TO_NAME, mapper = "borrowDept")
|
private String borrowDeptName;
|
|
/**
|
* 借用人
|
*/
|
private Long borrowUser;
|
/**
|
* 借用人
|
*/
|
@ExcelProperty(value = "借用人")
|
@Translation(type = TransConstant.USER_ID_TO_NICKNAME, mapper = "borrowUser")
|
private String borrowUserName;
|
|
/**
|
* 经办人
|
*/
|
private Long agentUser;
|
|
/**
|
* 经办人
|
*/
|
@ExcelProperty(value = "经办人")
|
@Translation(type = TransConstant.USER_ID_TO_NICKNAME, mapper = "agentUser")
|
private Long agentUserName;
|
|
|
/**
|
* 借用记录状态(字典)
|
*/
|
@ExcelProperty(value = "借用记录状态", converter = ExcelDictConvert.class)
|
@ExcelDictFormat(dictType = "fixture_borrow_record_status")
|
private String status;
|
|
/**
|
* 借用时间
|
*/
|
@ExcelProperty(value = "借用时间")
|
private Date borrowTime;
|
|
/**
|
* 预计归还时间
|
*/
|
@ExcelProperty(value = "预计归还时间")
|
private Date planReturnTime;
|
|
/**
|
* 归还时间
|
*/
|
@ExcelProperty(value = "归还时间")
|
private Date returnTime;
|
|
/**
|
* 借用理由
|
*/
|
@ExcelProperty(value = "借用理由")
|
private String borrowReason;
|
|
/**
|
* 备注
|
*/
|
@ExcelProperty(value = "备注")
|
private String remark;
|
|
|
}
|