From 2e44fce9f43aaec0efde31070f1729639dead3c5 Mon Sep 17 00:00:00 2001 From: weizhihong Date: Wed, 28 Sep 2022 09:58:56 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E9=A1=B9=E7=9B=AE=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=B1=9E=E6=80=A7=E4=BF=AE=E6=94=B9=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/club/joylink/rtss/entity/project/Project.java | 1 + .../joylink/rtss/services/project/ProjectServiceImpl.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/club/joylink/rtss/entity/project/Project.java b/src/main/java/club/joylink/rtss/entity/project/Project.java index 2380e94c2..beb202492 100644 --- a/src/main/java/club/joylink/rtss/entity/project/Project.java +++ b/src/main/java/club/joylink/rtss/entity/project/Project.java @@ -90,6 +90,7 @@ public class Project { /** * 反序列化设置信息 */ + @JsonIgnore private ProjectServerConfig projectServerConfig; public void setServerSetting(String serverSetting) { diff --git a/src/main/java/club/joylink/rtss/services/project/ProjectServiceImpl.java b/src/main/java/club/joylink/rtss/services/project/ProjectServiceImpl.java index 6fa9bc2fe..4da39218f 100644 --- a/src/main/java/club/joylink/rtss/services/project/ProjectServiceImpl.java +++ b/src/main/java/club/joylink/rtss/services/project/ProjectServiceImpl.java @@ -155,7 +155,7 @@ public class ProjectServiceImpl implements ProjectService { public void save(Project project) { project.setCreateTime(LocalDateTime.now()); project.setUpdateTime(LocalDateTime.now()); - project.setStatus(1); + project.setStatus(Project.EFFECT_PROJECT_STATUS); projectDAO.insert(project); } @@ -163,7 +163,7 @@ public class ProjectServiceImpl implements ProjectService { public void saveProjectView(ProjectView projectView) { projectView.setCreateTime(LocalDateTime.now()); projectView.setUpdateTime(LocalDateTime.now()); - projectView.setStatus(1); + projectView.setStatus(Project.EFFECT_PROJECT_STATUS); projectViewDAO.insert(projectView); }