package com.ruoyi.officesupplies.pojo;
|
|
import com.baomidou.mybatisplus.annotation.*;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
|
import com.ruoyi.sales.pojo.CommonFile;
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import java.time.LocalDateTime;
|
import java.util.Date;
|
import java.util.List;
|
|
/**
|
* @author :yys
|
* @date : 2025/9/4 14:02
|
*/
|
@Data
|
@ApiModel
|
@TableName("office_supplies")
|
public class OfficeSupplies {
|
|
private static final long serialVersionUID = 1L;
|
|
@TableId(value = "id", type = IdType.AUTO)
|
private Long id;
|
|
@ApiModelProperty("编号")
|
@Excel(name = "编号")
|
private String code;
|
|
@ApiModelProperty("物品名称")
|
private String itemName;
|
|
@ApiModelProperty("申请人")
|
@Excel(name = "申请人")
|
private String applicant;
|
|
/**
|
* 部门
|
*/
|
@ApiModelProperty("部门")
|
@Excel(name = "部门")
|
private String dept;
|
|
/**
|
* 物资类型(1-其他 2-清洁用品 3-电子用品 4-电子设备)
|
*/
|
@ApiModelProperty("物资类型(1-其他 2-清洁用品 3-电子用品 4-电子设备)")
|
@Excel(name = "物资类型", readConverterExp = "1=其他,2=清洁用品,3=电子用品,4=电子设备")
|
private Integer materialType;
|
|
/**
|
* 申请数量
|
*/
|
@ApiModelProperty("申请数量")
|
@Excel(name = "申请数量")
|
private Integer applyNum;
|
|
/**
|
* 审批意见
|
*/
|
@ApiModelProperty("审批意见")
|
// @Excel(name = "审批意见")
|
private String approvalOpinions;
|
|
/**
|
* 申请原因
|
*/
|
@ApiModelProperty("申请原因")
|
@Excel(name = "申请原因")
|
private String reason;
|
|
|
/**
|
* 紧急程度(1-普通 2-紧急 3-非常紧急)
|
*/
|
@ApiModelProperty("紧急程度(1-普通 2-紧急 3-非常紧急)")
|
// @Excel(name = "紧急程度", readConverterExp = "1=普通,2=紧急,3=非常紧急")
|
private Integer urgency;
|
|
/**
|
* 状态(1-待审批 2-已拒绝 3-已通过 4-已发放)
|
*/
|
@ApiModelProperty("状态(1-待审批 2-已拒绝 3-已通过 4-已发放)")
|
@Excel(name = "状态", readConverterExp = "1=待审批,2=已拒绝,3=已通过,4=已发放")
|
private Integer status;
|
|
/**
|
* 申请时间
|
*/
|
@ApiModelProperty("申请时间")
|
@Excel(name = "申请时间" , width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private Date applyTime;
|
|
|
/**
|
* 审批人
|
*/
|
@ApiModelProperty("审批人")
|
@Excel(name = "审批人")
|
private String approval;
|
|
/**
|
* 审批时间
|
*/
|
@ApiModelProperty("审批时间")
|
@Excel(name = "审批时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private Date approvalTime;
|
|
/**
|
* 发放时间
|
*/
|
@ApiModelProperty("发放时间")
|
@Excel(name = "发放时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private Date issueTime;
|
|
@ApiModelProperty("发放人")
|
// @Excel(name = "发放人")
|
private String issueUser;
|
|
/**
|
* 创建者
|
*/
|
@TableField(fill = FieldFill.INSERT)
|
private Integer createUser;
|
|
/**
|
* 创建时间
|
*/
|
@TableField(fill = FieldFill.INSERT)
|
private LocalDateTime createTime;
|
|
/**
|
* 修改者
|
*/
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
private Integer updateUser;
|
|
/**
|
* 修改时间
|
*/
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
private LocalDateTime updateTime;
|
|
/**
|
* 租户ID
|
*/
|
@TableField(fill = FieldFill.INSERT)
|
private Long tenantId;
|
|
}
|