| | |
| | | newHistoryList.forEach(newHis->{newHis.setEVersion(nextVersion);newHis.setSVersion(nextVersion);}); |
| | | nowBomHistoryList.forEach(nowBomHis->nowBomHis.setEVersion(nextVersion)); |
| | | |
| | | cphService.updateVersionBatch(nowHistoryList); |
| | | cphService.insertBatch(newHistoryList); |
| | | historyService.updateVersionBatch(nowBomHistoryList); |
| | | if(nowHistoryList.size()!=0){cphService.updateVersionBatch(nowHistoryList);} |
| | | if(newHistoryList.size()!=0){cphService.insertBatch(newHistoryList);} |
| | | if(nowBomHistoryList.size()!=0){historyService.updateVersionBatch(nowBomHistoryList);} |
| | | //更新ProductBom |
| | | List<ProductBomHistory> newBomList = historyService.getListByParentModel(cpAList.get(0).getParentModel(), nextVersion); |
| | | bomService.updateNewBom(newBomList); |