| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得工艺路线产品 BOM") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-route:query')") |
| | | public CommonResult<MesProRouteProductBomRespVO> getRouteProductBom(@RequestParam("id") Long id) { |
| | | MesProRouteProductBomDO routeProductBom = routeProductBomService.getRouteProductBom(id); |
| | | return success(buildRouteProductBomRespVO(routeProductBom)); |
| | |
| | | @Parameter(name = "processId", description = "工序编号", example = "1"), |
| | | @Parameter(name = "productId", description = "产品物料编号", example = "1") |
| | | }) |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-route:query')") |
| | | public CommonResult<List<MesProRouteProductBomRespVO>> getRouteProductBomList( |
| | | @RequestParam("routeId") Long routeId, |
| | | @RequestParam(value = "processId", required = false) Long processId, |