diff --git a/src/main/java/com/glxp/api/controller/thrsys/ThrDeptController.java b/src/main/java/com/glxp/api/controller/thrsys/ThrDeptController.java index dd0ed9164..b5c635822 100644 --- a/src/main/java/com/glxp/api/controller/thrsys/ThrDeptController.java +++ b/src/main/java/com/glxp/api/controller/thrsys/ThrDeptController.java @@ -112,10 +112,7 @@ public class ThrDeptController { filterThrDeptRequest.setThirdSysFk(thrDeptEntity.getThirdSysFk()); filterThrDeptRequest.setStatus(thrDeptEntity.getStatus()); List thrDeptEntities = thrDeptService.filterThrInvWarehouse(filterThrDeptRequest); - filterThrDeptRequest.setCode(thrDeptEntity.getCode()); - filterThrDeptRequest.setName(null); - List thrDeptEntities1= thrDeptService.filterThrInvWarehouse(filterThrDeptRequest); - if(thrDeptEntities.size()==0 && thrDeptEntities1.size()==0){ + if(thrDeptEntities.size()==0 ){ thrDeptEntity.setPid(null); // 不能修改父级 pid thrDeptEntity.setUpdateTime(new Date()); boolean b = thrDeptService.updateInvWarehouse(thrDeptEntity);