yuxc
2024-06-19 663878fdcd0d44c105888014f4cdf7fc926f609f
Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/pageModel/BatchCBO.java
@@ -1,8 +1,8 @@
package com.vci.web.pageModel;
import com.vci.corba.omd.data.BusinessObject;
import com.vci.corba.omd.data.LinkObject;
import org.springframework.util.CollectionUtils;
import com.vci.client.bof.ClientBusinessObject;
import com.vci.client.bof.ClientLinkObject;
import java.util.HashSet;
import java.util.Set;
import java.util.stream.Collectors;
@@ -17,42 +17,42 @@
   /**
    * 空的业务类型数组
    */
   private ClientBusinessObject[] nullCboArray = new ClientBusinessObject[0];
   private BusinessObject[] nullCboArray = new BusinessObject[0];
   /**
    * 空的链接类型数组
    */
   private ClientLinkObject[] nullCloArray = new ClientLinkObject[0];
   private LinkObject[] nullCloArray = new LinkObject[0];
   /**
    * 创建的业务类型
    */
   private Set<ClientBusinessObject> createCbos = new HashSet<ClientBusinessObject>();
   private Set<BusinessObject> createCbos = new HashSet<BusinessObject>();
   /**
    * 创建的链接类型
    */
   private Set<ClientLinkObject> createClos = new HashSet<ClientLinkObject>();
   private Set<LinkObject> createClos = new HashSet<LinkObject>();
   /**
    * 更新的业务类型
    */
   private Set<ClientBusinessObject> updateCbos = new HashSet<ClientBusinessObject>();
   private Set<BusinessObject> updateCbos = new HashSet<BusinessObject>();
   /**
    * 更新的链接类型
    */
   private Set<ClientLinkObject> updateClos = new HashSet<ClientLinkObject>();
   private Set<LinkObject> updateClos = new HashSet<LinkObject>();
   /**
    * 删除业务类型
    */
   private Set<ClientBusinessObject> deleteCbos = new HashSet<ClientBusinessObject>();
   private Set<BusinessObject> deleteCbos = new HashSet<BusinessObject>();
   /**
    * 删除的链接类型
    */
   private Set<ClientLinkObject> deleteClos = new HashSet<ClientLinkObject>();
   private Set<LinkObject> deleteClos = new HashSet<LinkObject>();
   /**
    * 来源数据集合
@@ -91,119 +91,119 @@
      }
   }
   
   public void addCreateCbo(ClientBusinessObject cbo){
   public void addCreateCbo(BusinessObject cbo){
      this.createCbos.add(cbo);
   }
   
   public void addCreateClo(ClientLinkObject clo){
   public void addCreateClo(LinkObject clo){
      this.createClos.add(clo);
   }
   
   public void addUpdateCbo(ClientBusinessObject cbo){
   public void addUpdateCbo(BusinessObject cbo){
      this.updateCbos.add(cbo);
   }
   
   public void addUpdateClo(ClientLinkObject clo){
   public void addUpdateClo(LinkObject clo){
      this.updateClos.add(clo);
   }
   
   public void addDeleteCbo(ClientBusinessObject cbo){
   public void addDeleteCbo(BusinessObject cbo){
      this.deleteCbos.add(cbo);
   }
   
   public void addDeleteClo(ClientLinkObject clo){
   public void addDeleteClo(LinkObject clo){
      this.deleteClos.add(clo);
   }
   
   
   public ClientBusinessObject[] getCreateCboArray(){
   public BusinessObject[] getCreateCboArray(){
      if( this.createCbos == null){
         this.createCbos = new HashSet<ClientBusinessObject>();
         this.createCbos = new HashSet<BusinessObject>();
      }
      return this.createCbos.stream().sorted(((o1, o2) -> Math.toIntExact(o1.getCreateTime() - o2.getCreateTime()))).collect(Collectors.toList()).toArray(nullCboArray);
      return this.createCbos.stream().sorted(((o1, o2) -> Math.toIntExact(o1.createTime - o2.createTime))).collect(Collectors.toList()).toArray(nullCboArray);
   }
   
   public ClientLinkObject[] getCreateCloArray(){
   public LinkObject[] getCreateCloArray(){
      if( this.createClos == null){
         this.createClos = new HashSet<ClientLinkObject>();
         this.createClos = new HashSet<LinkObject>();
      }
      return this.createClos.stream().sorted(((o1, o2) -> Math.toIntExact(o1.getCreateTime() - o2.getCreateTime()))).collect(Collectors.toList()).toArray(nullCloArray);
      return this.createClos.stream().sorted(((o1, o2) -> Math.toIntExact(o1.createTime - o2.createTime))).collect(Collectors.toList()).toArray(nullCloArray);
   }
   
   public ClientBusinessObject[] getUpdateCboArray(){
   public BusinessObject[] getUpdateCboArray(){
      if( this.updateCbos == null){
         this.updateCbos = new HashSet<ClientBusinessObject>();
         this.updateCbos = new HashSet<BusinessObject>();
      }
      return this.updateCbos.stream().sorted(((o1, o2) -> Math.toIntExact(o1.getCreateTime() - o2.getCreateTime()))).collect(Collectors.toList()).toArray(nullCboArray);
      return this.updateCbos.stream().sorted(((o1, o2) -> Math.toIntExact(o1.createTime - o2.createTime))).collect(Collectors.toList()).toArray(nullCboArray);
   }
   
   public ClientLinkObject[] getUpdateCloArray(){
   public LinkObject[] getUpdateCloArray(){
      if( this.updateClos == null){
         this.updateClos = new HashSet<ClientLinkObject>();
         this.updateClos = new HashSet<LinkObject>();
      }
      return this.updateClos.stream().sorted(((o1, o2) -> Math.toIntExact(o1.getCreateTime() - o2.getCreateTime()))).collect(Collectors.toList()).toArray(nullCloArray);
      return this.updateClos.stream().sorted(((o1, o2) -> Math.toIntExact(o1.createTime - o2.createTime))).collect(Collectors.toList()).toArray(nullCloArray);
   }
   public ClientBusinessObject[] getDeleteCboArray(){
   public BusinessObject[] getDeleteCboArray(){
      if( this.deleteCbos == null){
         this.deleteCbos = new HashSet<ClientBusinessObject>();
         this.deleteCbos = new HashSet<BusinessObject>();
      }
      return this.deleteCbos.toArray(nullCboArray);
   }
   
   public ClientLinkObject[] getDeleteCloArray(){
   public LinkObject[] getDeleteCloArray(){
      if( this.deleteClos == null){
         this.deleteClos = new HashSet<ClientLinkObject>();
         this.deleteClos = new HashSet<LinkObject>();
      }
      return this.deleteClos.toArray(nullCloArray);
   }
   public Set<ClientBusinessObject> getCreateCbos() {
   public Set<BusinessObject> getCreateCbos() {
      return createCbos;
   }
   public void setCreateCbos(Set<ClientBusinessObject> createCbos) {
   public void setCreateCbos(Set<BusinessObject> createCbos) {
      this.createCbos = createCbos;
   }
   public Set<ClientLinkObject> getCreateClos() {
   public Set<LinkObject> getCreateClos() {
      return createClos;
   }
   public void setCreateClos(Set<ClientLinkObject> createClos) {
   public void setCreateClos(Set<LinkObject> createClos) {
      this.createClos = createClos;
   }
   public Set<ClientBusinessObject> getUpdateCbos() {
   public Set<BusinessObject> getUpdateCbos() {
      return updateCbos;
   }
   public void setUpdateCbos(Set<ClientBusinessObject> updateCbos) {
   public void setUpdateCbos(Set<BusinessObject> updateCbos) {
      this.updateCbos = updateCbos;
   }
   public Set<ClientLinkObject> getUpdateClos() {
   public Set<LinkObject> getUpdateClos() {
      return updateClos;
   }
   public void setUpdateClos(Set<ClientLinkObject> updateClos) {
   public void setUpdateClos(Set<LinkObject> updateClos) {
      this.updateClos = updateClos;
   }
   public Set<ClientBusinessObject> getDeleteCbos() {
   public Set<BusinessObject> getDeleteCbos() {
      return deleteCbos;
   }
   public void setDeleteCbos(Set<ClientBusinessObject> deleteCbos) {
   public void setDeleteCbos(Set<BusinessObject> deleteCbos) {
      this.deleteCbos = deleteCbos;
   }
   public Set<ClientLinkObject> getDeleteClos() {
   public Set<LinkObject> getDeleteClos() {
      return deleteClos;
   }
   public void setDeleteClos(Set<ClientLinkObject> deleteClos) {
   public void setDeleteClos(Set<LinkObject> deleteClos) {
      this.deleteClos = deleteClos;
   }