package com.changhong.epc.bean.tenant.cost.extend; import java.util.ArrayList; import java.util.List; import com.changhong.epc.bean.tenant.cost.CostFromMapping; import com.changhong.epc.bean.tenant.cost.CostType; import lombok.Data; import lombok.EqualsAndHashCode; @Data @EqualsAndHashCode(callSuper=true) public class CostTypeExtend extends CostType{ /** * */ private static final long serialVersionUID = 1L; private List children = new ArrayList<>(); private List costFromMapping = new ArrayList<>(); public void SetProperties(CostType cost){ this.setId(cost.getId()); this.setNodeName(cost.getNodeName()); this.setParentId(cost.getParentId()); this.setDataStart(cost.getDataStart()); this.setOrderTypeCode(cost.getOrderTypeCode()); this.setSortCode(cost.getSortCode()); this.setRecourseCode(cost.getRecourseCode()); this.setType(cost.getType()); this.setInsT(cost.getInsT()); this.setUpdT(cost.getUpdT()); } }