parentId处理
This commit is contained in:
parent
68b33b07dc
commit
d3348b5f15
@ -241,9 +241,6 @@ public class SaasFeatureResourceServiceImpl implements SaasFeatureResourceServic
|
||||
}
|
||||
|
||||
private void newResource(SaasFeatureResource resource, String parentPath) {
|
||||
if (resource.getParentId() != null && resource.getParentId() < 0) {
|
||||
resource.setParentId(0L);
|
||||
}
|
||||
featureResourceDao.save(resource);
|
||||
//path追加自身ID
|
||||
resource.setPath(StringUtils.isBlank(parentPath) ? resource.getId().toString() : parentPath + "," + resource.getId());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user