修改bug

master
wangwei 2 years ago
parent e4d062b152
commit 5df7e2e95e

@ -112,10 +112,7 @@ public class ThrDeptController {
filterThrDeptRequest.setThirdSysFk(thrDeptEntity.getThirdSysFk());
filterThrDeptRequest.setStatus(thrDeptEntity.getStatus());
List<ThrDeptEntity> thrDeptEntities = thrDeptService.filterThrInvWarehouse(filterThrDeptRequest);
filterThrDeptRequest.setCode(thrDeptEntity.getCode());
filterThrDeptRequest.setName(null);
List<ThrDeptEntity> 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);

Loading…
Cancel
Save