基于javaweb+mysql的springboothis智能医院管理系统(java+springboot+vue+maven+mybatis+mysql)
运行环境
Java≥8、MySQL≥5.7、Node.js≥10
开发工具
后端:eclipse/idea/myeclipse/sts等均可配置运行
前端:WebStorm/VSCode/HBuilderX等均可
适用
课程设计,大作业,毕业设计,项目练习,学习演示等
功能说明
基于javaweb+mysql的SpringBoothis智能医院管理系统(java+springboot+vue+maven+mybatis+mysql)
一、项目运行 环境配置:
Jdk1.8 + Tomcat8.5 + Mysql + HBuilderX(Webstorm也行)+ Eclispe(IntelliJ IDEA,Eclispe,MyEclispe,Sts都支持)。
项目技术:
Spring + SpringBoot+ mybatis + Maven + Vue 等等组成,B/S模式 + Maven管理等等。
WithdnumService withdnumService;
@RequestMapping("/reception/loadingwith")
public Map<String,Object> loadingreg(){
//退号页面加载信息
return withdnumService.loading();
}
@RequestMapping("/reception/withby")
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;
}
}
/*
* @CrossOrigin:跨域
* @RestController:标识只返回字符串,而不是视图解析
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;
}
}
@CrossOrigin
return res;
}
/**
* 确诊界面的初始化,当换人是(点击选择时)
* 返回检查项,西医/中医诊断,诊断结果,处理意见以及两个ICD编码的所有信息,以供医生添加使用
* @param map
* @return
*/
@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;
}
//根据挂号单号就去查找
List<CheckItem> inspection = diagnoseService.getInspection(reg_ID);//获取检查项
Map<String, Object> icd = diagnoseService.getICD(reg_ID);
PatientMessage message = diagnoseService.getMessage(reg_ID);
ZDMessage zdMessage=new ZDMessage(message);
res.put("table",inspection);
res.put("form",zdMessage);
res.put("table1",icd.get("table1"));
res.put("table2",icd.get("table2"));
res.put("isAdd","true");
return res;
}
@RequestMapping("/outdepart/addwicd")
public Map<String,Object> addWicd(@RequestBody Map<String,Object> map){
//添加西医诊断
String regID=(String) map.get("regID");
String icdID=(String) map.get("icdID");
int addicd = diagnoseService.addicd(regID, icdID);
Map<String,Object> res=new HashMap<>();
if(addicd==0){
res.put("flag","false");
}else {
res.put("flag","true");
String flag="yes";
userService.deleteById(id);
res.put("flag",flag);
return res;
}
@RequestMapping("/updateUser")
public Map<String ,Object> updataUser(@RequestBody UserShow user){
User user1=new User(user);
boolean isupdate = userService.updateUser(user1);
HashMap<String,Object> res=new HashMap<>();
String flag="yes";
return res;
}
@RequestMapping("/userloading")
public Map<String,Object> loading(){
Map<String, Object> loading = userService.loading();
return loading;
}
}
@CrossOrigin
@RestController
public class PatientregController {
@Autowired
PatientregService patientregService;
return res;
}
}
@CrossOrigin
@RestController
public class MedicineController {
@Autowired
MedicineService medicineService;
@RequestMapping("/addMedicine")
public Map<String, Object> addMedicine(@RequestBody Medicine medicine){