From 1e46fe84768c711228ec7b6fe48dbf8bc6cee9f9 Mon Sep 17 00:00:00 2001 From: 176yunxuan <362612387@qq.com~> Date: Fri, 19 Apr 2024 13:18:39 +0800 Subject: [PATCH 1/4] =?UTF-8?q?fix:=E5=AD=90=E6=A8=A1=E5=9D=97=E8=BF=94?= =?UTF-8?q?=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/jsl/oa/model/vodata/ProjectWorkAndNameVO.java | 2 -- .../java/com/jsl/oa/services/impl/ModuleServiceImpl.java | 6 +----- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main/java/com/jsl/oa/model/vodata/ProjectWorkAndNameVO.java b/src/main/java/com/jsl/oa/model/vodata/ProjectWorkAndNameVO.java index 6c28b64..d09eaf1 100644 --- a/src/main/java/com/jsl/oa/model/vodata/ProjectWorkAndNameVO.java +++ b/src/main/java/com/jsl/oa/model/vodata/ProjectWorkAndNameVO.java @@ -15,11 +15,9 @@ import java.sql.Timestamp; public class ProjectWorkAndNameVO { private Long id; - private String childSystemName; private Long projectChildId; private Long principalId; private String principalUser; - private Integer cycle; private Integer workLoad; private String name; private String description; diff --git a/src/main/java/com/jsl/oa/services/impl/ModuleServiceImpl.java b/src/main/java/com/jsl/oa/services/impl/ModuleServiceImpl.java index 7ba389b..34f0828 100644 --- a/src/main/java/com/jsl/oa/services/impl/ModuleServiceImpl.java +++ b/src/main/java/com/jsl/oa/services/impl/ModuleServiceImpl.java @@ -76,12 +76,8 @@ public class ModuleServiceImpl implements ModuleService { ProjectWorkAndNameVO projectWorkAndNameVO = new ProjectWorkAndNameVO(); Processing.copyProperties(projectWorkDO, projectWorkAndNameVO); // 添加负责人和子系统名称 - projectWorkAndNameVO. - setChildSystemName(projectDAO.getProjectWorkerById(projectWorkDO.getProjectChildId()).getName()) - .setPrincipalUser(userDAO.getUserById(projectWorkDO.getPrincipalId()).getUsername()); - + projectWorkAndNameVO.setPrincipalUser(userDAO.getUserById(projectWorkDO.getPrincipalId()).getUsername()); projectWorkAndNameVOS.add(projectWorkAndNameVO); - } return ResultUtil.success(projectWorkAndNameVOS); } From 50050f820fd161d68d84a6947fca2e806d386151 Mon Sep 17 00:00:00 2001 From: 176yunxuan <362612387@qq.com~> Date: Fri, 19 Apr 2024 18:41:36 +0800 Subject: [PATCH 2/4] =?UTF-8?q?bug:=E5=AD=90=E6=A8=A1=E5=9D=97=E5=AD=90?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E6=9F=A5=E8=AF=A2=E5=92=8C=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jsl/oa/config/startup/PermissionList.java | 12 ++++---- .../jsl/oa/controllers/ModuleController.java | 2 +- .../java/com/jsl/oa/mapper/ModuleMapper.java | 2 +- .../java/com/jsl/oa/mapper/ProjectMapper.java | 4 +-- .../jsl/oa/model/dodata/ProjectModuleDO.java | 1 + .../oa/model/vodata/ProjectModuleAddVO.java | 2 ++ .../oa/model/vodata/ProjectWorkAndNameVO.java | 4 +-- .../com/jsl/oa/services/ModuleService.java | 2 +- .../oa/services/impl/ModuleServiceImpl.java | 30 +++++++++++++++---- src/main/resources/mysql/oa_project.sql | 2 +- src/main/resources/mysql/oa_project_child.sql | 2 ++ .../resources/mysql/oa_project_modules.sql | 7 +++-- 12 files changed, 47 insertions(+), 23 deletions(-) diff --git a/src/main/java/com/jsl/oa/config/startup/PermissionList.java b/src/main/java/com/jsl/oa/config/startup/PermissionList.java index 2bacdfa..29615c9 100644 --- a/src/main/java/com/jsl/oa/config/startup/PermissionList.java +++ b/src/main/java/com/jsl/oa/config/startup/PermissionList.java @@ -23,22 +23,22 @@ public class PermissionList { permissionList.add(new PermissionVO("info:get_header_image", "获取头部图片")); permissionList.add(new PermissionVO("info:edit_header_image", "编辑头部图片")); permissionList.add(new PermissionVO("info:delete_header_image", "删除头部图片")); - permissionList.add(new PermissionVO("project:child_add", "增加子系统")); - permissionList.add(new PermissionVO("project:module_add", "增加子模块")); + permissionPrincipal.add(new PermissionVO("project:child:add", "增加子系统")); + permissionPrincipal.add(new PermissionVO("project:module:add", "增加子模块")); permissionPrincipal.add(new PermissionVO("auth:change_password", "修改密码")); permissionPrincipal.add(new PermissionVO("info:get_header_image", "获取头部图片")); permissionPrincipal.add(new PermissionVO("info:edit_header_image", "编辑头部图片")); permissionPrincipal.add(new PermissionVO("info:delete_header_image", "删除头部图片")); permissionPrincipal.add(new PermissionVO("project:add", "增加项目")); - permissionPrincipal.add(new PermissionVO("project:child_add", "增加子系统")); - permissionPrincipal.add(new PermissionVO("project:module_add", "增加子模块")); + permissionPrincipal.add(new PermissionVO("project:child:add", "增加子系统")); + permissionPrincipal.add(new PermissionVO("project:module:add", "增加子模块")); permissionDeveloper.add(new PermissionVO("auth:change_password", "修改密码")); permissionDeveloper.add(new PermissionVO("info:get_header_image", "获取头部图片")); permissionDeveloper.add(new PermissionVO("info:edit_header_image", "编辑头部图片")); permissionDeveloper.add(new PermissionVO("info:delete_header_image", "删除头部图片")); - permissionDeveloper.add(new PermissionVO("project:child_add", "增加子系统")); - permissionDeveloper.add(new PermissionVO("project:module_add", "增加子模块")); + permissionPrincipal.add(new PermissionVO("project:child:add", "增加子系统")); + permissionPrincipal.add(new PermissionVO("project:module:add", "增加子模块")); } } diff --git a/src/main/java/com/jsl/oa/controllers/ModuleController.java b/src/main/java/com/jsl/oa/controllers/ModuleController.java index ccb27ba..6bc530f 100644 --- a/src/main/java/com/jsl/oa/controllers/ModuleController.java +++ b/src/main/java/com/jsl/oa/controllers/ModuleController.java @@ -44,7 +44,7 @@ public class ModuleController { * @return 子模块列表 */ @GetMapping("/module/get/min") - public BaseResponse moduleGetBySysId(@RequestParam Integer sysId, HttpServletRequest request) { + public BaseResponse moduleGetBySysId(@RequestParam Long sysId, HttpServletRequest request) { return moduleService.getBySysId(sysId, request); } diff --git a/src/main/java/com/jsl/oa/mapper/ModuleMapper.java b/src/main/java/com/jsl/oa/mapper/ModuleMapper.java index 11097e0..c93f0fa 100644 --- a/src/main/java/com/jsl/oa/mapper/ModuleMapper.java +++ b/src/main/java/com/jsl/oa/mapper/ModuleMapper.java @@ -15,7 +15,7 @@ public interface ModuleMapper { List getByProjectId(Integer projectId, Long userId, int is); - List getBySysId(Integer sysId, Long userId, int is); + List getBySysId(Long sysId, Long userId, int is); @Select("select principal_id from organize_oa.oa_project where id=#{projectId}") Long getPidByProjectid(Integer projectId); diff --git a/src/main/java/com/jsl/oa/mapper/ProjectMapper.java b/src/main/java/com/jsl/oa/mapper/ProjectMapper.java index 510a65b..1690f5f 100644 --- a/src/main/java/com/jsl/oa/mapper/ProjectMapper.java +++ b/src/main/java/com/jsl/oa/mapper/ProjectMapper.java @@ -31,9 +31,9 @@ public interface ProjectMapper { void projectWorkAdd(ProjectChildAddVO projectChildAddVO); @Insert("insert into organize_oa.oa_project_modules (project_child_id, name, principal_id," - + " work_load, description, status, dead_line) " + + " work_load, description, status, dead_line,cycle) " + "value (#{projectChildId},#{name},#{principalId},#{workLoad}," - + "#{description},#{status},#{deadLine})") + + "#{description},#{status},#{deadLine},#{cycle})") void projectModuleAdd(ProjectModuleAddVO projectModuleAddVO); void projectEdit(ProjectDO projectEdit); diff --git a/src/main/java/com/jsl/oa/model/dodata/ProjectModuleDO.java b/src/main/java/com/jsl/oa/model/dodata/ProjectModuleDO.java index 436347b..774073f 100644 --- a/src/main/java/com/jsl/oa/model/dodata/ProjectModuleDO.java +++ b/src/main/java/com/jsl/oa/model/dodata/ProjectModuleDO.java @@ -13,6 +13,7 @@ public class ProjectModuleDO { private Long id; private Long projectChildId; private Long principalId; + private Integer cycle; private Integer workLoad; private String description; private String name; diff --git a/src/main/java/com/jsl/oa/model/vodata/ProjectModuleAddVO.java b/src/main/java/com/jsl/oa/model/vodata/ProjectModuleAddVO.java index 23bd4e2..48e4d74 100644 --- a/src/main/java/com/jsl/oa/model/vodata/ProjectModuleAddVO.java +++ b/src/main/java/com/jsl/oa/model/vodata/ProjectModuleAddVO.java @@ -16,6 +16,8 @@ public class ProjectModuleAddVO { private Long principalId; @NotNull(message = "工作量不能为空") private Integer workLoad; + @NotNull(message = "周期不能为空") + private Integer cycle; @NotNull(message = "名字不能为空") private String name; private String description; diff --git a/src/main/java/com/jsl/oa/model/vodata/ProjectWorkAndNameVO.java b/src/main/java/com/jsl/oa/model/vodata/ProjectWorkAndNameVO.java index d09eaf1..0469720 100644 --- a/src/main/java/com/jsl/oa/model/vodata/ProjectWorkAndNameVO.java +++ b/src/main/java/com/jsl/oa/model/vodata/ProjectWorkAndNameVO.java @@ -18,14 +18,12 @@ public class ProjectWorkAndNameVO { private Long projectChildId; private Long principalId; private String principalUser; + private Integer cycle; private Integer workLoad; private String name; private String description; - private Integer isDelete; private String status; private Timestamp deadLine; - private Timestamp beginTime; - private Timestamp completeTime; } diff --git a/src/main/java/com/jsl/oa/services/ModuleService.java b/src/main/java/com/jsl/oa/services/ModuleService.java index 154aa73..ea43981 100644 --- a/src/main/java/com/jsl/oa/services/ModuleService.java +++ b/src/main/java/com/jsl/oa/services/ModuleService.java @@ -8,7 +8,7 @@ import javax.servlet.http.HttpServletRequest; public interface ModuleService { BaseResponse getByProjectId(Integer projectId, HttpServletRequest request); - BaseResponse getBySysId(Integer sysId, HttpServletRequest request); + BaseResponse getBySysId(Long sysId, HttpServletRequest request); BaseResponse deleteById(HttpServletRequest request, Long id); } diff --git a/src/main/java/com/jsl/oa/services/impl/ModuleServiceImpl.java b/src/main/java/com/jsl/oa/services/impl/ModuleServiceImpl.java index 34f0828..d249854 100644 --- a/src/main/java/com/jsl/oa/services/impl/ModuleServiceImpl.java +++ b/src/main/java/com/jsl/oa/services/impl/ModuleServiceImpl.java @@ -1,5 +1,7 @@ package com.jsl.oa.services.impl; +import com.google.gson.Gson; +import com.google.gson.JsonObject; import com.jsl.oa.dao.ProjectDAO; import com.jsl.oa.dao.RoleDAO; import com.jsl.oa.dao.UserDAO; @@ -21,6 +23,8 @@ import javax.servlet.http.HttpServletRequest; import java.util.ArrayList; import java.util.List; +import static java.lang.System.*; + @Slf4j @Service @RequiredArgsConstructor @@ -29,6 +33,7 @@ public class ModuleServiceImpl implements ModuleService { private final ModuleMapper moduleMapper; private final UserDAO userDAO; private final RoleDAO roleDAO; + private final Gson gson; @Override public BaseResponse getByProjectId(Integer projectId, HttpServletRequest request) { @@ -48,21 +53,28 @@ public class ModuleServiceImpl implements ModuleService { for (ProjectChildDO projectWorkDO : projectWorkDOList) { ProjectChildGetVO projectWorkAndNameVO = new ProjectChildGetVO(); Processing.copyProperties(projectWorkDO, projectWorkAndNameVO); - projectWorkAndNameVO.setPrincipalName(userDAO.getUserById(projectWorkDO.getPrincipalId()).getUsername()); + //描述转换,负责人名字转换 + JsonObject jsonObject = gson.fromJson(projectWorkDO.getDescription(), JsonObject.class); + projectWorkAndNameVO.setDescription(jsonObject.get("description").getAsString()); + if (projectWorkDO.getPrincipalId() != null) { + projectWorkAndNameVO + .setPrincipalName(userDAO.getUserById(projectWorkDO.getPrincipalId()).getUsername()); + } projectWorkAndNameVOS.add(projectWorkAndNameVO); } return ResultUtil.success(projectWorkAndNameVOS); } + @SuppressWarnings("checkstyle:Regexp") @Override - public BaseResponse getBySysId(Integer sysId, HttpServletRequest request) { + public BaseResponse getBySysId(Long sysId, HttpServletRequest request) { log.info("SysService"); //获取用户id Long userId = Processing.getAuthHeaderToUserId(request); //获取子系统负责人id - Long pid = moduleMapper.getPidBySysid(sysId); + Long pid = moduleMapper.getPidBySysid(sysId.intValue()); //获取项目负责人id - Long prid = moduleMapper.getPridBySysyid(sysId); + Long prid = moduleMapper.getPridBySysyid(sysId.intValue()); //判断是否是子系统/项目负责人 int is = 1; if (!pid.equals(userId) && !prid.equals(userId)) { @@ -70,13 +82,19 @@ public class ModuleServiceImpl implements ModuleService { } List projectWorkDOList = moduleMapper.getBySysId(sysId, userId, is); + out.println(projectWorkDOList.size()); // 封装VO类 List projectWorkAndNameVOS = new ArrayList<>(); for (ProjectModuleDO projectWorkDO : projectWorkDOList) { ProjectWorkAndNameVO projectWorkAndNameVO = new ProjectWorkAndNameVO(); Processing.copyProperties(projectWorkDO, projectWorkAndNameVO); -// 添加负责人和子系统名称 - projectWorkAndNameVO.setPrincipalUser(userDAO.getUserById(projectWorkDO.getPrincipalId()).getUsername()); + //描述转换,负责人名字转换 + JsonObject jsonObject = gson.fromJson(projectWorkDO.getDescription(), JsonObject.class); + projectWorkAndNameVO.setDescription(jsonObject.get("description").getAsString()); + if (projectWorkDO.getPrincipalId() != null) { + projectWorkAndNameVO + .setPrincipalUser(userDAO.getUserById(projectWorkDO.getPrincipalId()).getUsername()); + } projectWorkAndNameVOS.add(projectWorkAndNameVO); } return ResultUtil.success(projectWorkAndNameVOS); diff --git a/src/main/resources/mysql/oa_project.sql b/src/main/resources/mysql/oa_project.sql index fc257df..9dbc71e 100644 --- a/src/main/resources/mysql/oa_project.sql +++ b/src/main/resources/mysql/oa_project.sql @@ -2,7 +2,7 @@ create table oa_project ( id bigint unsigned auto_increment comment '项目id' primary key, - name varchar(255) not null comment '项目名称', + name varchar(255) not null unique comment '项目名称', principal_id bigint unsigned not null comment '项目负责人', description json null comment '项目描述(技术选择,描述)', tags json null comment '项目标签(项目类型:web,大数据等)', diff --git a/src/main/resources/mysql/oa_project_child.sql b/src/main/resources/mysql/oa_project_child.sql index f4f771c..fe24b04 100644 --- a/src/main/resources/mysql/oa_project_child.sql +++ b/src/main/resources/mysql/oa_project_child.sql @@ -13,6 +13,8 @@ create table oa_project_child created_at timestamp default CURRENT_TIMESTAMP not null comment '创建时间', updated_at timestamp null comment '更新时间', is_delete tinyint(1) default 0 not null comment '项目是否删除', + dead_line timestamp not null comment '子模块的截止时间', + status varchar(8) default 'progress' not null comment '模块状态(draft: 草稿,progress: 进行,pause: 暂停,abnormal: 异常,complete: 完成)', constraint oa_project_child_oa_user_id_fk foreign key (principal_id) references oa_user (id) on update cascade diff --git a/src/main/resources/mysql/oa_project_modules.sql b/src/main/resources/mysql/oa_project_modules.sql index 2ac88e8..6fcb03a 100644 --- a/src/main/resources/mysql/oa_project_modules.sql +++ b/src/main/resources/mysql/oa_project_modules.sql @@ -6,14 +6,17 @@ create table oa_project_modules name varchar(100) not null comment '模块名称', principal_id bigint unsigned not null comment '模块负责人', description json null comment '项目描述(技术选择,描述)', - cycle int unsigned null comment '模块周期', + cycle int unsigned not null comment '项目周期', work_load int unsigned default '1' not null comment '工作量(人天)', complete_time datetime null comment '完成时间', created_at timestamp default CURRENT_TIMESTAMP not null comment '创建时间', updated_at timestamp null comment '更新时间', is_delete tinyint(1) default 0 not null comment '项目是否删除', + dead_line timestamp not null comment '子模块的截止时间', + status varchar(8) default 'progress' not null comment '模块状态(draft: 草稿,progress: 进行,pause: 暂停,abnormal: 异常,complete: 完成)', constraint oa_project_modules_oa_user_id_fk foreign key (principal_id) references oa_user (id) on update cascade ) - comment '模块表'; \ No newline at end of file + comment '模块表'; + From a4aa3bd939af9c68483d97df8cb352366cbb193e Mon Sep 17 00:00:00 2001 From: 176yunxuan <362612387@qq.com~> Date: Fri, 19 Apr 2024 19:10:01 +0800 Subject: [PATCH 3/4] =?UTF-8?q?bug:=E5=AD=90=E6=A8=A1=E5=9D=97=E5=AD=90?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E6=9F=A5=E8=AF=A2=E5=92=8C=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/jsl/oa/config/startup/PermissionList.java | 8 ++++---- src/main/resources/mysql/oa_project_child.sql | 6 +++--- src/main/resources/mysql/oa_project_modules.sql | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/jsl/oa/config/startup/PermissionList.java b/src/main/java/com/jsl/oa/config/startup/PermissionList.java index 29615c9..24df812 100644 --- a/src/main/java/com/jsl/oa/config/startup/PermissionList.java +++ b/src/main/java/com/jsl/oa/config/startup/PermissionList.java @@ -23,8 +23,8 @@ public class PermissionList { permissionList.add(new PermissionVO("info:get_header_image", "获取头部图片")); permissionList.add(new PermissionVO("info:edit_header_image", "编辑头部图片")); permissionList.add(new PermissionVO("info:delete_header_image", "删除头部图片")); - permissionPrincipal.add(new PermissionVO("project:child:add", "增加子系统")); - permissionPrincipal.add(new PermissionVO("project:module:add", "增加子模块")); + permissionList.add(new PermissionVO("project:child:add", "增加子系统")); + permissionList.add(new PermissionVO("project:module:add", "增加子模块")); permissionPrincipal.add(new PermissionVO("auth:change_password", "修改密码")); permissionPrincipal.add(new PermissionVO("info:get_header_image", "获取头部图片")); @@ -38,7 +38,7 @@ public class PermissionList { permissionDeveloper.add(new PermissionVO("info:get_header_image", "获取头部图片")); permissionDeveloper.add(new PermissionVO("info:edit_header_image", "编辑头部图片")); permissionDeveloper.add(new PermissionVO("info:delete_header_image", "删除头部图片")); - permissionPrincipal.add(new PermissionVO("project:child:add", "增加子系统")); - permissionPrincipal.add(new PermissionVO("project:module:add", "增加子模块")); + permissionDeveloper.add(new PermissionVO("project:child:add", "增加子系统")); + permissionDeveloper.add(new PermissionVO("project:module:add", "增加子模块")); } } diff --git a/src/main/resources/mysql/oa_project_child.sql b/src/main/resources/mysql/oa_project_child.sql index fe24b04..22b8c08 100644 --- a/src/main/resources/mysql/oa_project_child.sql +++ b/src/main/resources/mysql/oa_project_child.sql @@ -6,15 +6,15 @@ create table oa_project_child name varchar(100) not null comment '项目名称', principal_id bigint unsigned not null comment '项目负责人', description json null comment '项目描述(技术选择,描述)', - cycle int unsigned not null comment '项目周期', + cycle int unsigned not null comment '系统周期', work_load int unsigned default '1' not null comment '工作量(人天)', files json null comment '子项目文件', complete_time date null comment '完成时间', created_at timestamp default CURRENT_TIMESTAMP not null comment '创建时间', updated_at timestamp null comment '更新时间', is_delete tinyint(1) default 0 not null comment '项目是否删除', - dead_line timestamp not null comment '子模块的截止时间', - status varchar(8) default 'progress' not null comment '模块状态(draft: 草稿,progress: 进行,pause: 暂停,abnormal: 异常,complete: 完成)', + dead_line timestamp not null comment '子系统的截止时间', + status varchar(8) default 'progress' not null comment '系统状态(draft: 草稿,progress: 进行,pause: 暂停,abnormal: 异常,complete: 完成)', constraint oa_project_child_oa_user_id_fk foreign key (principal_id) references oa_user (id) on update cascade diff --git a/src/main/resources/mysql/oa_project_modules.sql b/src/main/resources/mysql/oa_project_modules.sql index 6fcb03a..0eac0d0 100644 --- a/src/main/resources/mysql/oa_project_modules.sql +++ b/src/main/resources/mysql/oa_project_modules.sql @@ -6,7 +6,7 @@ create table oa_project_modules name varchar(100) not null comment '模块名称', principal_id bigint unsigned not null comment '模块负责人', description json null comment '项目描述(技术选择,描述)', - cycle int unsigned not null comment '项目周期', + cycle int unsigned not null comment '模块周期', work_load int unsigned default '1' not null comment '工作量(人天)', complete_time datetime null comment '完成时间', created_at timestamp default CURRENT_TIMESTAMP not null comment '创建时间', From 75d9435911d35d9f7dd5058a74ff602ccab5f732 Mon Sep 17 00:00:00 2001 From: XiaoLFeng Date: Fri, 19 Apr 2024 19:12:26 +0800 Subject: [PATCH 4/4] =?UTF-8?q?fix(=E4=B8=9A=E5=8A=A1):=20=E6=9D=83?= =?UTF-8?q?=E9=99=90=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 对于误修改部分进行补丁 --- .../com/jsl/oa/config/startup/PermissionList.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/jsl/oa/config/startup/PermissionList.java b/src/main/java/com/jsl/oa/config/startup/PermissionList.java index 24df812..2bacdfa 100644 --- a/src/main/java/com/jsl/oa/config/startup/PermissionList.java +++ b/src/main/java/com/jsl/oa/config/startup/PermissionList.java @@ -23,22 +23,22 @@ public class PermissionList { permissionList.add(new PermissionVO("info:get_header_image", "获取头部图片")); permissionList.add(new PermissionVO("info:edit_header_image", "编辑头部图片")); permissionList.add(new PermissionVO("info:delete_header_image", "删除头部图片")); - permissionList.add(new PermissionVO("project:child:add", "增加子系统")); - permissionList.add(new PermissionVO("project:module:add", "增加子模块")); + permissionList.add(new PermissionVO("project:child_add", "增加子系统")); + permissionList.add(new PermissionVO("project:module_add", "增加子模块")); permissionPrincipal.add(new PermissionVO("auth:change_password", "修改密码")); permissionPrincipal.add(new PermissionVO("info:get_header_image", "获取头部图片")); permissionPrincipal.add(new PermissionVO("info:edit_header_image", "编辑头部图片")); permissionPrincipal.add(new PermissionVO("info:delete_header_image", "删除头部图片")); permissionPrincipal.add(new PermissionVO("project:add", "增加项目")); - permissionPrincipal.add(new PermissionVO("project:child:add", "增加子系统")); - permissionPrincipal.add(new PermissionVO("project:module:add", "增加子模块")); + permissionPrincipal.add(new PermissionVO("project:child_add", "增加子系统")); + permissionPrincipal.add(new PermissionVO("project:module_add", "增加子模块")); permissionDeveloper.add(new PermissionVO("auth:change_password", "修改密码")); permissionDeveloper.add(new PermissionVO("info:get_header_image", "获取头部图片")); permissionDeveloper.add(new PermissionVO("info:edit_header_image", "编辑头部图片")); permissionDeveloper.add(new PermissionVO("info:delete_header_image", "删除头部图片")); - permissionDeveloper.add(new PermissionVO("project:child:add", "增加子系统")); - permissionDeveloper.add(new PermissionVO("project:module:add", "增加子模块")); + permissionDeveloper.add(new PermissionVO("project:child_add", "增加子系统")); + permissionDeveloper.add(new PermissionVO("project:module_add", "增加子模块")); } }