Commit ddfee367 by shenjunjie

Merge branch 'feature' into 'dev'

调整Project切换uTime bug

See merge request !57
parents 9b0b6f85 9bba5206
...@@ -148,7 +148,7 @@ public class ProjectServiceImpl implements ProjectService { ...@@ -148,7 +148,7 @@ public class ProjectServiceImpl implements ProjectService {
return false; return false;
} else { } else {
Update update = new Update(); Update update = new Update();
update.set("uTime", new Date()); update.set("uTime", System.currentTimeMillis());
update.set("isShow", !project.isShow()); update.set("isShow", !project.isShow());
projectDao.updateOneByIdWithField(pid, update); projectDao.updateOneByIdWithField(pid, update);
return true; return true;
...@@ -162,7 +162,7 @@ public class ProjectServiceImpl implements ProjectService { ...@@ -162,7 +162,7 @@ public class ProjectServiceImpl implements ProjectService {
ExceptionCast.cast(CommonCodeEnum.INVALID_PARAM, "项目不存在"); ExceptionCast.cast(CommonCodeEnum.INVALID_PARAM, "项目不存在");
} }
Update update = new Update(); Update update = new Update();
update.set("uTime", new Date()); update.set("uTime", System.currentTimeMillis());
update.set("isStart", !project.isStart()); update.set("isStart", !project.isStart());
projectDao.updateOneByIdWithField(pid, update); projectDao.updateOneByIdWithField(pid, update);
} }
......
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