| | |
| | | } |
| | | |
| | | public WorksheetMain getLinkList(int id) { |
| | | return mainMapper.getLinkList(id); |
| | | //判断是哪种类型的审批,返回不同的类型 具体数据 |
| | | Integer type = getInfoById(id).getType(); |
| | | if(type.intValue() == EnumWorksheetType.ProductBom.getType()) { |
| | | return mainMapper.getLinkList(id); |
| | | }else if(type.intValue() == EnumWorksheetType.Component.getType()){ |
| | | return mainMapper.getLinkListWithComponents(id); |
| | | }else{ //散装件-产品 |
| | | return mainMapper.getLinkListWithComponentProducts(id); |
| | | } |
| | | } |
| | | |
| | | public Response<PageInfo<WorksheetMain>> getApprovingListPage(DocUser user, int pageNum, int pageSize) { |