Commit 8ff04d3a authored by 赵啸非's avatar 赵啸非

修改同步

parent da38b03d
...@@ -62,7 +62,7 @@ public class DeptController extends BaseCRUDJsonBodyMappingController<DeptServic ...@@ -62,7 +62,7 @@ public class DeptController extends BaseCRUDJsonBodyMappingController<DeptServic
} }
@PostMapping("list/exclude") @PostMapping("list/exclude")
public String excludeList(@RequestParam(name = "id") Long id) { public String excludeList(@RequestBody DeptEntity deptEntity) {
Map<String, Object> model = new HashMap<>(); Map<String, Object> model = new HashMap<>();
JSONObject ret = new JSONObject(); JSONObject ret = new JSONObject();
String busiDesc = "查询" + this.getModuleDesc(); String busiDesc = "查询" + this.getModuleDesc();
...@@ -70,7 +70,7 @@ public class DeptController extends BaseCRUDJsonBodyMappingController<DeptServic ...@@ -70,7 +70,7 @@ public class DeptController extends BaseCRUDJsonBodyMappingController<DeptServic
int code = VALUE_RESULT_SUCCESS; int code = VALUE_RESULT_SUCCESS;
try { try {
List<DeptEntity> collect = this.service.find(new DeptQuery()).stream().map(item -> { List<DeptEntity> collect = this.service.find(new DeptQuery()).stream().map(item -> {
if (item.getId().intValue() == id || ArrayUtils.contains(StringUtils.split(item.getAncestors(), ","), id + "")) { if (item.getId().intValue() == deptEntity.getId() || ArrayUtils.contains(StringUtils.split(item.getAncestors(), ","), deptEntity.getId() + "")) {
return null; return null;
} }
return item; return item;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment