|
@@ -58,7 +58,7 @@ public class DictInfoController extends BladeController {
|
|
* 新增或修改 参数信息表
|
|
* 新增或修改 参数信息表
|
|
*/
|
|
*/
|
|
@PostMapping("/submit")
|
|
@PostMapping("/submit")
|
|
- @ApiOperationSupport(order = 6)
|
|
|
|
|
|
+ @ApiOperationSupport(order = 1)
|
|
@ApiOperation(value = "新增或修改", notes = "传入dictInfo")
|
|
@ApiOperation(value = "新增或修改", notes = "传入dictInfo")
|
|
public R submit(@Valid @RequestBody DictInfo dictInfo) {
|
|
public R submit(@Valid @RequestBody DictInfo dictInfo) {
|
|
return R.status(dictInfoService.saveOrUpdate(dictInfo));
|
|
return R.status(dictInfoService.saveOrUpdate(dictInfo));
|
|
@@ -69,21 +69,21 @@ public class DictInfoController extends BladeController {
|
|
* 删除 参数信息表
|
|
* 删除 参数信息表
|
|
*/
|
|
*/
|
|
@PostMapping("/remove")
|
|
@PostMapping("/remove")
|
|
- @ApiOperationSupport(order = 7)
|
|
|
|
|
|
+ @ApiOperationSupport(order = 2)
|
|
@ApiOperation(value = "逻辑删除", notes = "传入ids")
|
|
@ApiOperation(value = "逻辑删除", notes = "传入ids")
|
|
public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
|
|
public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
|
|
- return R.status(dictInfoService.deleteLogic(Func.toLongList(ids)));
|
|
|
|
|
|
+ return R.status(dictInfoService.removeBatchByIds(Func.toLongList(ids)));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
* 获取字典
|
|
* 获取字典
|
|
*/
|
|
*/
|
|
- @GetMapping("/dictionary")
|
|
|
|
- @ApiOperationSupport(order = 8)
|
|
|
|
- @ApiOperation(value = "获取字典", notes = "获取字典")
|
|
|
|
- public R<List<DictBiz>> dictionary(String code) {
|
|
|
|
- List<DictBiz> tree = dictInfoService.getList(code, "notRoot");
|
|
|
|
|
|
+ @GetMapping("/get-dict-info")
|
|
|
|
+ @ApiOperationSupport(order = 3)
|
|
|
|
+ @ApiOperation(value = "参数信息列表", notes = "参数信息列表")
|
|
|
|
+ public R<List<DictInfo>> getDictInfo(String code) {
|
|
|
|
+ List<DictInfo> tree = dictInfoService.getDictInfo(code, "notRoot");
|
|
return R.data(tree);
|
|
return R.data(tree);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -93,10 +93,10 @@ public class DictInfoController extends BladeController {
|
|
@GetMapping("/parent-list")
|
|
@GetMapping("/parent-list")
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParam(name = "code", value = "字典编号", paramType = "query", dataType = "string"),
|
|
@ApiImplicitParam(name = "code", value = "字典编号", paramType = "query", dataType = "string"),
|
|
- @ApiImplicitParam(name = "dictValue", value = "字典名称", paramType = "query", dataType = "string")
|
|
|
|
|
|
+ @ApiImplicitParam(name = "type", value = "类型", paramType = "query", dataType = "Integer")
|
|
})
|
|
})
|
|
- @ApiOperationSupport(order = 3)
|
|
|
|
- @ApiOperation(value = "列表", notes = "传入dict")
|
|
|
|
|
|
+ @ApiOperationSupport(order = 4)
|
|
|
|
+ @ApiOperation(value = "顶级列表", notes = "顶级列表")
|
|
public R<IPage<DictInfoVO>> parentList(@ApiIgnore @RequestParam Map<String, Object> dict, Query query) {
|
|
public R<IPage<DictInfoVO>> parentList(@ApiIgnore @RequestParam Map<String, Object> dict, Query query) {
|
|
return R.data(dictInfoService.parentList(dict, query));
|
|
return R.data(dictInfoService.parentList(dict, query));
|
|
}
|
|
}
|
|
@@ -107,11 +107,11 @@ public class DictInfoController extends BladeController {
|
|
@GetMapping("/child-list")
|
|
@GetMapping("/child-list")
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParam(name = "code", value = "字典编号", paramType = "query", dataType = "string"),
|
|
@ApiImplicitParam(name = "code", value = "字典编号", paramType = "query", dataType = "string"),
|
|
- @ApiImplicitParam(name = "dictValue", value = "字典名称", paramType = "query", dataType = "string"),
|
|
|
|
- @ApiImplicitParam(name = "parentId", value = "字典名称", paramType = "query", dataType = "string")
|
|
|
|
|
|
+ @ApiImplicitParam(name = "parentId", value = "字典名称", paramType = "query", dataType = "string"),
|
|
|
|
+ @ApiImplicitParam(name = "type", value = "类型", paramType = "query", dataType = "Integer")
|
|
})
|
|
})
|
|
- @ApiOperationSupport(order = 4)
|
|
|
|
- @ApiOperation(value = "列表", notes = "传入dict")
|
|
|
|
|
|
+ @ApiOperationSupport(order = 5)
|
|
|
|
+ @ApiOperation(value = "子列表", notes = "子列表")
|
|
public R<List<DictInfoVO>> childList(@ApiIgnore @RequestParam Map<String, Object> dict, @RequestParam(required = false, defaultValue = "-1") Long parentId) {
|
|
public R<List<DictInfoVO>> childList(@ApiIgnore @RequestParam Map<String, Object> dict, @RequestParam(required = false, defaultValue = "-1") Long parentId) {
|
|
return R.data(dictInfoService.childList(dict, parentId));
|
|
return R.data(dictInfoService.childList(dict, parentId));
|
|
}
|
|
}
|