基于javaweb的SpringBoot家政服务平台系统(java+ssm+jsp+mysql+maven)

运行环境

Java≥8、MySQL≥5.7

开发工具

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

适用

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

功能说明

250023542402

270023542402

280023542402

290023542402

300023542402

基于javaweb的SpringBoot家政服务平台系统(java+ssm+jsp+mysql+maven)

一、项目简述

功能包括: 家政服务网站系统,用户注册,登录,分为家政人员,普 通用户,以及最高管理员,包括家政分类查询,展示,线 上预约服务,家政申请,评论,留言沟通・,联系家政服 务,家政人员的认证,职业认证,以及后台的维护等等功能。

二、项目运行

环境配置: Jdk1.8 + mysql + Eclispe (IntelliJ IDEA,Eclispe,MyEclispe,Sts 都支持)

项目技术: JSP +Spring + SpringMVC + MyBatis + html+ css + JavaScript + JQuery + Ajax + maven等等。

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
}

@PostMapping("/getOrderListByHKID")
@ResponseBody
public ResponseResult<List<Order>> getOrderListByHKID (
HttpSession session
) {
ResponseResult<List<Order>> result = new ResponseResult<>();
List<Order> list = orderService.getOrderListByHKID(session);
result.setData(list);
return result;
}

@PostMapping("/acceptOrder")
@ResponseBody
public ResponseResult<Void> acceptOrder (
@RequestParam("id") int id
) {
orderService.updateOrderStatusByID(id, 1);
return new ResponseResult<>();
}

@PostMapping("/finishOrder")
@ResponseBody
public ResponseResult<Void> finishOrder (
@RequestParam("id") int id
) {
orderService.updateOrderStatusByID(id, 0);
return new ResponseResult<>();
}

@PostMapping("/cancelOrder")
@ResponseBody
public ResponseResult<Void> cancelOrder (
@RequestParam("id") int id
) {
orderService.cancelOrder(id);
return new ResponseResult<>();
}

@PostMapping("/assessOrder")
@ResponseBody
public ResponseResult<Void> assessOrder (
@RequestParam("orderID") int orderID,
@RequestParam("commentStar") int commentStar,
@RequestParam("commentContent") String commentContent
) {
Comment comment = new Comment();
comment.setOrderID(orderID);
comment.setCommentStar(commentStar);
comment.setCommentContent(commentContent);
Date now = new Date();
comment.setCommentTime(now);
commentService.insertComment(comment);
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
@Override
public List<User> selectAllLogin() {
return adminMapper.selectAllLogin();
}

@Override
public List<Customer> selectAllCustomer() {
return adminMapper.selectAllCustomer();
}

@Override
public Integer insertAdmin(Admin admin) throws UsernameConflictException {
Integer result = 0;
String phone = admin.getAdPhone();
if (userMapper.getUserByUsername(phone) != null) {
throw new UsernameConflictException("用户已经存在!");
} else {
String password = admin.getAdPassword();
int role = -1;
int status = 1;
User user = new User();
user.setUsername(phone);
user.setPassword(password);
user.setRole(role);
user.setStatus(status);
result = adminMapper.insertAdmin(admin);
userMapper.insert(user);
}
return result;
}

@Override
public Integer insertCustomer(Customer customer) throws UsernameConflictException {
Integer result = 0;
String phone = customer.getCmPhone();
if (userMapper.getUserByUsername(phone) != null) {
throw new UsernameConflictException("用户已经存在!");
} else {
String password = customer.getCmPassword();
int role = 1;
int status = 1;
User user = new User();
user.setUsername(phone);
user.setPassword(password);
user.setRole(role);
user.setStatus(status);
result = adminMapper.insertCustomer(customer);
userMapper.insert(user);
}
return result;
}

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
    return response;
}

@PostMapping("/insertAdmin")
@ResponseBody
public ResponseResult<Void> insertAdmin (
@RequestParam("name") String name,
@RequestParam("gender") String gender,
@RequestParam("phone") String phone,
@RequestParam("password") String password
) {
ResponseResult<Void> response = new ResponseResult<>();
Admin admin = new Admin();
admin.setAdName(name);
admin.setAdPassword(password);
admin.setAdPhone(phone);
admin.setAdSex(gender);
adminService.insertAdmin(admin);
return response;
}

@PostMapping("/updateLoginStatus")
@ResponseBody
public ResponseResult<Void> updateLoginStatus (
@RequestParam("") String username
) {
ResponseResult<Void> response = new ResponseResult<>();
adminService.updateLoginStatus(username);
return response;
}

@PostMapping("/getOrderData")
@ResponseBody
public ResponseResult<List<EchartsData>> getOrderData(){
ResponseResult<List<EchartsData>> response = new ResponseResult<>();
List<EchartsData> echartsData = adminService.getOrderData();
response.setData(echartsData);
return response;
}

@PostMapping("/getAppoimentData")
@ResponseBody
public ResponseResult<List<EchartsData>> getAppoimentData(){
ResponseResult<List<EchartsData>> response = new ResponseResult<>();
List<EchartsData> echartsData = adminService.getAppoimentData();
response.setData(echartsData);
return response;
}

@PostMapping("/updateUserInfo")
@ResponseBody
public ResponseResult<Void> updateUserInfo (
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
        String rand = String.valueOf(getRandomString(random.nextInt(randString
.length())));
randomString += rand;
g.translate(random.nextInt(3), random.nextInt(3));
g.drawString(rand, 13 * i, 16);
return randomString;
}

/**
* 绘制干扰线
* @param g
*/
private void drowLine(Graphics g) {
int x = random.nextInt(width);
int y = random.nextInt(height);
int xl = random.nextInt(13);
int yl = random.nextInt(15);
g.drawLine(x, y, x + xl, y + yl);
}

/**
* 获取随机的字符
* @param num
* @return
*/
public String getRandomString(int num) {
return String.valueOf(randString.charAt(num));
}
}
package com.xxxx.service.impl;



/**
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 new ResponseResult<Void>();
}

@PostMapping("/getCertifyStatus")
@ResponseBody
public ResponseResult<Integer> getCertifyStatus (HttpSession session) {
ResponseResult<Integer> result = new ResponseResult<>();
Integer data = personService.getCertifyStatus(session);
result.setData(data);
return result;
}


@PostMapping("/getAllMessage")
@ResponseBody
public ResponseResult<List<Message>> getAllMessage () {
ResponseResult<List<Message>> result = new ResponseResult<>();
List<Message> list = personService.getAllMessage();
result.setData(list);
return result;
}

@PostMapping("/getSingleMessage")
@ResponseBody
public ResponseResult<String> getSingleMessage (
@RequestParam("id") Integer id
) {
ResponseResult<String> result = new ResponseResult<>();
String message = personService.getSingleMessage(id);
result.setData(message);
return result;
}

@PostMapping("/deleteSingleMessage")
@ResponseBody
public ResponseResult<Void> deleteSingleMessage (
@RequestParam("id") String id
) {
Integer mid = Integer.parseInt(id);
personService.deleteSingleMessage(mid);
return new ResponseResult<>();
}


}
package com.xxxx.service.impl;


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