package com.ruoyi.account.pojo;
|
|
import com.baomidou.mybatisplus.annotation.*;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.ruoyi.dto.DateQueryDto;
|
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import javax.validation.constraints.NotBlank;
|
import java.io.Serializable;
|
import java.math.BigDecimal;
|
import java.time.LocalDateTime;
|
import java.util.Date;
|
|
/**
|
* 财务管理--支出管理
|
* account_expense
|
*/
|
@TableName(value = "account_expense")
|
@Data
|
public class AccountExpense extends DateQueryDto implements Serializable {
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 序号
|
*/
|
@TableId(type = IdType.AUTO)
|
private Long id;
|
|
/**
|
* 支出日期
|
*/
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
@Excel(name = "支出日期", width = 30, dateFormat = "yyyy-MM-dd")
|
private Date expenseDate;
|
|
/**
|
* 支出类型(办公用品,员工工资,差旅费,设备费用,其他)
|
*/
|
@Excel(name = "支出类型",readConverterExp = "0=办公用品,1=员工工资,2=差旅费,3=设备费用,4=其他")
|
@NotBlank(message = "支出类型不能为空!!")
|
private String expenseType;
|
|
/**
|
* 供应商名称
|
*/
|
@Excel(name = "供应商名称")
|
private String supplierName;
|
|
/**
|
* 支出金额
|
*/
|
@Excel(name = "支出金额")
|
private BigDecimal expenseMoney;
|
|
/**
|
* 支出描述
|
*/
|
@Excel(name = "支出描述")
|
private String expenseDescribed;
|
|
/**
|
* 付款方式(现金,支票,银行转账,其他)
|
*/
|
@Excel(name = "付款方式",readConverterExp = "0=现金,1=支票,2=银行转账,3=其他")
|
private String expenseMethod;
|
|
/**
|
* 发票号码
|
*/
|
@Excel(name = "发票号码")
|
private String invoiceNumber;
|
|
/**
|
* 备注
|
*/
|
@Excel(name = "备注")
|
private String note;
|
|
/**
|
* 录入人员
|
*/
|
@Excel(name = "录入人员")
|
private String inputUser;
|
|
/**
|
* 录入时间
|
*/
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
@Excel(name = "录入时间", width = 30, dateFormat = "yyyy-MM-dd")
|
private Date inputTime;
|
|
|
@ApiModelProperty(value = "创建时间")
|
@TableField(fill = FieldFill.INSERT)
|
private LocalDateTime createTime;
|
|
@ApiModelProperty(value = "创建用户")
|
@TableField(fill = FieldFill.INSERT)
|
private Integer createUser;
|
|
@ApiModelProperty(value = "修改时间")
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
private LocalDateTime updateTime;
|
|
@ApiModelProperty(value = "修改用户")
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
private Integer updateUser;
|
|
@ApiModelProperty(value = "租户ID")
|
@TableField(fill = FieldFill.INSERT)
|
private Long tenantId;
|
|
|
}
|