Commit 8ee9115a authored by lixiang's avatar lixiang

维护公告

parent e6c40953
...@@ -774,7 +774,7 @@ public class AdministratorServiceImpl implements AdministratorService { ...@@ -774,7 +774,7 @@ public class AdministratorServiceImpl implements AdministratorService {
@Override @Override
public void setNotice(Notice notice) { public void setNotice(Notice notice) {
Notice only = noticeRepository.findOneByNameIsNotNull(); Notice only = noticeRepository.findOneByNameIsNotNull();
if (notice != null) { if (only != null) {
only.setStarDate(notice.getStarDate()); only.setStarDate(notice.getStarDate());
only.setEndDate(notice.getEndDate()); only.setEndDate(notice.getEndDate());
only.setContent(notice.getContent()); only.setContent(notice.getContent());
......
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