让网站会员做产品标签确认,网站地图的作用,12380网站建设,wordpress第三方评论文章目录 仓库管理系统一、项目演示二、项目介绍三、万字项目文档四、部分功能截图五、部分代码展示六、底部获取项目源码带万字文档#xff08;9.9#xffe5;带走#xff09; 仓库管理系统
一、项目演示 医院管理系统 二、项目介绍
基于springbootvue的前后端分离医院管… 文章目录 仓库管理系统一、项目演示二、项目介绍三、万字项目文档四、部分功能截图五、部分代码展示六、底部获取项目源码带万字文档9.9带走 仓库管理系统
一、项目演示 医院管理系统 二、项目介绍
基于springbootvue的前后端分离医院管理系统
语言: Java 数据库MySQL 前后端分离
前端技术 : Vue2 ElementUl
后端技术 : SpringBoot2 MyBatisPlus Redis
系统角色管理员、医生、患者
管理员登录、医生信息管理、患者信息管理、挂号信息管理、药物信息管理、检查项目管理、病床信息管理、排班信息管理、数据统计分析
医生登录、首页、今日挂号列表、历史挂号列表、住院申请管理、个人信息查询
患者注册登录、首页、预约挂号、我的挂号、住院信息、个人信息
三、万字项目文档 四、部分功能截图 五、部分代码展示
package com.bear.hospital.controller;import com.bear.hospital.pojo.Admin;
import com.bear.hospital.pojo.Doctor;
import com.bear.hospital.service.AdminService;
import com.bear.hospital.service.DoctorService;
import com.bear.hospital.service.OrderService;
import com.bear.hospital.service.PatientService;
import com.bear.hospital.utils.JwtUtil;
import com.bear.hospital.utils.ResponseData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;import java.util.HashMap;
import java.util.Map;RestController
RequestMapping(admin)
public class AdminController {Autowiredprivate AdminService adminService;Autowiredprivate DoctorService doctorService;Autowiredprivate PatientService patientService;Autowiredprivate OrderService orderService;/*** 登录数据验证*/PostMapping(/login)ResponseBodypublic ResponseData login(RequestParam(aId) int aId, RequestParam(aPassword) String aPassword) {Admin admin this.adminService.login(aId, aPassword);if (admin ! null) {MapString,String map new HashMap();map.put(aName, admin.getAName());map.put(aId, String.valueOf(admin.getAId()));String token JwtUtil.getToken(map);map.put(token, token);return ResponseData.success(登录成功, map);} else {return ResponseData.fail(登录失败密码或账号错误);}}/*** 分页模糊查询所有医护人员信息*/RequestMapping(findAllDoctors)public ResponseData findAllDoctors(RequestParam(value pageNumber) int pageNumber, RequestParam(value size) int size, RequestParam(value query) String query){return ResponseData.success(返回医护人员信息成功, this.doctorService.findAllDoctors(pageNumber, size, query));}/*** 根据id查找医生*/RequestMapping(findDoctor)public ResponseData findDoctor(RequestParam(value dId) int dId) {return ResponseData.success(查询医生成功, this.doctorService.findDoctor(dId));}/*** 增加医生信息*/RequestMapping(addDoctor)ResponseBodypublic ResponseData addDoctor(Doctor doctor) {Boolean bo this.doctorService.addDoctor(doctor);if (bo) {return ResponseData.success(增加医生信息成功);}return ResponseData.fail(增加医生信息失败账号或已被占用);}/*** 删除医生信息*/RequestMapping(deleteDoctor)public ResponseData deleteDoctor(RequestParam(value dId) int dId) {Boolean bo this.doctorService.deleteDoctor(dId);if (bo){return ResponseData.success(删除医生信息成功);}return ResponseData.fail(删除医生信息失败);}/*** 修改医生信息* bug: dState会自动更新为0*/RequestMapping(modifyDoctor)ResponseBodypublic ResponseData modifyDoctor(Doctor doctor) {this.doctorService.modifyDoctor(doctor);return ResponseData.success(修改医生信息成功);}/*** 分页模糊查询所有患者信息*/RequestMapping(findAllPatients)public ResponseData findAllPatients(RequestParam(value pageNumber) int pageNumber, RequestParam(value size) int size, RequestParam(value query) String query){return ResponseData.success(返回患者信息成功, this.patientService.findAllPatients(pageNumber, size, query));}/*** 删除患者信息*/RequestMapping(deletePatient)public ResponseData deletePatient(RequestParam(value pId) int pId) {Boolean bo this.patientService.deletePatient(pId);if (bo){return ResponseData.success(删除患者信息成功);}return ResponseData.fail(删除患者信息失败);}/*** 分页模糊查询所有挂号信息*/RequestMapping(findAllOrders)public ResponseData findAllOrders(RequestParam(value pageNumber) int pageNumber, RequestParam(value size) int size, RequestParam(value query) String query){return ResponseData.success(返回挂号信息成功, this.orderService.findAllOrders(pageNumber, size, query));}/*** 删除挂号信息*/RequestMapping(deleteOrder)public ResponseData deleteOrder(RequestParam(value oId) int oId) {Boolean bo this.orderService.deleteOrder(oId);if (bo){return ResponseData.success(删除挂号信息成功);}return ResponseData.fail(删除挂号信息失败);}}
package com.bear.hospital.controller;import com.bear.hospital.pojo.Bed;
import com.bear.hospital.service.BedService;
import com.bear.hospital.utils.ResponseData;
import com.bear.hospital.utils.TodayUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;RestController
RequestMapping(bed)
public class BedController {Autowiredprivate BedService bedService;/*** 查找所有空床位*/RequestMapping(findNullBed)public ResponseData findNullBed(){return ResponseData.success(查找所有空床位成功, this.bedService.findNullBed());}/*** 增加床位信息*/RequestMapping(updateBed)public ResponseData updateBed(Bed bed) {if (this.bedService.updateBed(bed))return ResponseData.success(增加床位成功);return ResponseData.fail(增加床位失败);}/*** 根据pId查询住院*/RequestMapping(findBedByPid)public ResponseData findBedByPid(RequestParam(value pId) int pId){return ResponseData.success(根据pId查询住院成功, this.bedService.findBedByPid(pId)) ;}/*** 分页模糊查询所有床位信息*/RequestMapping(findAllBeds)public ResponseData findAllBeds(int pageNumber, int size, String query){return ResponseData.success(返回所有床位信息成功, this.bedService.findAllBeds(pageNumber, size, query));}/*** 根据id查找床位*/RequestMapping(findBed)public ResponseData findBed(int bId){return ResponseData.success(根据id查找床位成功, this.bedService.findBed(bId));}/*** 增加床位信息*/RequestMapping(addBed)ResponseBodypublic ResponseData addBed(Bed bed) {Boolean bo this.bedService.addBed(bed);if (bo) {return ResponseData.success(增加床位信息成功);}return ResponseData.fail(增加床位信息失败床号或已被占用);}/*** 删除药物信息*/RequestMapping(deleteBed)public ResponseData deleteBed(RequestParam(value bId) int bId) {Boolean bo this.bedService.deleteBed(bId);if (bo){return ResponseData.success(删除床位信息成功);}return ResponseData.fail(删除床位信息失败);}/*** 清空床位信息*/RequestMapping(emptyBed)public ResponseData emptyBed(int bId){if(this.bedService.emptyBed(bId))return ResponseData.success(清空床位信息成功);return ResponseData.fail(清空床位信息失败);}/*** 统计今天挂号人数*/RequestMapping(bedPeople)public ResponseData bedPeople(){String bStart TodayUtil.getTodayYmd();return ResponseData.success(统计今天住院人数成功, this.bedService.bedPeople(bStart));}
}
package com.bear.hospital.controller;import com.bear.hospital.pojo.Doctor;
import com.bear.hospital.service.DoctorService;
import com.bear.hospital.service.OrderService;
import com.bear.hospital.service.PatientService;
import com.bear.hospital.utils.JwtUtil;
import com.bear.hospital.utils.ResponseData;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;RestController
RequestMapping(doctor)
public class DoctorController {Autowiredprivate DoctorService doctorService;Autowiredprivate OrderService orderService;Autowiredprivate PatientService patientService;/*** 登录数据验证*/RequestMapping(value login, method RequestMethod.POST)ResponseBodypublic ResponseData login(RequestParam(value dId) int dId, RequestParam(value dPassword) String dPassword) {Doctor doctor this.doctorService.login(dId, dPassword);if (doctor ! null) {MapString,String map new HashMap();map.put(dName, doctor.getdName());map.put(dId, String.valueOf(doctor.getdId()));String token JwtUtil.getToken(map);map.put(token, token);//response.setHeader(token, token);return ResponseData.success(登录成功, map);} else {return ResponseData.fail(登录失败密码或账号错误);}}/*** 查看当天挂号列表*/RequestMapping(findOrderByNull)public ResponseData findOrderByNull(Param(value dId) int dId, RequestParam(value oStart) String oStart){System.out.println(账号时间为dIdoStart);return ResponseData.success(返回当天挂号信息成功, this.orderService.findOrderByNull(dId,oStart));}/*** 根据患者id查询患者信息*/RequestMapping(findPatientById)public ResponseData findPatientById(int pId){return ResponseData.success(返回患者信息成功, this.patientService.findPatientById(pId));}/*** 分页根据科室查询所有医生信息*/RequestMapping(findDoctorBySectionPage)public ResponseData findDoctorBySectionPage(int pageNumber, int size, String query, String arrangeDate, String dSection){return ResponseData.success(分页根据科室查询所有医生信息成功, this.doctorService.findDoctorBySectionPage(pageNumber, size, query, arrangeDate, dSection));}/*** 用户评价*/RequestMapping(updateStar)public ResponseData updateStar(int dId, Double dStar){if(this.doctorService.updateStar(dId, dStar))return ResponseData.success(评价成功);return ResponseData.fail(评价失败);}/*** 上传Excel导入数据*/RequestMapping(value uploadExcel, method RequestMethod.POST)ResponseBodypublic ResponseData uploadExcel(RequestParam(file) MultipartFile multipartFile) throws Exception {if (this.doctorService.uploadExcel(multipartFile))return ResponseData.success(上传Excel导入数据成功);return ResponseData.fail(上传Excel导入数据失败);}/*** Excel导出数据*/RequestMapping(downloadExcel)public ResponseData downloadExcel(HttpServletResponse response) throws IOException {if (this.doctorService.downloadExcel(response))return ResponseData.success(Excel导出数据成功);return ResponseData.fail(Excel导出数据失败);}
}
package com.bear.hospital.controller;import com.bear.hospital.pojo.Orders;
import com.bear.hospital.service.OrderService;
import com.bear.hospital.utils.ResponseData;
import com.bear.hospital.utils.TodayUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;import java.util.ArrayList;RestController
RequestMapping(order)
public class OrderController {Autowiredprivate OrderService orderService;/*** 根据id更新挂号信息*/PostMapping(updateOrder)ResponseBodypublic ResponseData updateOrder(RequestBody Orders orders) {if (this.orderService.updateOrder(orders))return ResponseData.success(更新挂号信息成功);return ResponseData.fail(更新挂号信息失败);}/*** 根据id设置缴费状态*/RequestMapping(updatePrice)public ResponseData updatePrice(int oId){if (this.orderService.updatePrice(oId))return ResponseData.success(根据id设置缴费状态成功);return ResponseData.success(根据id设置缴费状态失败);}/*** 查找医生已完成的挂号单*/RequestMapping(findOrderFinish)public ResponseData findOrderFinish(int pageNumber, int size, String query, int dId){return ResponseData.success(查找医生已完成的挂号单完成, this.orderService.findOrderFinish(pageNumber, size, query, dId));}/*** 根据dId查询挂号*/RequestMapping(findOrderByDid)public ResponseData findOrderByDid(int pageNumber, int size, String query, int dId){return ResponseData.success(返回挂号信息成功, this.orderService.findOrderByDid(pageNumber, size, query, dId)) ;}/*** 统计今天挂号人数*/RequestMapping(orderPeople)public ResponseData oderPeople(){String oStart TodayUtil.getTodayYmd();return ResponseData.success(统计今天挂号人数成功, this.orderService.orderPeople(oStart));}/*** 统计今天某个医生挂号人数*/RequestMapping(orderPeopleByDid)public ResponseData orderPeopleByDid(int dId){String oStart TodayUtil.getTodayYmd();return ResponseData.success(统计今天挂号人数成功, this.orderService.orderPeopleByDid(oStart, dId));}/*** 获取过去七天的挂号人数*/RequestMapping(orderSeven)public ResponseData orderSeven(){ArrayListInteger list new ArrayList();String oStart null;for(int i 20; i 0;i--){oStart TodayUtil.getPastDate(i);int people this.orderService.orderPeople(oStart);list.add(people);}return ResponseData.success(获取过去20天的挂号人数成功, list);}/*** 统计挂号男女人数*/RequestMapping(orderGender)public ResponseData orderGender(){return ResponseData.success(统计挂号男女人数, this.orderService.orderGender());}/*** 增加诊断及医生意见*/PostMapping(updateOrderByAdd)ResponseBodypublic ResponseData updateOrderByAdd(RequestBody Orders order){if (this.orderService.updateOrderByAdd(order))return ResponseData.success(增加诊断及医生意见成功);return ResponseData.fail(增加诊断及医生意见失败);}/*** 判断诊断之后再次购买药物是否已缴费*/RequestMapping(findTotalPrice)public ResponseData findTotalPrice(int oId){if(this.orderService.findTotalPrice(oId))return ResponseData.success(未缴费);return ResponseData.fail(无需缴费);}/*** 请求挂号时间段*/RequestMapping(findOrderTime)public ResponseData findOrderTime(String arId){return ResponseData.success(请求挂号时间段成功, this.orderService.findOrderTime(arId));}/*** 统计过去20天挂号科室人数*/RequestMapping(orderSection)public ResponseData orderSection(){return ResponseData.success(统计过去20天挂号科室人数成功, this.orderService.orderSection());}}
六、底部获取项目源码带万字文档9.9带走
有问题或者需要协助调试运行项目的也可以 文章转载自: http://www.morning.zbnkt.cn.gov.cn.zbnkt.cn http://www.morning.ymwny.cn.gov.cn.ymwny.cn http://www.morning.hrzhg.cn.gov.cn.hrzhg.cn http://www.morning.jfjbl.cn.gov.cn.jfjbl.cn http://www.morning.pxbky.cn.gov.cn.pxbky.cn http://www.morning.mtrz.cn.gov.cn.mtrz.cn http://www.morning.nfpct.cn.gov.cn.nfpct.cn http://www.morning.jcffp.cn.gov.cn.jcffp.cn http://www.morning.qztdz.cn.gov.cn.qztdz.cn http://www.morning.wqrdx.cn.gov.cn.wqrdx.cn http://www.morning.nfmtl.cn.gov.cn.nfmtl.cn http://www.morning.rggky.cn.gov.cn.rggky.cn http://www.morning.mtbth.cn.gov.cn.mtbth.cn http://www.morning.crdtx.cn.gov.cn.crdtx.cn http://www.morning.kkgbs.cn.gov.cn.kkgbs.cn http://www.morning.mwns.cn.gov.cn.mwns.cn http://www.morning.skql.cn.gov.cn.skql.cn http://www.morning.jtybl.cn.gov.cn.jtybl.cn http://www.morning.zhnpj.cn.gov.cn.zhnpj.cn http://www.morning.yfstt.cn.gov.cn.yfstt.cn http://www.morning.gwqcr.cn.gov.cn.gwqcr.cn http://www.morning.rnmdp.cn.gov.cn.rnmdp.cn http://www.morning.ssrjt.cn.gov.cn.ssrjt.cn http://www.morning.c7623.cn.gov.cn.c7623.cn http://www.morning.ccphj.cn.gov.cn.ccphj.cn http://www.morning.ffksr.cn.gov.cn.ffksr.cn http://www.morning.xpmhs.cn.gov.cn.xpmhs.cn http://www.morning.sjqml.cn.gov.cn.sjqml.cn http://www.morning.ffrys.cn.gov.cn.ffrys.cn http://www.morning.njqpg.cn.gov.cn.njqpg.cn http://www.morning.mlnbd.cn.gov.cn.mlnbd.cn http://www.morning.tsycr.cn.gov.cn.tsycr.cn http://www.morning.ggnfy.cn.gov.cn.ggnfy.cn http://www.morning.znqmh.cn.gov.cn.znqmh.cn http://www.morning.pbxkk.cn.gov.cn.pbxkk.cn http://www.morning.lqgtx.cn.gov.cn.lqgtx.cn http://www.morning.wmqxt.cn.gov.cn.wmqxt.cn http://www.morning.bkqdg.cn.gov.cn.bkqdg.cn http://www.morning.xglgm.cn.gov.cn.xglgm.cn http://www.morning.rkxqh.cn.gov.cn.rkxqh.cn http://www.morning.xnpj.cn.gov.cn.xnpj.cn http://www.morning.jsphr.cn.gov.cn.jsphr.cn http://www.morning.rjrz.cn.gov.cn.rjrz.cn http://www.morning.lpbrp.cn.gov.cn.lpbrp.cn http://www.morning.gchqy.cn.gov.cn.gchqy.cn http://www.morning.heleyo.com.gov.cn.heleyo.com http://www.morning.fwkpp.cn.gov.cn.fwkpp.cn http://www.morning.feites.com.gov.cn.feites.com http://www.morning.sjjq.cn.gov.cn.sjjq.cn http://www.morning.kntsd.cn.gov.cn.kntsd.cn http://www.morning.jhrqn.cn.gov.cn.jhrqn.cn http://www.morning.yrrnx.cn.gov.cn.yrrnx.cn http://www.morning.tckxl.cn.gov.cn.tckxl.cn http://www.morning.jftl.cn.gov.cn.jftl.cn http://www.morning.rrgm.cn.gov.cn.rrgm.cn http://www.morning.nfccq.cn.gov.cn.nfccq.cn http://www.morning.wyjpt.cn.gov.cn.wyjpt.cn http://www.morning.lhrwy.cn.gov.cn.lhrwy.cn http://www.morning.qrpdk.cn.gov.cn.qrpdk.cn http://www.morning.mqmmc.cn.gov.cn.mqmmc.cn http://www.morning.ryznd.cn.gov.cn.ryznd.cn http://www.morning.pbtdr.cn.gov.cn.pbtdr.cn http://www.morning.txqgd.cn.gov.cn.txqgd.cn http://www.morning.wyzby.cn.gov.cn.wyzby.cn http://www.morning.xbptx.cn.gov.cn.xbptx.cn http://www.morning.mmtbn.cn.gov.cn.mmtbn.cn http://www.morning.nqrlz.cn.gov.cn.nqrlz.cn http://www.morning.nstml.cn.gov.cn.nstml.cn http://www.morning.rrjzp.cn.gov.cn.rrjzp.cn http://www.morning.rpjr.cn.gov.cn.rpjr.cn http://www.morning.gqbks.cn.gov.cn.gqbks.cn http://www.morning.xptkl.cn.gov.cn.xptkl.cn http://www.morning.pwzzk.cn.gov.cn.pwzzk.cn http://www.morning.skrxp.cn.gov.cn.skrxp.cn http://www.morning.xgzwj.cn.gov.cn.xgzwj.cn http://www.morning.lonlie.com.gov.cn.lonlie.com http://www.morning.tlzbt.cn.gov.cn.tlzbt.cn http://www.morning.frxsl.cn.gov.cn.frxsl.cn http://www.morning.zryf.cn.gov.cn.zryf.cn http://www.morning.xpqdf.cn.gov.cn.xpqdf.cn