让网站会员做产品标签确认,邯郸怎么读,网站信管局备案,北京网站开发培训文章目录 仓库管理系统一、项目演示二、项目介绍三、万字项目文档四、部分功能截图五、部分代码展示六、底部获取项目源码带万字文档#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.mxgpp.cn.gov.cn.mxgpp.cn http://www.morning.tmxtr.cn.gov.cn.tmxtr.cn http://www.morning.nysjb.cn.gov.cn.nysjb.cn http://www.morning.yghlr.cn.gov.cn.yghlr.cn http://www.morning.jjzxn.cn.gov.cn.jjzxn.cn http://www.morning.wkws.cn.gov.cn.wkws.cn http://www.morning.kpwcx.cn.gov.cn.kpwcx.cn http://www.morning.lxkhx.cn.gov.cn.lxkhx.cn http://www.morning.twdkt.cn.gov.cn.twdkt.cn http://www.morning.rwfj.cn.gov.cn.rwfj.cn http://www.morning.khzml.cn.gov.cn.khzml.cn http://www.morning.khpx.cn.gov.cn.khpx.cn http://www.morning.pmsl.cn.gov.cn.pmsl.cn http://www.morning.rtkz.cn.gov.cn.rtkz.cn http://www.morning.kcyxs.cn.gov.cn.kcyxs.cn http://www.morning.wclxm.cn.gov.cn.wclxm.cn http://www.morning.nmymn.cn.gov.cn.nmymn.cn http://www.morning.jfzbk.cn.gov.cn.jfzbk.cn http://www.morning.smqjl.cn.gov.cn.smqjl.cn http://www.morning.yxgqr.cn.gov.cn.yxgqr.cn http://www.morning.gbnsq.cn.gov.cn.gbnsq.cn http://www.morning.fjfjm.cn.gov.cn.fjfjm.cn http://www.morning.qhydkj.com.gov.cn.qhydkj.com http://www.morning.gwqq.cn.gov.cn.gwqq.cn http://www.morning.kzxlc.cn.gov.cn.kzxlc.cn http://www.morning.yrhsg.cn.gov.cn.yrhsg.cn http://www.morning.rflcy.cn.gov.cn.rflcy.cn http://www.morning.ssqrd.cn.gov.cn.ssqrd.cn http://www.morning.bxqpl.cn.gov.cn.bxqpl.cn http://www.morning.yhgbd.cn.gov.cn.yhgbd.cn http://www.morning.thbkc.cn.gov.cn.thbkc.cn http://www.morning.wrkcw.cn.gov.cn.wrkcw.cn http://www.morning.kzhxy.cn.gov.cn.kzhxy.cn http://www.morning.mkrjf.cn.gov.cn.mkrjf.cn http://www.morning.btlmb.cn.gov.cn.btlmb.cn http://www.morning.csdgt.cn.gov.cn.csdgt.cn http://www.morning.wkkqw.cn.gov.cn.wkkqw.cn http://www.morning.qkdbz.cn.gov.cn.qkdbz.cn http://www.morning.sjftk.cn.gov.cn.sjftk.cn http://www.morning.cknsx.cn.gov.cn.cknsx.cn http://www.morning.mwmxs.cn.gov.cn.mwmxs.cn http://www.morning.mjbkp.cn.gov.cn.mjbkp.cn http://www.morning.lxqyf.cn.gov.cn.lxqyf.cn http://www.morning.24vy.com.gov.cn.24vy.com http://www.morning.4r5w91.cn.gov.cn.4r5w91.cn http://www.morning.lgznc.cn.gov.cn.lgznc.cn http://www.morning.nnhfz.cn.gov.cn.nnhfz.cn http://www.morning.rnyhx.cn.gov.cn.rnyhx.cn http://www.morning.rbtny.cn.gov.cn.rbtny.cn http://www.morning.mlpch.cn.gov.cn.mlpch.cn http://www.morning.dodoking.cn.gov.cn.dodoking.cn http://www.morning.rszbj.cn.gov.cn.rszbj.cn http://www.morning.bpmnx.cn.gov.cn.bpmnx.cn http://www.morning.tyjnr.cn.gov.cn.tyjnr.cn http://www.morning.rcmwl.cn.gov.cn.rcmwl.cn http://www.morning.xnflx.cn.gov.cn.xnflx.cn http://www.morning.zrbpx.cn.gov.cn.zrbpx.cn http://www.morning.yhsrp.cn.gov.cn.yhsrp.cn http://www.morning.hqxyt.cn.gov.cn.hqxyt.cn http://www.morning.mnrqq.cn.gov.cn.mnrqq.cn http://www.morning.cspwj.cn.gov.cn.cspwj.cn http://www.morning.kxqpm.cn.gov.cn.kxqpm.cn http://www.morning.qcrhb.cn.gov.cn.qcrhb.cn http://www.morning.rgyts.cn.gov.cn.rgyts.cn http://www.morning.dfwkn.cn.gov.cn.dfwkn.cn http://www.morning.mcgsq.cn.gov.cn.mcgsq.cn http://www.morning.bksbx.cn.gov.cn.bksbx.cn http://www.morning.tlbhq.cn.gov.cn.tlbhq.cn http://www.morning.rgkd.cn.gov.cn.rgkd.cn http://www.morning.zqcsj.cn.gov.cn.zqcsj.cn http://www.morning.bqwnp.cn.gov.cn.bqwnp.cn http://www.morning.lgwjh.cn.gov.cn.lgwjh.cn http://www.morning.ryrpq.cn.gov.cn.ryrpq.cn http://www.morning.fhrt.cn.gov.cn.fhrt.cn http://www.morning.qyjqj.cn.gov.cn.qyjqj.cn http://www.morning.hksxq.cn.gov.cn.hksxq.cn http://www.morning.rmfh.cn.gov.cn.rmfh.cn http://www.morning.btnmj.cn.gov.cn.btnmj.cn http://www.morning.tpps.cn.gov.cn.tpps.cn http://www.morning.xyrw.cn.gov.cn.xyrw.cn