| | |
| | | //判断是哪种类型的审批,返回不同的类型 具体数据 |
| | | Integer type = getInfoById(id).getType(); |
| | | if(type.intValue() == EnumWorksheetType.ProductBom.getType()) { |
| | | return mainMapper.getLinkList(id); |
| | | WorksheetMain main = mainMapper.getLinkList(id); |
| | | List<ProductBomApproving> pbaList = approvingService.getList(main.getProductApproving().getId()); |
| | | main.getProductApproving().setBomApprovingList(pbaList); |
| | | return main; |
| | | }else if(type.intValue() == EnumWorksheetType.Material.getType()){ |
| | | return mainMapper.getLinkListWithMaterials(id); |
| | | }else{ //物料-产品 |