| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得工艺路线工序") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-route:query')") |
| | | public CommonResult<MesProRouteProcessRespVO> getRouteProcess(@RequestParam("id") Long id) { |
| | | MesProRouteProcessDO routeProcess = routeProcessService.getRouteProcess(id); |
| | | return success(buildRouteProcessRespVO(routeProcess)); |
| | |
| | | @GetMapping("/list-by-product") |
| | | @Operation(summary = "按产品获得工序列表", description = "根据产品查找关联的工艺路线,返回该路线的工序列表(含各工序的投料BOM)") |
| | | @Parameter(name = "productId", description = "产品编号", required = true, example = "1") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-route:query')") |
| | | public CommonResult<List<MesProRouteProcessRespVO>> getRouteProcessListByProduct(@RequestParam("productId") Long productId) { |
| | | List<MesProRouteProcessDO> list = routeProcessService.getRouteProcessListByProductId(productId); |
| | | List<MesProRouteProcessRespVO> result = buildRouteProcessRespVOList(list); |
| | |
| | | @GetMapping("/list-by-route") |
| | | @Operation(summary = "按工艺路线获得工序列表") |
| | | @Parameter(name = "routeId", description = "工艺路线编号", required = true, example = "1") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-route:query')") |
| | | public CommonResult<List<MesProRouteProcessRespVO>> getRouteProcessListByRoute(@RequestParam("routeId") Long routeId) { |
| | | List<MesProRouteProcessDO> list = routeProcessService.getRouteProcessListByRouteId(routeId); |
| | | return success(buildRouteProcessRespVOList(list)); |
| | |
| | | @Operation(summary = "按工艺路线+工序获得工序配置") |
| | | @Parameter(name = "routeId", description = "工艺路线编号", required = true, example = "1") |
| | | @Parameter(name = "processId", description = "工序编号", required = true, example = "1") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-route:query')") |
| | | public CommonResult<MesProRouteProcessRespVO> getRouteProcessByRouteAndProcess( |
| | | @RequestParam("routeId") Long routeId, |
| | | @RequestParam("processId") Long processId) { |