package org.jeecg.modules.project.entity; 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 lombok.Data; import org.jeecg.common.aspect.annotation.Dict; import org.jeecgframework.poi.excel.annotation.Excel; import org.springframework.format.annotation.DateTimeFormat; import java.io.Serializable; import java.util.ArrayList; import java.util.Date; import java.util.List; /** * 项目环节 */ public class ProProjectLinkTree implements Serializable { private String id; @Excel(name = "序号", width = 15) private String key; private String title; private String value; private Integer xh; @Excel(name = "项目环节", width = 15) private String xmhj; @Excel(name = "起始时间", width = 15) @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd") private Date qssj; @Excel(name = "预计完成时间", width = 15) @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd") private Date yjwcsj; @Excel(name = "持续时间", width = 15) private Integer cxsj; @Excel(name = "实际完成时间", width = 15) @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd") private Date sjwcsj; @Excel(name = "完成进度", width = 15) private Integer wcjd; @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username") @Excel(name = "资源名称", width = 15) private String zymc; private String pid; //父项id private String pro;//项目id private Integer level;// private Integer level1;// private Integer level2;// private Integer level3;// @TableField(exist = false) private String sxh; //原始序号,用于数据分类 private Double sortNo; //排序 private boolean isLeaf; //是否子节点 private List children; public String getId() { return id; } public void setId(String id) { this.id = id; } public String getKey() { return key; } public void setKey(String key) { this.key = key; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public Integer getXh() { return xh; } public void setXh(Integer xh) { this.xh = xh; } public String getXmhj() { return xmhj; } public void setXmhj(String xmhj) { this.xmhj = xmhj; } public Date getQssj() { return qssj; } public void setQssj(Date qssj) { this.qssj = qssj; } public Date getYjwcsj() { return yjwcsj; } public void setYjwcsj(Date yjwcsj) { this.yjwcsj = yjwcsj; } public Integer getCxsj() { return cxsj; } public void setCxsj(Integer cxsj) { this.cxsj = cxsj; } public Date getSjwcsj() { return sjwcsj; } public void setSjwcsj(Date sjwcsj) { this.sjwcsj = sjwcsj; } public Integer getWcjd() { return wcjd; } public void setWcjd(Integer wcjd) { this.wcjd = wcjd; } public String getZymc() { return zymc; } public void setZymc(String zymc) { this.zymc = zymc; } public String getPid() { return pid; } public void setPid(String pid) { this.pid = pid; } public String getPro() { return pro; } public void setPro(String pro) { this.pro = pro; } public Integer getLevel() { return level; } public void setLevel(Integer level) { this.level = level; } public Integer getLevel1() { return level1; } public void setLevel1(Integer level1) { this.level1 = level1; } public Integer getLevel2() { return level2; } public void setLevel2(Integer level2) { this.level2 = level2; } public Integer getLevel3() { return level3; } public void setLevel3(Integer level3) { this.level3 = level3; } public String getSxh() { return sxh; } public void setSxh(String sxh) { this.sxh = sxh; } public Double getSortNo() { return sortNo; } public void setSortNo(Double sortNo) { this.sortNo = sortNo; } public boolean isLeaf() { return isLeaf; } public void setLeaf(boolean leaf) { isLeaf = leaf; } public List getChildren() { return children; } public void setChildren(List children) { this.children = children; } public String getValue() { return value; } public void setValue(String value) { this.value = value; } public ProProjectLinkTree() { } public ProProjectLinkTree(ProProjectLink link) { this.id = link.getId(); this.key = link.getId(); this.value = link.getId(); this.title = link.getXmhj(); this.xh = link.getXh(); this.xmhj = link.getXmhj(); this.qssj = link.getQssj(); this.yjwcsj = link.getYjwcsj(); this.cxsj = link.getCxsj(); this.sjwcsj = link.getSjwcsj(); this.wcjd = link.getWcjd(); this.zymc = link.getZymc(); this.pid = link.getPid(); this.pro = link.getPro(); this.level = link.getLevel(); this.level1 = link.getLevel1(); this.level2 = link.getLevel2(); this.level3 = link.getLevel3(); this.sxh = link.getSxh(); this.sortNo = link.getSortNo(); this.isLeaf = link.isLeaf(); if (!link.isLeaf()) { this.children = new ArrayList(); } } @Override public String toString() { return "ProProjectLinkTree{" + "id='" + id + '\'' + ", key='" + key + '\'' + ", title='" + title + '\'' + ", value='" + value + '\'' + ", xh=" + xh + ", xmhj='" + xmhj + '\'' + ", qssj=" + qssj + ", yjwcsj=" + yjwcsj + ", cxsj=" + cxsj + ", sjwcsj=" + sjwcsj + ", wcjd=" + wcjd + ", zymc='" + zymc + '\'' + ", pid='" + pid + '\'' + ", pro='" + pro + '\'' + ", level=" + level + ", level1=" + level1 + ", level2=" + level2 + ", level3=" + level3 + ", sxh='" + sxh + '\'' + ", sortNo=" + sortNo + ", isLeaf=" + isLeaf + ", children=" + children + '}'; } }