| | |
| | | @GetMapping("/influenced-data") |
| | | @ApiOperation("隐藏字段,获取同步隐藏的基础数据") |
| | | public R<String> influencedData(@RequestParam Long id) { |
| | | if (id <= 88) { |
| | | throw new ServiceException("固定字段,不能操作"); |
| | | } |
| | | try { |
| | | return R.ok(tbFieldService.influencedData(id)); |
| | | } catch (Exception e) { |
| | |
| | | @PostMapping("/show-hide") |
| | | @ApiOperation("隐藏显示操作") |
| | | public R<Void> showHide(@RequestBody ShowHideDTO dto) { |
| | | if (dto.getId() <= 88) { |
| | | throw new ServiceException("固定字段,不能操作"); |
| | | } |
| | | try { |
| | | tbFieldService.showHide(dto); |
| | | } catch (Exception e) { |
| | |
| | | @PostMapping("/edit") |
| | | @ApiOperation("编辑字段") |
| | | public R<Void> editField(@RequestBody @Validated FieldUpdateDTO dto) { |
| | | if (dto.getId() <= 88) { |
| | | throw new ServiceException("固定字段,不能操作"); |
| | | } |
| | | try { |
| | | tbFieldService.editField(dto); |
| | | } catch (Exception e) { |
| | |
| | | @DeleteMapping("/delete") |
| | | @ApiOperation("删除") |
| | | public R<Void> delete(@RequestParam Long id) { |
| | | if (id <= 88) { |
| | | throw new ServiceException("固定字段,不能操作"); |
| | | } |
| | | try { |
| | | tbFieldService.removeById(id); |
| | | } catch (Exception e) { |