|
|
@ -59,9 +59,9 @@ public class BmsRegionServiceImpl extends ServiceImpl<BmsRegionMapper,BmsRegion> |
|
|
|
BmsRegion ori = this.getById(param.getId()); |
|
|
|
param = this.flushSetLevel(param); |
|
|
|
boolean changePid = !ori.getPid().equals(param.getPid()); |
|
|
|
if(changePid){ |
|
|
|
Assert.throwEx("当前版本限制上下级变更"); |
|
|
|
} |
|
|
|
// if(changePid){
|
|
|
|
// Assert.throwEx("当前版本限制上下级变更");
|
|
|
|
// }
|
|
|
|
boolean b = this.updateById(param); |
|
|
|
if(!ori.getName().equals(param.getName())||changePid) { |
|
|
|
BmsRegion parentRegion = this.updatePathByPid(param.getId()); |
|
|
|