作者主页:疯狂行者
简介:Java领域新星创作者、【计算机源码之家】公号作者✌ 简历模板、学习资料、面试题库【关注我,都给你】
文末获取源码联系
工具下载链接:
JDK版本下载
Eclipse下载链接
Mysql下载链接
tomcat下载链接
向日葵远程工具
本次文章主要是介绍家政服务网站管理的功能,系统分类两个角色,管理员,用户
- 登录
- 登录
- 家政人员认证
- 统计分析
- 商家认证
- 消费者认证
- 账户管理
- 登录注册
-认证管理
-我的订单
-预约
代码如下(示例):
@RequestMapping("/getAllOrder")
@ResponseBody
public ResponseResult<PageInfo<Order>> getAllOrder (
HttpSession session,
@RequestParam(required = false,defaultValue = "1",value = "pageNum")Integer currentPage
) {
ResponseResult<PageInfo<Order>> result = new ResponseResult<>();
if (session == null) {
throw new UserNoLoginException("用户未登录");
} else {
PageInfo<Order> list = orderService.getAllOrder(session, currentPage);
result.setData(list);
}
return result;
}
@RequestMapping("/mkApp")
@ResponseBody
public ResponseResult<Void> makeAppoint(
HttpSession session,
@RequestParam("app_type") String appType,
@RequestParam("app_address_city") String appAddressCity,
@RequestParam("app_address_area") String appAddressArea,
@RequestParam("app_address_detail") String appAddressDetail,
@RequestParam("app_phone") String appPhone,
@RequestParam("app_time") String appTime
) {
ResponseResult<Void> response = new ResponseResult<Void>();
String username = new String();
String key = "username";
if (session.getAttribute(key) == null) {
response.setState(406);
response.setMessage("用户未登录");
} else {
username = session.getAttribute(key).toString();
}
String appAddress = appAddressCity + "-" + appAddressArea + "-" + appAddressDetail;
Appointment appointment = new Appointment();
appointment.setAppAddress(appAddress);
appointment.setAppType(appType);
appointment.setAppPhone(appPhone);
appointment.setAppBeginTime(FormatDate.StrToDate(appTime));
System.out.println("预约地点:" + appAddress + "预约类型:" + appType + "预约电话:" + appPhone);
appService.insertAppointment(appointment, username);
return new ResponseResult<Void>();
}
大家点赞、收藏、关注、评论啦 、查看微信公众号获取联系方式
打卡 文章 更新 24/ 365天
精彩专栏推荐订阅:在 下方专栏
Java毕设项目实战
Java课设项目实战