private ProjectPermissionDao projectPermissionDao;
@Test
public void testInsert() {
//
ProjectAuthority projectAuthority = new ProjectAuthority();
projectAuthority.setCode("project-admin-view");
projectAuthority.setDescription("管理模块查看权力");
//
projectAuthorityDao.insert(projectAuthority);
//
ProjectRole projectRole = new ProjectRole();
projectRole.setProjectId(1);
projectRole.setLabel("管理员");
projectRole.setLevel(5);
//
projectRoleDao.insert(projectRole);
//
ProjectPermission projectPermission = new ProjectPermission();
projectPermission.setProjectId(1);
projectPermission.setProjectRoleId(projectRole.getId());
projectPermission.setProjectAuthorityId(projectAuthority.getId());
//
projectPermissionDao.insert(projectPermission);
}