| | |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public int addStandardTree(StandardTree standardTree) { |
| | | if(standardTree.getSample()!=null){ |
| | | List<StandardProductList> list = standardTreeMapper.getStandardProductListBySample(standardTree.getSample()); |
| | | List<StandardProductList> list = standardTreeMapper.getStandardProductListBySample(standardTree.getSampleType()); |
| | | for (StandardProductList standardProductList : list) { |
| | | standardProductList.setFactory(standardTree.getFactory()); |
| | | standardProductList.setLaboratory(standardTree.getLaboratory()); |