基于javaweb的SSM+Maven疫情物业系统(java+ssm+vue+elementui+mysql)

运行环境

Java≥8、MySQL≥5.7、Tomcat≥8、Node.js≥14

开发工具

后端:eclipse/idea/myeclipse/sts等均可配置运行
前端:WebStorm/VSCode/HBuilderX等均可

❗没学过node.js的不要搞前后端分离项目

适用

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

功能说明

030023572402

040023572402

050023572402

060023572402

070023572402

080023572402

基于javaweb的SSM+Maven疫情物业系统(java+ssm+vue+elementui+mysql)

项目介绍

本项目分为管理员、业主两种角色。 管理员角色包含以下功能: 登录页面,首页,个人中心(修改密码、个人信息),业主管理,车位信息管理,费用信息管理,报告信息管理,核酸检测管理,访客登记管理等功能。

业主角色包含以下功能: 登录页面,首页,个人中心(修改密码、个人信息),业主管理,车位信息管理,费用信息管理,报告信息管理,核酸检测管理,投诉信息管理,公告信息管理等功能。

环境需要

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

技术栈

  1. 后端:Spring+SpringMVC+Mybatis 2. 前端:VUE

使用说明

  1. 使用Navicat或者其它工具,在mysql中创建对应名称的数据库,并导入项目的sql文件; 2. 使用IDEA/Eclipse/MyEclipse导入项目,Eclipse/MyEclipse导入时,若为maven项目请选择maven; 若为maven项目,导入成功后请执行maven clean;maven install命令,然后运行; 3. 将项目中config.properties配置文件中的数据库配置改为自己的配置; 4. 运行项目,在浏览器中输入http://localhost:8080/xxx登录

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
        EntityWrapper<UserEntity> ew = new EntityWrapper<UserEntity>();
PageUtils page = userService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.allLike(ew, user), params), params));
return R.ok().put("data", page);
}

/**
* 列表
*/
@RequestMapping("/list")
public R list( UserEntity user){
EntityWrapper<UserEntity> ew = new EntityWrapper<UserEntity>();
ew.allEq(MPUtil.allEQMapPre( user, "user"));
return R.ok().put("data", userService.selectListView(ew));
}

/**
* 信息
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") String id){
UserEntity user = userService.selectById(id);
return R.ok().put("data", user);
}

/**
* 获取用户的session用户信息
*/
@RequestMapping("/session")
public R getCurrUser(HttpServletRequest request){
Long id = (Long)request.getSession().getAttribute("userId");
UserEntity user = userService.selectById(id);
return R.ok().put("data", user);
}

/**
* 保存
*/
@PostMapping("/save")
public R save(@RequestBody UserEntity user){
// ValidatorUtils.validateEntity(user);
if(userService.selectOne(new EntityWrapper<UserEntity>().eq("username", user.getUsername())) !=null) {
return R.error("用户已存在");
}
userService.insert(user);
return R.ok();
}

/**
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



/**
* 投诉信息
* 后端接口
* @email
*/
@RestController
@RequestMapping("/tousuxinxi")
public class TousuxinxiController {
@Autowired
private TousuxinxiService tousuxinxiService;



/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,TousuxinxiEntity tousuxinxi, HttpServletRequest request){

String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("yezhu")) {
tousuxinxi.setYonghuming((String)request.getSession().getAttribute("username"));
}
EntityWrapper<TousuxinxiEntity> ew = new EntityWrapper<TousuxinxiEntity>();
PageUtils page = tousuxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, tousuxinxi), params), params));
return R.ok().put("data", page);
}

/**
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
       return R.ok();
}

/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody FangkedengjiEntity fangkedengji, HttpServletRequest request){
fangkedengji.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(fangkedengji);

fangkedengjiService.insert(fangkedengji);
return R.ok();
}

/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody FangkedengjiEntity fangkedengji, HttpServletRequest request){
//ValidatorUtils.validateEntity(fangkedengji);
fangkedengjiService.updateById(fangkedengji);//全部更新
return R.ok();
}


/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
fangkedengjiService.deleteBatchIds(Arrays.asList(ids));
return R.ok();
}

/**
* 提醒接口
*/
@RequestMapping("/remind/{columnName}/{type}")
public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request,
@PathVariable("type") String type,@RequestParam Map<String, Object> map) {
map.put("column", columnName);
map.put("type", type);

if(type.equals("2")) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar c = Calendar.getInstance();
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
    * 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
cheweixinxiService.deleteBatchIds(Arrays.asList(ids));
return R.ok();
}

/**
* 提醒接口
*/
@RequestMapping("/remind/{columnName}/{type}")
public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request,
@PathVariable("type") String type,@RequestParam Map<String, Object> map) {
map.put("column", columnName);
map.put("type", type);

if(type.equals("2")) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar c = Calendar.getInstance();
Date remindStartDate = null;
Date remindEndDate = null;
if(map.get("remindstart")!=null) {
Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindStart);
remindStartDate = c.getTime();
map.put("remindstart", sdf.format(remindStartDate));
}
if(map.get("remindend")!=null) {
Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindEnd);
remindEndDate = c.getTime();
map.put("remindend", sdf.format(remindEndDate));
}
}

Wrapper<CheweixinxiEntity> wrapper = new EntityWrapper<CheweixinxiEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
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

/**
* 访客登记
* 后端接口
* @email
*/
@RestController
@RequestMapping("/fangkedengji")
public class FangkedengjiController {
@Autowired
private FangkedengjiService fangkedengjiService;



/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,FangkedengjiEntity fangkedengji, HttpServletRequest request){

EntityWrapper<FangkedengjiEntity> ew = new EntityWrapper<FangkedengjiEntity>();
PageUtils page = fangkedengjiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, fangkedengji), params), params));
return R.ok().put("data", page);
}

/**
* 前端列表
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,FangkedengjiEntity fangkedengji, HttpServletRequest request){
EntityWrapper<FangkedengjiEntity> ew = new EntityWrapper<FangkedengjiEntity>();
PageUtils page = fangkedengjiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, fangkedengji), params), params));
return R.ok().put("data", page);
}

/**
* 列表
*/
@RequestMapping("/lists")
public R list( FangkedengjiEntity fangkedengji){
EntityWrapper<FangkedengjiEntity> ew = new EntityWrapper<FangkedengjiEntity>();
ew.allEq(MPUtil.allEQMapPre( fangkedengji, "fangkedengji"));
return R.ok().put("data", fangkedengjiService.selectListView(ew));
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
 * 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody FeiyongxinxiEntity feiyongxinxi, HttpServletRequest request){
feiyongxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(feiyongxinxi);

feiyongxinxiService.insert(feiyongxinxi);
return R.ok();
}

/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody FeiyongxinxiEntity feiyongxinxi, HttpServletRequest request){
feiyongxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(feiyongxinxi);

feiyongxinxiService.insert(feiyongxinxi);
return R.ok();
}

/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody FeiyongxinxiEntity feiyongxinxi, HttpServletRequest request){
//ValidatorUtils.validateEntity(feiyongxinxi);
feiyongxinxiService.updateById(feiyongxinxi);//全部更新
return R.ok();
}


/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
feiyongxinxiService.deleteBatchIds(Arrays.asList(ids));
return R.ok();
}

/**
* 提醒接口


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