| | |
| | | */ |
| | | @GetMapping("/categories") |
| | | @ApiOperation(value = "获取分类列表",notes = "一级分类id传0,二级分类传一级分类id,三级分类同理") |
| | | public R<List<FieldCategoryVO>> queryFieldCategories(@RequestParam Integer id) { |
| | | public R<List<FieldCategoryVO>> queryFieldCategories(@RequestParam Long id) { |
| | | try { |
| | | return R.ok(tbFieldCategoryService.queryFieldCategories(id)); |
| | | } catch (Exception e) { |
| | |
| | | |
| | | @GetMapping("/influenced-data") |
| | | @ApiOperation("隐藏字段,获取同步隐藏的基础数据") |
| | | public R<String> influencedData(@RequestParam Integer id) { |
| | | public R<String> influencedData(@RequestParam Long id) { |
| | | try { |
| | | return R.ok(tbFieldService.influencedData(id)); |
| | | } catch (Exception e) { |
| | |
| | | */ |
| | | @GetMapping("/get-details") |
| | | @ApiOperation("获取详情") |
| | | public R<FieldVO> getDetails(@RequestParam Integer id){ |
| | | public R<FieldVO> getDetails(@RequestParam Long id){ |
| | | try { |
| | | TbField field = tbFieldService.getById(id); |
| | | return R.ok(BeanUtils.copyBean(field, FieldVO.class)); |
| | |
| | | */ |
| | | @DeleteMapping("/delete") |
| | | @ApiOperation("删除") |
| | | public R<Void> delete(@RequestParam Integer id){ |
| | | public R<Void> delete(@RequestParam Long id){ |
| | | try { |
| | | tbFieldService.removeById(id); |
| | | } catch (Exception e) { |