背景
本系统以 SpringBoot 为后端框架、Vue 为前端框架,针对中医诊所预约挂号 “流程复杂、医师档期难查询、患者档案碎片化” 等痛点,构建 “预约挂号 - 医师管理 - 患者档案 - 就诊跟踪” 一体化平台,适配中小型中医诊所、中医馆的日常运营需求,满足患者便捷挂号与诊所高效管理的双重诉求。
技术上,后端采用 SpringBoot+MyBatis-Plus 搭建服务架构,MySQL 存储核心数据:患者信息(基础资料、过敏史、既往病史)、医师信息(资质、擅长领域、出诊档期)、预约数据(挂号时段、就诊科室、预约状态)、就诊记录(辨证结果、处方、医嘱);Redis 缓存医师出诊档期、热门科室预约情况,避免高峰期数据查询拥堵;前端用 Vue+Element UI 设计,通过 Vue Router 实现页面跳转,Vuex 管理用户预约状态与登录信息,支持 PC 端(诊所管理端)与 Web 移动端(患者端)适配,方便患者随时操作。对接短信服务平台(发送预约成功 / 就诊提醒短信),集成电子处方生成模块(支持中药处方、针灸推拿等中医特色治疗记录),通过 JWT 实现角色权限隔离(患者、医师、护士、管理员),结合数据加密技术保障患者隐私与诊疗数据安全,同时支持医保电子凭证关联(方便医保结算核验)。
核心功能分四模块:一是预约挂号管理,患者可在线选择科室(如中医内科、针灸科、推拿科)、医师(查看医师简介与擅长病症)、就诊日期及时段(系统显示实时可预约时段,避免重复挂号),填写就诊主诉(如 “失眠多梦”“颈肩疼痛”),提交后生成预约单号;支持预约修改与取消(需提前 24 小时,避免资源浪费),系统自动同步预约信息至医师与诊所前台;二是医师管理,管理员可录入医师资质信息(上传医师资格证、执业证),设置出诊档期(按周 / 月规划出诊时间,支持临时停诊标注),关联医师擅长病症标签(如 “脾胃调理”“妇科调理”);医师可查看个人预约列表(按就诊时段排序),提前了解患者主诉,提升就诊效率;三是患者档案管理,患者首次挂号时建立电子健康档案(记录基础体质、过敏药物、既往中医诊疗史),后续就诊时自动关联历史档案;医师可补充辨证结果(如 “肝郁脾虚证”)、开具电子处方(支持中药饮片剂量调整、煎煮方法备注),处方数据自动归档至患者档案,方便后续复诊参考;四是就诊跟踪与统计,患者可查看历史就诊记录、处方详情,接收医嘱提醒(如 “服药期间忌生冷”);管理员端提供数据统计功能,通过 ECharts 生成可视化报表(如各科室预约量、医师出诊率、常见病种分布),同时记录挂号流水(支持按时间段导出报表),辅助诊所运营决策。
系统适配中医诊所场景,文档含数据库设计(ER 图、表结构)、前后端联调流程章节,预留中药房库存联动(处方提交后自动扣减药材库存)、线上复诊预约接口,提供测试数据与部署教程,助力中医诊所简化挂号流程、提升诊疗管理效率,适配毕设需求。
前言
💗博主介绍:✌全网粉丝30W+,csdn特邀作者、博客专家、优快云新星计划导师、Java领域优质创作者,博客之星、掘金/华为云/阿里云/InfoQ等平台优质作者、专注于Java技术领域和学生毕业项目实战,高校老师/讲师/同行交流合作✌💗
💗主要内容:SpringBoot、Vue、SSM、HLMT、Jsp、PHP、Nodejs、Python、爬虫、数据可视化、小程序、安卓app、大数据、物联网、机器学习等设计与开发。
🍅 文末获取源码联系🍅
👇🏻 精彩专栏 推荐订阅👇🏻
2025-2026年最值得选的微信小程序毕业设计选题大全:100个热门选题推荐✅
2025-2026年最值得选的Java毕业设计选题大全:500个热门选题推荐✅
Java毕业设计项目精品实战案例《3000套》
微信小程序毕业设计项目精品案例《3000套》
🌟文末获取源码+数据库🌟
系统截图














