大家好!我是程序员一帆,感谢您阅读本文,欢迎一键三连哦。
💞当前专栏:微信小程序毕业设计
精彩专栏推荐👇🏻👇🏻👇🏻
开发运行环境
①前端:微信小程序开发工具
② 后端:Java
- 框架:ssm
- JDK版本:JDK1.8
- 服务器:tomcat7
- 数据库:mysql 5.7
- 数据库工具:Navicat12
- 开发软件:eclipse/myeclipse/idea
- Maven包:Maven3.3.9
- 浏览器:谷歌浏览器
演示视频
前端:
weixin154阳光电脑公司的维修服务微信小程序-微信端
后端:
weixin154阳光电脑公司的维修服务微信小程序-服务端
原版高清演示视频-编号:154
https://pan.quark.cn/s/c0c9519df9d4
源码下载地址:
https://download.csdn.net/download/2301_76953549/89090141
论文目录
【如需全文请按文末获取联系】
一、项目简介
系统可以提供信息显示和相应服务,其管理员管理配件,电脑,维修,购买订单,客服通知以及用户评价。用户购买电脑,申请电脑维修,支付维修费用并评价维修订单。
二、系统设计
2.1软件功能模块设计
在前面分析的管理员功能的基础上,进行接下来的设计工作,最终展示设计的管理员结构图(见下图)。管理员管理配件,电脑,维修,购买订单,客服通知以及用户评价。
在前面分析的用户功能的基础上,进行接下来的设计工作,最终展示设计的用户结构图(见下图)。用户购买电脑,申请电脑维修,支付维修费用并评价维修订单。
2.2数据库设计
(1)下图是管理员实体和其具备的属性。
(2)下图是电脑实体和其具备的属性。
(3)下图是用户实体和其具备的属性。
(4)下图是维修实体和其具备的属性。
(5)下图为上述各实体间相互之间的关系。
三、系统项目部分截图
3.1管理员功能实现
电脑信息管理
管理员进入指定功能操作区之后可以管理电脑信息。其页面见下图。管理员增删改查电脑信息。
购买订单管理
管理员进入指定功能操作区之后可以管理购买订单。其页面见下图。管理员查询购买订单,查看购买订单是否支付,删除购买订单。
维修信息管理
管理员进入指定功能操作区之后可以管理维修信息。其页面见下图。管理员审核用户提交的维修信息,可以给用户发送维修内容和维修费用方面的通知信息。
3.2用户功能实现
电脑信息
用户进入指定功能操作区之后可以查看电脑信息。其页面见下图。用户在页面内可以查看电脑介绍,购买电脑。
购买订单
用户进入指定功能操作区之后可以管理购买订单。其页面见下图。用户对已经购买的电脑进行支付,可以申请电脑维修。
维修信息
用户进入指定功能操作区之后可以查看维修信息。其页面见下图。用户申请电脑维修,可以查看管理员对其的审核情况。
四、部分核心代码
package com.controller;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Map;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import com.utils.ValidatorUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.annotation.IgnoreAuth;
import com.entity.KefutongzhiEntity;
import com.entity.view.KefutongzhiView;
import com.service.KefutongzhiService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
/**
* 客服通知
* 后端接口
* @author
* @email
* @date 2021-04-27 14:05:12
*/
@RestController
@RequestMapping("/kefutongzhi")
public class KefutongzhiController {
@Autowired
private KefutongzhiService kefutongzhiService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,KefutongzhiEntity kefutongzhi,
HttpServletRequest request){
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("yonghu")) {
kefutongzhi.setZhanghao((String)request.getSession().getAttribute("username"));
}
EntityWrapper<KefutongzhiEntity> ew = new EntityWrapper<KefutongzhiEntity>();
PageUtils page = kefutongzhiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, kefutongzhi), params), params));
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,KefutongzhiEntity kefutongzhi,
HttpServletRequest request){
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("yonghu")) {
kefutongzhi.setZhanghao((String)request.getSession().getAttribute("username"));
}
EntityWrapper<KefutongzhiEntity> ew = new EntityWrapper<KefutongzhiEntity>();
PageUtils page = kefutongzhiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, kefutongzhi), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( KefutongzhiEntity kefutongzhi){
EntityWrapper<KefutongzhiEntity> ew = new EntityWrapper<KefutongzhiEntity>();
ew.allEq(MPUtil.allEQMapPre( kefutongzhi, "kefutongzhi"));
return R.ok().put("data", kefutongzhiService.selectListView(ew));
}
/**
* 查询
*/
@RequestMapping("/query")
public R query(KefutongzhiEntity kefutongzhi){
EntityWrapper< KefutongzhiEntity> ew = new EntityWrapper< KefutongzhiEntity>();
ew.allEq(MPUtil.allEQMapPre( kefutongzhi, "kefutongzhi"));
KefutongzhiView kefutongzhiView = kefutongzhiService.selectView(ew);
return R.ok("查询客服通知成功").put("data", kefutongzhiView);
}
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
KefutongzhiEntity kefutongzhi = kefutongzhiService.selectById(id);
return R.ok().put("data", kefutongzhi);
}
/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
KefutongzhiEntity kefutongzhi = kefutongzhiService.selectById(id);
return R.ok().put("data", kefutongzhi);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody KefutongzhiEntity kefutongzhi, HttpServletRequest request){
kefutongzhi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(kefutongzhi);
kefutongzhiService.insert(kefutongzhi);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody KefutongzhiEntity kefutongzhi, HttpServletRequest request){
kefutongzhi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(kefutongzhi);
kefutongzhi.setUserid((Long)request.getSession().getAttribute("userId"));
kefutongzhiService.insert(kefutongzhi);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody KefutongzhiEntity kefutongzhi, HttpServletRequest request){
//ValidatorUtils.validateEntity(kefutongzhi);
kefutongzhiService.updateById(kefutongzhi);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
kefutongzhiService.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<KefutongzhiEntity> wrapper = new EntityWrapper<KefutongzhiEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("yonghu")) {
wrapper.eq("zhanghao", (String)request.getSession().getAttribute("username"));
}
int count = kefutongzhiService.selectCount(wrapper);
return R.ok().put("count", count);
}
}
五、获取源码或论文
如需对应的论文或源码,以及其他定制需求,也可以下方微❤联系。