| | |
| | | }); |
| | | |
| | | //处理完成,进行表单数据更新,分为nowHistoryList,newHistoryList,nowBomHistoryList |
| | | //nowHistoryList.forEach(nowHis->nowHis.setEVersion(nextVersion)); |
| | | newHistoryList.forEach(newHis->{newHis.setEVersion(nextVersion);newHis.setSVersion(nextVersion);}); |
| | | nowBomHistoryList.forEach(nowBomHis->nowBomHis.setEVersion(nextVersion)); |
| | | |
| | | cphService.updateVersionBatch(nowHistoryList); |
| | | cphService.insertBatch(newHistoryList); |
| | | historyService.updateVersionBatch(nowBomHistoryList); |
| | | //更新ProductBom |
| | | List<ProductBomHistory> newBomList = historyService.getListByParentModel(cpAList.get(0).getParentModel(), nextVersion); |
| | | bomService.updateNewBom(newBomList); |
| | | } |
| | | } |
| | | } |