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