| | |
| | | @Autowired |
| | | private FlowStepInstanceService flowStepInstanceService; |
| | | |
| | | @PreAuthorize("hasAuthority('system:flowStepInstance:list')") |
| | | @PreAuthorize("hasAuthority('manager:task:list')") |
| | | @PostMapping("/flowStepInstance/page") |
| | | public R page(@RequestBody Map<String, Object> map) { |
| | | BaseParam baseParam = buildParam(map, BaseParam.class); |
| | |
| | | return R.ok().add(flowStepInstanceService.page(pageParam, pageParam.buildWrapper(true))); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('system:flowStepInstance:list')") |
| | | @PreAuthorize("hasAuthority('manager:task:list')") |
| | | @PostMapping("/flowStepInstance/list") |
| | | public R list(@RequestBody Map<String, Object> map) { |
| | | return R.ok().add(flowStepInstanceService.list()); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('system:flowStepInstance:list')") |
| | | @PreAuthorize("hasAuthority('manager:task:list')") |
| | | @PostMapping({"/flowStepInstance/many/{ids}", "/flowStepInstances/many/{ids}"}) |
| | | public R many(@PathVariable Long[] ids) { |
| | | return R.ok().add(flowStepInstanceService.listByIds(Arrays.asList(ids))); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('system:flowStepInstance:list')") |
| | | @PreAuthorize("hasAuthority('manager:task:list')") |
| | | @GetMapping("/flowStepInstance/{id}") |
| | | public R get(@PathVariable("id") Long id) { |
| | | return R.ok().add(flowStepInstanceService.getById(id)); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('system:flowStepInstance:save')") |
| | | @PreAuthorize("hasAuthority('manager:task:save')") |
| | | @OperationLog("Create 子流程步骤实例") |
| | | @PostMapping("/flowStepInstance/save") |
| | | public R save(@RequestBody FlowStepInstance flowStepInstance) { |
| | |
| | | return R.ok("Save Success").add(flowStepInstance); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('system:flowStepInstance:update')") |
| | | @PreAuthorize("hasAuthority('manager:task:update')") |
| | | @OperationLog("Update 子流程步骤实例") |
| | | @PostMapping("/flowStepInstance/update") |
| | | public R update(@RequestBody FlowStepInstance flowStepInstance) { |
| | |
| | | return R.ok("Update Success").add(flowStepInstance); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('system:flowStepInstance:remove')") |
| | | @PreAuthorize("hasAuthority('manager:task:remove')") |
| | | @OperationLog("Delete 子流程步骤实例") |
| | | @PostMapping("/flowStepInstance/remove/{ids}") |
| | | public R remove(@PathVariable Long[] ids) { |
| | |
| | | return R.ok("Delete Success").add(ids); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('system:flowStepInstance:list')") |
| | | @PreAuthorize("hasAuthority('manager:task:list')") |
| | | @PostMapping("/flowStepInstance/query") |
| | | public R query(@RequestParam(required = false) String condition) { |
| | | List<KeyValVo> vos = new ArrayList<>(); |
| | |
| | | return R.ok().add(vos); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('system:flowStepInstance:list')") |
| | | @PreAuthorize("hasAuthority('manager:task:list')") |
| | | @PostMapping("/flowStepInstance/export") |
| | | public void export(@RequestBody Map<String, Object> map, HttpServletResponse response) throws Exception { |
| | | ExcelUtil.build(ExcelUtil.create(flowStepInstanceService.list(), FlowStepInstance.class), response); |