基于javaweb的SpringBoot园区招商管理系统(java+springboot+html+thymeleaf+maven+mysql)

运行环境

Java≥8、MySQL≥5.7

开发工具

eclipse/idea/myeclipse/sts等均可配置运行

适用

课程设计,大作业,毕业设计,项目练习,学习演示等

功能说明

320023092402

330023092402

340023092402

350023092402

360023092402

370023092402

基于javaweb的SpringBoot园区招商管理系统(java+springboot+html+thymeleaf+maven+mysql)

项目介绍

园区招商管理系统。共分为三种角色,超级管理员、企业人员、高级用户。

超级管理员角色具有功能: 系统设置-用户管理、页面管理、角色管理; 招商管理-招商列表; 公司管理-公司列表、我的申请; 投诉管理-投诉列表、我的投诉; 合同管理-合同列表; 项目管理-项目列表、我的项目;

新闻管理-新闻列表;

环境需要

1.运行环境:最好是java jdk 1.8,我们在这个平台上运行的。其他版本理论上也可以。
2.IDE环境:IDEA,Eclipse,Myeclipse都可以。推荐IDEA;
3.硬件环境:windows 7/8/10 1G内存以上;或者 Mac OS;
4.数据库:MySql 8.0版本;

技术栈

  1. 后端:SpringBoot;

  2. 前端:html+thymeleaf;

使用说明

  1. 使用Navicat或者其它工具,在mysql中创建对应名称的数据库,并导入项目的sql文件;
  2. 将项目中application.properties配置文件中的数据库配置改为自己的配置
  3. 使用IDEA/Eclipse/MyEclipse导入项目然后运行;
  4. 运行项目,输入localhost:8081 登录
  5. 管理员账户:admin  密码:123456
  6. 企业人员和高级用户菜单可通过管理员进行分配;

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
@RequestMapping("/role")
public String role(Model model) {
return "sa/role";
}

/**
* Method name: getAllRole <BR>
* Description: 获取所有权限 <BR>
*
* @return List<Role><BR>
*/
@RequestMapping("/getAllRole")
@ResponseBody
public List<Role> getAllRole() {
return roleService.getAllRole();
}

/**
* Method name: getAllPage <BR>
* Description: 获取所有页面 <BR>
*
* @return List<Page><BR>
*/
@RequestMapping("/getAllPage")
@ResponseBody
public List<Page> getAllPage() {
return pageService.getAllPage();
}

/**
* Method name: getPageByRole <BR>
* Description: 获取某个角色的权限页面 <BR>
*/
@RequestMapping("/getPageByRole")
@ResponseBody
public Object getPageByRole(Integer roleId) {
return pageService.getAllPageByRoleId(roleId);
}

/**
* Method name: updatePageById <BR>
* Description: 根据页面id更新页面 <BR>
*
* @param page
* @return ResultMap<BR>
*/
@RequestMapping("/updatePageById")
@ResponseBody
public ResultMap updatePageById(Page page) {
return pageService.updatePageById(page);
}

/**
* Method name: addPage <BR>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
	 */
@ResponseBody
@RequestMapping("/updateUser")
public String updateUser(User user, String oldId) {
return userService.updateUser(oldId, user);
}

/**
* Method name: delUserPage <BR>
* Description: 已删除用户列表 <BR>
*
* @return String<BR>
*/
@RequestMapping("/delUserPage")
public String delUserPage() {
return "sa/userDelPage";
}
}
package com.pims.controller.open;


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
 * Method name: userPage <BR>
* Description: 用户管理页面 <BR>
*
* @return String<BR>
*/
@RequestMapping(value = "/userPage")
public String userPage() {
return "sa/userList";
}

/**
* Method name: getAllUserByLimit <BR>
* Description: 根据条件获取所有用户 <BR>
*
* @param userParameter
* @return Object<BR>
*/
@RequestMapping("/getAllUserByLimit")
@ResponseBody
public Object getAllUserByLimit(UserParameter userParameter) {
return userService.getAllUserByLimit(userParameter);
}

/**
* Method name: getAllDelUserByLimit <BR>
* Description: 获取所有删除用户 <BR>
*
* @param userParameter
* @return Object<BR>
*/
@RequestMapping("/getAllDelUserByLimit")
@ResponseBody
public Object getAllDelUserByLimit(UserParameter userParameter) {
return userService.getAllDelUserByLimit(userParameter);
}

/**
* Method name: delUser <BR>
* Description: 批量删除用户 <BR>
*
* @param ids
* @return String<BR>
*/
@RequestMapping(value = "delUser")
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42


/**
* <p>
* 前端控制器
* </p>
*
*/
@Controller("UserProjectController")
@RequestMapping("/user/project")
public class ProjectController {
@Autowired
private ProjectService projectService;

@Autowired
private AttractService attractService;

@RequestMapping("/list")
public String list() {
return "/user/projectList";
}

@RequestMapping("/applyList")
public String applyList() {
return "/user/applyList";
}

@RequestMapping("/applyProject")
public String applyProject(Long id, Model model) {
model.addAttribute("cId", id);
return "/user/applyProject";
}

@RequestMapping("/getAllByLimit")
@ResponseBody
public Object getAllByLimit(Project project) {
Subject subject = SecurityUtils.getSubject();
User user = (User) subject.getPrincipal();
project.setCompanyId(user.getId());
return projectService.getAllByLimit(project);
}

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
    public Object getApplyList(Project project) {
return projectService.getApplyList(project);
}

@RequestMapping("/apply")
@ResponseBody
public String apply(Attract attract) {
try {
Subject subject = SecurityUtils.getSubject();
User user = (User) subject.getPrincipal();
List<Attract> list = attractService.getByUserIdAndProId(user.getId(), attract.getProjectId());
if (list.size()>0){
return "CCC";
}
attract.setUserId(user.getId());
attract.setCreateTime(new Date());
attract.setStatus(0+"");
projectService.apply(attract.getProjectId());
attractService.apply(attract);
return "SUCCESS";
}catch (Exception e){
return "ERR";
}

}
}
package com.pims.controller.admin;




/**
* <p>
* 前端控制器
* </p>
*


项目链接:
https://javayms.github.io?id=361422272105200bg
https://javayms.pages.dev?id=361422272105200bg