From f52042de815101fbf0c7027228145f98316cc56a Mon Sep 17 00:00:00 2001 From: shijie <648688341@qq.com> Date: Mon, 27 Jul 2020 16:33:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=96=E6=9D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/Project_ManagementController.java | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/yipin/liuwanr/controller/Project_ManagementController.java b/src/main/java/com/yipin/liuwanr/controller/Project_ManagementController.java index 5cbccf1..4ce1274 100644 --- a/src/main/java/com/yipin/liuwanr/controller/Project_ManagementController.java +++ b/src/main/java/com/yipin/liuwanr/controller/Project_ManagementController.java @@ -291,8 +291,7 @@ public class Project_ManagementController { } return resp; } - - + /** * 修改项目管理信息 * @param vo @@ -314,11 +313,15 @@ public class Project_ManagementController { resp.setMessage("pooints cannot be empty"); return resp; } - if(roles.isEmpty()||roles.size()<=0) { - resp.setStatus(300); - resp.setMessage("roleId cannot be empty"); - return resp; + + if (pro.getIsstartexperimental()==0){//开启实验数据 + if(roles.isEmpty()||roles.size()<=0) { + resp.setStatus(300); + resp.setMessage("roleId cannot be empty"); + return resp; + } } + HashMap ret = service.updateProjectManagement(pro,points,roles); int status = (int) ret.get("retcode"); if (status == 200) {