——————————DescriptionStart——————————
运行环境 Java≥8、MySQL≥5.7、Node.js≥14
开发工具 后端:eclipse/idea/myeclipse/sts等均可配置运行 前端:WebStorm/VSCode/HBuilderX等均可
❗没学过node.js的不要搞前后端分离项目
适用 课程设计,大作业,毕业设计,项目练习,学习演示等
功能说明
基于javaweb的SpringBoothis智能医院管理系统(java+springboot+vue+maven+mybatis+mysql)
1 2 3 4 5 6 7 8 9 10 登录: admin 123456 系统管理员 000 123456 前台 前台 002 123456 医技 医技 003 123456 药房 药房 004 123456 信息科 管理 011 123456 门诊 内科(医师) 普通号 012 123456 门诊 内科(医师) 专家号 013 123456 门诊 外科(医师) 普通号 014 123456 门诊 外科(医师) 专家号
一、项目运行 环境配置:
Jdk1.8 + Mysql + HBuilderX(Webstorm也行)+ Eclispe(IntelliJ IDEA,Eclispe,MyEclispe,Sts都支持)。
项目技术:
Spring + SpringBoot+ mybatis + Maven + Vue 等等组成,B/S模式 + Maven管理等等。
——————————CodeStart——————————
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 } @RequestMapping("/updateTech") public Map<String,Object> updateUser (@RequestBody TechShow techShow) { Map<String,Object> res=techService.updateTech(techShow); return res; } } package com.neutech.controller.drugstore;@CrossOrigin @RestController public class MedicineController { @Autowired MedicineService medicineService; @RequestMapping("/addMedicine") public Map<String, Object> addMedicine (@RequestBody Medicine medicine) { Map<String,Object> res=medicineService.addMedicine(medicine); return res; } @RequestMapping("/getAllMedicine") public Map<String,Object> getAllMedicine () { Map<String,Object> res=medicineService.getAllMedicine(); return res; } @RequestMapping("/getMedicineBy") public Map<String,Object> getMedicineBy (@RequestBody Medicine medicine) { Map<String, Object> res = medicineService.getMedicineBy(medicine); return res; } @RequestMapping("/deleteMedicineByID") public Map<String,Object> deleteMedicineByID (@RequestBody MedicineShow medicineShow) { Map<String,Object> res=medicineService.deleteByID(medicineShow);
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 public Map<String,Object> searchby (@RequestBody Map<String,Object> map) { String medRecNum=(String)map.get("medRecNum" ); String name=(String)map.get("name" ); String idNum=(String)map.get("idNum" ); return withdnumService.searchBy(medRecNum,name,idNum); } @PostMapping("/reception/czwith") public Map<String,Object> czwith (@RequestBody WithShow withShow) { int i = withdnumService.backH(withShow.getRegID()); String s="true" ; if (i==0 ){ s="false" ; } Map<String,Object> map= new HashMap<>(); map.put("flag" ,s); return map; } } package com.neutech.controller.system;@CrossOrigin @RestController public class LoginController { @Autowired UserServiceImpl userService; @RequestMapping("/login") public Map<String,Object> login (@RequestBody User user) { User user2 = userService.getUserByID(user.getId());
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 List<SelectK> list2= new ArrayList<>(); for (User user1:list){ list2.add(new SelectK(user1.getName(),user1.getId())); } res.put("doc" ,list2); if (regDepart.getRegType().equals("专家号" )){ res.put("type" ,"50" ); }else if (regDepart.getRegType().equals("普通号" )){ res.put("type" ,"20" ); }else res.put("type" ,"" ); return res; } @PostMapping("/reception/getRgeNumber") public int getNumber (@RequestBody RegDepart regDepart) { String docID=regDepart.getOptDoc(); return regService.getRegNumber(docID)-regService.getNowNum(docID); } @PostMapping("/reception/fetchdate") public Map<String,Object> getFetchdate (@RequestBody Map<String,Object> map) { String optDoc =(String)map.get("optDoc" ); String idNum =(String)map.get("idNum" ); Map<String,Object> res=regService.getFetchdate(optDoc,idNum); return res; } @PostMapping("/reception/getPatient") public Map<String,Object> getPatient (@RequestBody Map<String,Object> map) { String idNum =(String)map.get("idNum" ); Map<String, Object> patient = regService.getPatient(idNum); return patient; }
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 @PostMapping("/searchdata") public Map<String,Object> searchdata (@RequestBody Map<String,Object> map) { String departID=(String)map.get("depart" ); List<DocTableData> byDep = docschMagService.getByDep(departID); ListTableData listTableData= new ListTableData(); listTableData.setDepID(departID); listTableData.setList(byDep); Map<String,Object> map1=new HashMap<>(); map1.put("table" ,listTableData); map1.put("flag" ,"yes" ); return map1; } @PostMapping("/keepdata") public Map<String,Object> update (@RequestBody ListTableData list) { Map<String,Object> map=new HashMap<>(); List<DocTableData> DocTableDatas = list.getList(); boolean isupdate = docschMagService.update(list); if (isupdate){ map.put("flag" ,"yes" ); } return map; } } package com.neutech.controller.system;@CrossOrigin @RestController public class DepController { @Autowired DepService depService; @RequestMapping("/addDep") public Map<String,Object> addDep (@RequestBody DepMana depMana) {
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 @CrossOrigin @RestController public class DiagnoseController { @Autowired DiagnoseService diagnoseService; @RequestMapping("/outdepart/dia/quezhen") public Map<String,Object> quezhen (@RequestBody Map<String,Object> map) { String regID=(String)map.get("regID" ); int i = diagnoseService.zhenbi(regID); Map<String,Object> res=new HashMap<>(); if (i>0 ){ res.put("flag" ,"true" ); } return res; } @RequestMapping("/outdepart/dia/getQueZhenDate") public Map<String,Object> loading (@RequestBody Map<String,Object> map) { String reg_ID=(String) map.get("patient_reg_id" ); Map<String,Object> res=new HashMap<>(); Map<String, Object> icd1 = diagnoseService.getICD(); res.put("childtable1" ,icd1.get("childtable1" )); res.put("childtable2" ,icd1.get("childtable2" )); if (reg_ID.length()!=14 ){ return res;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 }else { res.put("flag" ,"true" ); } return res; } @RequestMapping("outdepart/dia/delete") public Map<String,Object> deletew (@RequestBody Map<String,Object> map) { Map<String,Object> res= new HashMap<>(); String regID=(String) map.get("regID" ); String icdID=(String) map.get("icdID" ); int delete = diagnoseService.delete(regID, icdID); if (delete==0 ){ res.put("flag" ,"false" ); }else { res.put("flag" ,"true" ); } return res; } } package com.neutech.controller.outdepart;@CrossOrigin @RestController public class InspectionController {
——————————PayStart——————————
项目链接: https://javayms.github.io?id=361122512008200mu https://javayms.pages.dev?id=361122512008200mu