feige
2024-08-22 5e2ebcceae4bc34b46370f2c10110cd72e7f4fba
zhang-content/src/main/java/com/ruoyi/domain/ZfEconomy.java
@@ -1,10 +1,17 @@
package com.ruoyi.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import lombok.ToString;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;
/**
 * <p>
@@ -15,138 +22,96 @@
 * @since 2023-03-12
 */
@TableName("zf_economy")
@Data
@ToString
public class ZfEconomy implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Long id;
    /**
     * 0:基金、1:台账
     */
    private Integer type;
    @Excel(name = "收支类型")
    private String type;
    /**
     * 时间
     */
    private LocalDate createTime;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    /**
     * 收入/支出
     */
    private Double price;
    @Excel(name = "收入/支出")
    private String price;
    /**
     * 用途
     */
    private String use;
    @Excel(name = "用途")
    private String useFor;
    /**
     * 使用人
     */
    private String user;
    @Excel(name = "使用人")
    private String usePeople;
    /**
     * 0:现金,1:自动划扣
     */
    private Integer kind;
    @Excel(name = "现金/自动划扣")
    private String kind;
    /**
     * 余额
     */
    private Double balance;
    @Excel(name = "余额")
    private String balance;
    /**
     * 备注
     */
    @Excel(name = "备注")
    private String remark;
    private String url;
    public Integer getId() {
        return id;
    }
    @Excel(name = "所属家庭编号(导入数据时请删除此栏)")
    private Long familyId;
    public void setId(Integer id) {
        this.id = id;
    }
    /**
     * 是否是本家庭的数据(0:不是,1:是)
     */
    @TableField(exist = false)
    private Integer ownData = 0;
    public Integer getType() {
        return type;
    }
    /**
     * 开始时间
     */
    @TableField(exist = false)
    private Date happenStartTime;
    public void setType(Integer type) {
        this.type = type;
    }
    /**
     * 结束时间
     */
    @TableField(exist = false)
    private Date happenEndTime;
    public LocalDate getCreateTime() {
        return createTime;
    }
    /**
     * 发生时间
     */
    @Excel(name = "时间", dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date happenTime;
    public void setCreateTime(LocalDate createTime) {
        this.createTime = createTime;
    }
    /**
     * 分享人id
     */
    private Integer shareId;
    public Double getPrice() {
        return price;
    }
    public void setPrice(Double price) {
        this.price = price;
    }
    public String getUse() {
        return use;
    }
    public void setUse(String use) {
        this.use = use;
    }
    public String getUser() {
        return user;
    }
    public void setUser(String user) {
        this.user = user;
    }
    public Integer getKind() {
        return kind;
    }
    public void setKind(Integer kind) {
        this.kind = kind;
    }
    public Double getBalance() {
        return balance;
    }
    public void setBalance(Double balance) {
        this.balance = balance;
    }
    public String getRemark() {
        return remark;
    }
    public void setRemark(String remark) {
        this.remark = remark;
    }
    @Override
    public String toString() {
        return "ZfEconomy{" +
        "id=" + id +
        ", type=" + type +
        ", createTime=" + createTime +
        ", price=" + price +
        ", use=" + use +
        ", user=" + user +
        ", kind=" + kind +
        ", balance=" + balance +
        ", remark=" + remark +
        "}";
    }
}