开发技术介绍
Java项目
Java项目前端Vue,后端java的ssm,springboot框架,数据库mysql,前后端分离。
Python项目
Java项目前端Vue,后端Python的flask,Django框架,数据库mysql,前后端分离。
核心代码
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.ChatEntity;
import com.entity.view.ChatView;
import com.service.ChatService;
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-03-13 12:49:51
*/
@RestController
@RequestMapping("/chat")
public class ChatController {
@Autowired
private ChatService chatService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,ChatEntity chat,
HttpServletRequest request){
if(!request.getSession().getAttribute("role").toString().equals("管理员")) {
chat.setUserid((Long)request.getSession().getAttribute("userId"));
}
EntityWrapper<ChatEntity> ew = new EntityWrapper<ChatEntity>();
PageUtils page = chatService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, chat), params), params));
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,ChatEntity chat, HttpServletRequest request){
if(!request.getSession().getAttribute("role").toString().equals("管理员")) {
chat.setUserid((Long)request.getSession().getAttribute("userId"));
}
EntityWrapper<ChatEntity> ew = new EntityWrapper<ChatEntity>();
PageUtils page = chatService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, chat), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( ChatEntity chat){
EntityWrapper<ChatEntity> ew = new EntityWrapper<ChatEntity>();
ew.allEq(MPUtil.allEQMapPre( chat, "chat"));
return R.ok().put("data", chatService.selectListView(ew));
}
/**
* 查询
*/
@RequestMapping("/query")
public R query(ChatEntity chat){
EntityWrapper< ChatEntity> ew = new EntityWrapper< ChatEntity>();
ew.allEq(MPUtil.allEQMapPre( chat, "chat"));
ChatView chatView = chatService.selectView(ew);
return R.ok("查询在线客服成功").put("data", chatView);
}
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
ChatEntity chat = chatService.selectById(id);
return R.ok().put("data", chat);
}
/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
ChatEntity chat = chatService.selectById(id);
return R.ok().put("data", chat);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody ChatEntity chat, HttpServletRequest request){
chat.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(chat);
if(StringUtils.isNotBlank(chat.getAsk())) {
chatService.updateForSet("isreply=0", new EntityWrapper<ChatEntity>().eq("userid", request.getSession().getAttribute("userId")));
chat.setUserid((Long)request.getSession().getAttribute("userId"));
chat.setIsreply(1);
}
if(StringUtils.isNotBlank(chat.getReply())) {
chatService.updateForSet("isreply=0", new EntityWrapper<ChatEntity>().eq("userid", chat.getUserid()));
chat.setAdminid((Long)request.getSession().getAttribute("userId"));
}
chatService.insert(chat);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody ChatEntity chat, HttpServletRequest request){
chat.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(chat);
chat.setUserid((Long)request.getSession().getAttribute("userId"));
if(StringUtils.isNotBlank(chat.getAsk())) {
chatService.updateForSet("isreply=0", new EntityWrapper<ChatEntity>().eq("userid", request.getSession().getAttribute("userId")));
chat.setUserid((Long)request.getSession().getAttribute("userId"));
chat.setIsreply(1);
}
if(StringUtils.isNotBlank(chat.getReply())) {
chatService.updateForSet("isreply=0", new EntityWrapper<ChatEntity>().eq("userid", chat.getUserid()));
chat.setAdminid((Long)request.getSession().getAttribute("userId"));
}
chatService.insert(chat);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody ChatEntity chat, HttpServletRequest request){
//ValidatorUtils.validateEntity(chat);
chatService.updateById(chat);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
chatService.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<ChatEntity> wrapper = new EntityWrapper<ChatEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
int count = chatService.selectCount(wrapper);
return R.ok().put("count", count);
}
}
源码获取
文章下方名片联系我即可~
✌💗大家点赞、收藏、关注、评论啦 、查看✌💗
👇🏻获取联系方式👇🏻

被折叠的 条评论
为什么被折叠?



