Commit 5a0fb0f5 authored by mcb's avatar mcb

commit

parent d750eed8
...@@ -249,9 +249,9 @@ public class OfflineSynchController { ...@@ -249,9 +249,9 @@ public class OfflineSynchController {
if (StringUtils.isEmpty(newSynchTaskReq.getTreeName())) { if (StringUtils.isEmpty(newSynchTaskReq.getTreeName())) {
return JsonResult.error(ResultCode.PARAMS_ERROR, "任务名称不能为空"); return JsonResult.error(ResultCode.PARAMS_ERROR, "任务名称不能为空");
} }
if (StringUtils.isEmpty(newSynchTaskReq.getType())) { /*if (StringUtils.isEmpty(newSynchTaskReq.getType())) {
return JsonResult.error(ResultCode.PARAMS_ERROR, "任务类型不能为空"); return JsonResult.error(ResultCode.PARAMS_ERROR, "任务类型不能为空");
} }*/
if (StringUtils.isEmpty(newSynchTaskReq.getProjectId())) { if (StringUtils.isEmpty(newSynchTaskReq.getProjectId())) {
return JsonResult.error(ResultCode.PARAMS_ERROR, "目标文件夹不能为空"); return JsonResult.error(ResultCode.PARAMS_ERROR, "目标文件夹不能为空");
} }
......
...@@ -74,6 +74,7 @@ public class DmpNavigationTreeServiceImpl extends BaseService implements DmpNavi ...@@ -74,6 +74,7 @@ public class DmpNavigationTreeServiceImpl extends BaseService implements DmpNavi
dmpNavigationTree.setCreateUserId(getHttpRequestUserId(null).toString()); dmpNavigationTree.setCreateUserId(getHttpRequestUserId(null).toString());
// 创建时间 // 创建时间
dmpNavigationTree.setCreateTime(new Date()); dmpNavigationTree.setCreateTime(new Date());
dmpNavigationTree.setIsLevel("0");
this.dmpNavigationTreeDao.insertSelective(dmpNavigationTree); this.dmpNavigationTreeDao.insertSelective(dmpNavigationTree);
return dmpNavigationTree; return dmpNavigationTree;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment