From 8e3f58c38fd3d552125ada6afdf88e7fc2b380a0 Mon Sep 17 00:00:00 2001 From: Jinquan_Ou <Jinquan@gdut.com> Date: 星期一, 17 四月 2023 12:47:32 +0800 Subject: [PATCH] 888 --- zhang-content/src/main/java/com/ruoyi/domain/ZfEconomy.java | 122 ++++++++++------------------------------ 1 files changed, 32 insertions(+), 90 deletions(-) diff --git a/zhang-content/src/main/java/com/ruoyi/domain/ZfEconomy.java b/zhang-content/src/main/java/com/ruoyi/domain/ZfEconomy.java index 4c3ec67..9683148 100644 --- a/zhang-content/src/main/java/com/ruoyi/domain/ZfEconomy.java +++ b/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,73 @@ * @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锛氬彴璐� */ + @Excel(name = "鏀舵敮绫诲瀷",readConverterExp = "0=鍩洪噾,1=鍙拌处") private Integer type; /** * 鏃堕棿 */ - private LocalDate createTime; + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "鍒涘缓鏃堕棿", dateFormat = "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:鑷姩鍒掓墸 */ + @Excel(name = "鐜伴噾/鑷姩鍒掓墸",readConverterExp = "0=鐜伴噾,1=鑷姩鍒掓墸") private Integer 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 String familyId; - public void setId(Integer id) { - this.id = id; - } + /** + * 鏄惁鏄湰瀹跺涵鐨勬暟鎹�(0:涓嶆槸,1:鏄�) + */ + @TableField(exist = false) + private Integer ownData = 0; - public Integer getType() { - return type; - } - - public void setType(Integer type) { - this.type = type; - } - - public LocalDate getCreateTime() { - return createTime; - } - - public void setCreateTime(LocalDate createTime) { - this.createTime = createTime; - } - - 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 + - "}"; - } } -- Gitblit v1.9.1