| | |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.mdm.program.entity.NcProgram; |
| | | import org.springblade.mdm.program.service.NcProgramService; |
| | | import org.springblade.mdm.program.service.ProcessProgRefService; |
| | | import org.springblade.mdm.program.vo.NcNodeProgramQueryVO; |
| | | import org.springblade.mdm.program.vo.NcProgramUploadVO; |
| | | import org.springblade.mdm.program.vo.NcProgramVO; |
| | |
| | | public class NcProgramController { |
| | | |
| | | private final NcProgramService ncProgramService; |
| | | |
| | | private final ProcessProgRefService ncProcessProgRefService; |
| | | @PostMapping("/upload") |
| | | @Operation(summary = "上传文件", description = "上传程序/附件文件") |
| | | public R<Boolean> upload(NcProgramUploadVO uploadVO) { |
| | |
| | | IPage<NcProgramVO> pages = ncProgramService.pageQuery(query); |
| | | return R.data(pages); |
| | | } |
| | | |
| | | @GetMapping("/list-by-process") |
| | | @Operation(summary = "流程已选程序文件列表", description = "流程已选程序列表") |
| | | public R<List<NcProgramVO>> listByProcess(@Parameter(description="所属节点ID")@RequestParam String processInstanceId) { |
| | | return R.data(ncProcessProgRefService.listByProcess(processInstanceId)); |
| | | } |
| | | } |