| | |
| | | nowHistoryList.remove(nowHistory); |
| | | } |
| | | });*/ |
| | | if(nowHistoryList.size()!=0) { |
| | | Iterator<ComponentProductHistory> iterator = nowHistoryList.iterator(); |
| | | while (iterator.hasNext()){ |
| | | ComponentProductHistory next = iterator.next(); |
| | |
| | | ){ |
| | | iterator.remove(); |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | //下个版本新增替换的散装件-产品列表 |
| | |
| | | nowHistoryList.remove(nowHistory); |
| | | } |
| | | });*/ |
| | | if(nowHistoryList.size()!=0) { |
| | | Iterator<ComponentProductHistory> iterator = nowHistoryList.iterator(); |
| | | while (iterator.hasNext()){ |
| | | ComponentProductHistory next = iterator.next(); |
| | |
| | | ){ |
| | | iterator.remove(); |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | //处理完成,进行表单数据更新,分为nowHistoryList,newHistoryList,nowBomHistoryList |
| | | //nowHistoryList.forEach(nowHis->nowHis.setEVersion(nextVersion)); |
| | | newHistoryList.forEach(newHis->{newHis.setEVersion(nextVersion);newHis.setSVersion(nextVersion);}); |
| | | nowBomHistoryList.forEach(nowBomHis->nowBomHis.setEVersion(nextVersion)); |
| | | if(newHistoryList.size()!=0){newHistoryList.forEach(newHis->{newHis.setEVersion(nextVersion);newHis.setSVersion(nextVersion);});} |
| | | if(nowBomHistoryList.size()!=0){nowBomHistoryList.forEach(nowBomHis->nowBomHis.setEVersion(nextVersion));} |
| | | |
| | | if(nowHistoryList.size()!=0){cphService.updateVersionBatch(nowHistoryList);} |
| | | if(newHistoryList.size()!=0){cphService.insertBatch(newHistoryList);} |