|
@@ -70,7 +70,7 @@ public class SceneBackController {
|
|
|
@PostMapping("/move")
|
|
|
@SysLog(logType = "場景管理",value = "移動")
|
|
|
public ResultData move (@RequestBody FdkkSceneFolderRequest param, @RequestHeader String token ){
|
|
|
- if(param.getParentId().equals(param.getId())){
|
|
|
+ if(param.getParentId() != null && param.getParentId().equals(param.getId())){
|
|
|
throw new BusinessException(ResultCode.MOVE_FOLDER_ERROR);
|
|
|
}
|
|
|
fdkkSceneService.move(param,token);
|