| | |
| | | package com.vci.web.pageModel; |
| | | |
| | | import org.springframework.util.CollectionUtils; |
| | | import plm.bs.bom.clientobject.ClientBusinessObject; |
| | | import plm.bs.bom.clientobject.ClientLinkObject; |
| | | |
| | | 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; |
| | |
| | | if( this.createCbos == null){ |
| | | this.createCbos = new HashSet<ClientBusinessObject>(); |
| | | } |
| | | return this.createCbos.stream().sorted(((o1, o2) -> o1.getCreateTime().compareTo(o2.getCreateTime()))).collect(Collectors.toList()).toArray(nullCboArray); |
| | | return this.createCbos.stream().sorted(((o1, o2) -> Math.toIntExact(o1.getCreateTime() - o2.getCreateTime()))).collect(Collectors.toList()).toArray(nullCboArray); |
| | | } |
| | | |
| | | public ClientLinkObject[] getCreateCloArray(){ |
| | | if( this.createClos == null){ |
| | | this.createClos = new HashSet<ClientLinkObject>(); |
| | | } |
| | | return this.createClos.stream().sorted(((o1, o2) -> o1.getCreateTime().compareTo(o2.getCreateTime()))).collect(Collectors.toList()).toArray(nullCloArray); |
| | | return this.createClos.stream().sorted(((o1, o2) -> Math.toIntExact(o1.getCreateTime() - o2.getCreateTime()))).collect(Collectors.toList()).toArray(nullCloArray); |
| | | } |
| | | |
| | | |
| | |
| | | if( this.updateCbos == null){ |
| | | this.updateCbos = new HashSet<ClientBusinessObject>(); |
| | | } |
| | | return this.updateCbos.stream().sorted(((o1, o2) -> o1.getCreateTime().compareTo(o2.getCreateTime()))).collect(Collectors.toList()).toArray(nullCboArray); |
| | | return this.updateCbos.stream().sorted(((o1, o2) -> Math.toIntExact(o1.getCreateTime() - o2.getCreateTime()))).collect(Collectors.toList()).toArray(nullCboArray); |
| | | } |
| | | |
| | | public ClientLinkObject[] getUpdateCloArray(){ |
| | | if( this.updateClos == null){ |
| | | this.updateClos = new HashSet<ClientLinkObject>(); |
| | | } |
| | | return this.updateClos.stream().sorted(((o1, o2) -> o1.getCreateTime().compareTo(o2.getCreateTime()))).collect(Collectors.toList()).toArray(nullCloArray); |
| | | return this.updateClos.stream().sorted(((o1, o2) -> Math.toIntExact(o1.getCreateTime() - o2.getCreateTime()))).collect(Collectors.toList()).toArray(nullCloArray); |
| | | } |
| | | |
| | | public ClientBusinessObject[] getDeleteCboArray(){ |