| | |
| | | entity.setPointid(mmPredictItemDto.getPointId()); |
| | | entity.setResultName(mmPredictItemDto.getMmPredictItem().getItemname()); |
| | | entity.setResultstr("result"); |
| | | //累计配置 |
| | | entity.setIscumulant(mmPredictItemDto.getIscumulant()); |
| | | entity.setCumuldivisor(mmPredictItemDto.getCumuldivisor()); |
| | | entity.setCumulpoint(mmPredictItemDto.getCumulpoint()); |
| | | mergeItemOutput.add(entity); |
| | | mmPredictItemDto.setMmItemOutputList(mergeItemOutput); |
| | | } |
| | |
| | | entity.setPointid(mmPredictItemDto.getPointId()); |
| | | entity.setResultName(mmPredictItemDto.getMmPredictItem().getItemname()); |
| | | entity.setResultstr("result"); |
| | | //累计配置 |
| | | entity.setIscumulant(mmPredictItemDto.getIscumulant()); |
| | | entity.setCumuldivisor(mmPredictItemDto.getCumuldivisor()); |
| | | entity.setCumulpoint(mmPredictItemDto.getCumulpoint()); |
| | | mmItemOutputList.add(entity); |
| | | mmPredictItemDto.setMmItemOutputList(mmItemOutputList); |
| | | } else { |
| | | mmPredictItemDto.getMmItemOutputList().forEach(e -> e.setPointid(mmPredictItemDto.getPointId())); |
| | | mmPredictItemDto.getMmItemOutputList().forEach(entity -> { |
| | | entity.setPointid(mmPredictItemDto.getPointId()); |
| | | //累计配置 |
| | | entity.setIscumulant(mmPredictItemDto.getIscumulant()); |
| | | entity.setCumuldivisor(mmPredictItemDto.getCumuldivisor()); |
| | | entity.setCumulpoint(mmPredictItemDto.getCumulpoint()); |
| | | }); |
| | | } |
| | | } |
| | | DmModuleItemEntity dmModuleItem = mmPredictItemDto.getDmModuleItem(); |
| | |
| | | mmPredictItemDto.setMmPredictMergeItem(mmPredictMergeItemService.getByItemid(id)); |
| | | if (!CollectionUtils.isEmpty(mmPredictItemDto.getMmItemOutputList())) { |
| | | mmPredictItemDto.setPointId(mmPredictItemDto.getMmItemOutputList().get(0).getPointid()); |
| | | //累计配置 |
| | | mmPredictItemDto.setIscumulant(mmPredictItemDto.getMmItemOutputList().get(0).getIscumulant()); |
| | | mmPredictItemDto.setCumuldivisor(mmPredictItemDto.getMmItemOutputList().get(0).getCumuldivisor()); |
| | | mmPredictItemDto.setCumulpoint(mmPredictItemDto.getMmItemOutputList().get(0).getCumulpoint()); |
| | | } |
| | | } |
| | | return mmPredictItemDto; |