|
@@ -172,6 +172,11 @@ public class ResourceController extends ControllerSupport {
|
|
|
throw new StatusException("100004", "无效的请求");
|
|
|
}
|
|
|
}
|
|
|
+ Long parentId = domain.getParentId();
|
|
|
+ if (-1 == parentId) {
|
|
|
+ domain.setParentId(null);
|
|
|
+ }
|
|
|
+
|
|
|
ResourceInfo info = new ResourceInfo();
|
|
|
BeanUtils.copyProperties(domain, info);
|
|
|
resourceService.addDir(info);
|