| | |
| | | @PostMapping("/edit") |
| | | @ApiOperation("编辑") |
| | | public R<Void> edit(@RequestBody @Validated BasicDataConfigUpdateDTO dto) { |
| | | if (dto.getId() <= 24) { |
| | | return R.fail("该基础数据配置不可操作"); |
| | | } |
| | | try { |
| | | tbBasicDataConfigService.edit(dto); |
| | | } catch (Exception e) { |
| | |
| | | @DeleteMapping("/delete") |
| | | @ApiOperation("删除") |
| | | public R<Void> delete(Long id) { |
| | | if (id <= 24) { |
| | | return R.fail("该基础数据配置不可操作"); |
| | | } |
| | | try { |
| | | tbBasicDataConfigService.delete(id); |
| | | } catch (Exception e) { |
| | |
| | | @PostMapping("show-hide") |
| | | @ApiOperation("隐藏显示操作") |
| | | public R<Void> showHide(@RequestBody ShowHideDTO dto) { |
| | | if (dto.getId() <= 24) { |
| | | return R.fail("该基础数据配置不可操作"); |
| | | } |
| | | try { |
| | | tbBasicDataConfigService.showHide(dto); |
| | | } catch (Exception e) { |