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