add 查询树形字典
This commit is contained in:
+13
-10
@@ -204,14 +204,16 @@ public class LawsTagController extends JeroController<LawsTag, ILawsTagService>
|
||||
/**
|
||||
* 逻辑删除
|
||||
*(0非固定字段 1固定字段 2字段固定,内部可配)
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "标签管理-通过id删除")
|
||||
@ApiOperation(value="标签管理-通过id删除", notes="标签管理-通过id删除")
|
||||
@GetMapping(value = "/logicDelete")
|
||||
@PostMapping(value = "/logicDelete")
|
||||
@RequiresPermissions("tag:logicDelete")
|
||||
public Result<String> logicDelete(@RequestParam(name="id",required=true) String id) {
|
||||
public Result<String> logicDelete(@RequestBody Map<String, String> map) {
|
||||
if(!map.containsKey("id") || StringUtils.isEmpty(map.get("id"))){
|
||||
return Result.error("请选择数据!");
|
||||
}
|
||||
String id = map.get("id");
|
||||
Result<String> result = new Result<>();
|
||||
LawsTag lawsTag = lawsTagService.queryById(id);
|
||||
if(StringUtils.isNotBlank(String.valueOf(lawsTag.getIsReadOnly()))) {
|
||||
@@ -230,16 +232,17 @@ public class LawsTagController extends JeroController<LawsTag, ILawsTagService>
|
||||
|
||||
/**
|
||||
* 批量逻辑删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "标签管理-批量删除")
|
||||
@ApiOperation(value="标签管理-批量删除", notes="标签管理-批量删除")
|
||||
@GetMapping(value = "/logicDeleteBatch")
|
||||
@PostMapping(value = "/logicDeleteBatch")
|
||||
@RequiresPermissions("tag:logicDeleteBatch")
|
||||
public Result<?> logicDeleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
Result<LawsTag> result = new Result<LawsTag>();
|
||||
public Result<?> logicDeleteBatch(@RequestBody Map<String, String> map) {
|
||||
if(!map.containsKey("ids") || StringUtils.isEmpty(map.get("ids"))){
|
||||
return Result.error("请选择数据!");
|
||||
}
|
||||
String ids = map.get("ids");
|
||||
Result<LawsTag> result = new Result<>();
|
||||
List<String> idList = Arrays.asList(ids.split(","));
|
||||
for(String list:idList){
|
||||
LawsTag midTag= lawsTagService.getById(list);
|
||||
|
||||
Reference in New Issue
Block a user