| | |
| | | @Autowired |
| | | private ProductBomApprovingService approvingService; |
| | | |
| | | @Autowired |
| | | private ProductBomService bomService; |
| | | |
| | | @Transactional |
| | | public boolean submit(WorksheetMain main, DocUser user) { |
| | | List<ProductBomApproving> bomList = main.getApprovingBomList(); |
| | |
| | | return false; |
| | | } |
| | | //产品bom/图纸图片提交 |
| | | |
| | | //查询部件最新的版本号 |
| | | Integer version = bomService.getProduct(bomList.get(0).getParentModel()).getVersion(); |
| | | if(version==null){ |
| | | version = 0; |
| | | } |
| | | Integer finalVersion = version; |
| | | bomList.forEach(bom->{ |
| | | bom.setMainId(main.getId()); |
| | | bom.setVersion(finalVersion+1); |
| | | }); |
| | | approvingService.insert(bomList); |
| | | return true; |
| | |
| | | |
| | | public Response<PageInfo<WorksheetMain>> getHandledListPage(DocUser user, int pageNum, int pageSize) { |
| | | PageHelper.startPage(pageNum,pageSize); |
| | | List<WorksheetMain> worksheetMainList = linkService.getInfoList2(user.getId(),1); |
| | | List<WorksheetMain> worksheetMainList = linkService.getInfoList3(user.getId(),1); |
| | | PageInfo<WorksheetMain> pageInfo = new PageInfo<>(worksheetMainList); |
| | | return new Response<PageInfo<WorksheetMain>>().set(1,pageInfo); |
| | | } |