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
|
*/
|
@TableName(value = "account")
|
@Data
|
public class Account 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 accountDate;
|
|
/**
|
* 所属资金账户ID(finance_account.id)
|
*/
|
private Long accountId;
|
|
/**
|
* 流水类型(字典 finance_flow_type):0收入 1支出 2转账 3存入 4取出
|
*/
|
@Excel(name = "流水类型", readConverterExp = "0=收入,1=支出,2=转账,3=存入,4=取出")
|
private String flowType;
|
|
/**
|
* 关联记录类型:Income/Expense(可空)
|
*/
|
private String linkType;
|
|
/**
|
* 关联记录主键ID(可空)
|
*/
|
private Long linkId;
|
|
/**
|
* 收支方向:+1 增加余额 -1 减少余额
|
*/
|
private Integer direction;
|
|
/**
|
* 转账对手账户ID(预留)
|
*/
|
private Long counterAccountId;
|
|
/**
|
* 类型
|
*/
|
@Excel(name = "类型",readConverterExp = "0=销售收入,1=服务收入,2=其他收入")
|
private String typeText;
|
|
/**
|
* 金额
|
*/
|
@Excel(name = "金额")
|
private BigDecimal amount;
|
|
/**
|
* 账户
|
*/
|
@Excel(name = "账户")
|
private String account;
|
|
/**
|
* 往来单位
|
*/
|
@Excel(name = "往来单位")
|
private String counterparty;
|
|
/**
|
* 备注
|
*/
|
@Excel(name = "备注")
|
private String remark;
|
|
|
|
@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;
|
|
/**
|
* 所属账户名称(展示用,不入库)
|
*/
|
@TableField(exist = false)
|
private String accountName;
|
|
@ApiModelProperty(value = "开始时间(查询)")
|
@TableField(exist = false)
|
private String entryDateStart;
|
|
@ApiModelProperty(value = "结束时间(查询)")
|
@TableField(exist = false)
|
private String entryDateEnd;
|
|
}
|