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