| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得生产工序内容") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-process:query')") |
| | | public CommonResult<MesProProcessContentRespVO> getProcessContent(@RequestParam("id") Long id) { |
| | | MesProProcessContentDO content = processContentService.getProcessContent(id); |
| | | return success(BeanUtils.toBean(content, MesProProcessContentRespVO.class)); |
| | |
| | | @GetMapping("/list-by-process") |
| | | @Operation(summary = "获得生产工序内容列表(按工序编号)") |
| | | @Parameter(name = "processId", description = "工序编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-process:query')") |
| | | public CommonResult<List<MesProProcessContentRespVO>> getProcessContentListByProcessId(@RequestParam("processId") Long processId) { |
| | | List<MesProProcessContentDO> list = processContentService.getProcessContentListByProcessId(processId); |
| | | return success(BeanUtils.toBean(list, MesProProcessContentRespVO.class)); |