Source code acquisition : Blog home page " resources " Download in !

one , Project brief

function : The project is used springboot+layui+shiro Department of hospital management Unified , The business of the system is complex , Database total 36 Zhang Biao .

The project is divided into outpatient management , Hospitalization management , system management , Statistical management , number According to the center , Workforce Management , Warehouse management , Pharmacy management

This system focuses on outpatient and inpatient management Fill in the details of the patient , Such as name , Age , cell-phone number , Gender , body Certificate No , Select department registration type doctor , There will be a relative registration fee ,
When you click Submit, you will judge whether the information you entered is correct , If The mobile phone number or the ID number is being processed. , The phone number or The ID number is being processed . The registration page will be queried according to the radio button
All registration , Registration on the same day and pre fine spoon registration , And can be targeted when Days of registration to give users a series of operations , If transferred to hospital , If Patients with ongoing projects cannot be transferred to hospital , Relevant expenses need to be
You can't transfer to hospital until you hand it in

Functions of outpatient management : User registration , Prescription pricing , Project pricing , Project payment , Project inspection , Drug payment , Outpatient database

Functions of hospitalization management : Admission registration , Payment management , Drug bookkeeping , Project bookkeeping , Discharge settlement

System management function : Menu management , Role management , user management , Icon management , Data source monitoring Administration , The login account and password of the data source are :admin/admin

Statistical management : Monthly outpatient statistics , Monthly statistics of hospitalization , Annual outpatient statistics , Year of hospitalization Statistics , Doctor statistics , Outpatient day statistics Data center

Department Center Management , Doctor list management , Drug origin management , Project category Administration , Registration type management , Warehouse management , Manager management , Supplier management reason , Drug classification management , Drug dictionary management

Scheduling : Doctor scheduling U in Warehouse management : Warehouse in document management , Inventory query , Delivery order management , Operation record management, etc

Pharmacy management : Pharmacy details management , Outpatient drug taking management , Inpatient drug taking management

two , Project operation  

Environment configuration : Jdk1.8 + Tomcat8.5 + mysql + Eclispe (IntelliJ
IDEA,Eclispe,MyEclispe,Sts All support )

Project technology : JSP +Springboot+ SpringMVC + MyBatis + html+ css + JavaScript + JQuery +
Ajax + Layui+ maven wait

Address control layer :
@Controller @RequestMapping("area") public class AreaController { @Autowired
private AreaService areaService; /* * Query production address * */
@RequestMapping("findAllArea") @ResponseBody public Object AreaList(Area Area,
Integer page, Integer limit){ PageHelper.startPage(page, limit); List<Area>
listAll = areaService.findAllArea(Area); PageInfo pageInfo = new
PageInfo(listAll); Map<String, Object> tableData = new HashMap<String,
Object>(); // This is layui Return requested json data format tableData.put("code", 0);
tableData.put("msg", ""); // Take the number of all data as count Pass it to the front desk ( How many are there altogether ) tableData.put("count",
pageInfo.getTotal()); // Return the paged data ( Data to be displayed per page ) tableData.put("data",
pageInfo.getList()); return tableData; } /* * Add production address * */
@RequestMapping("addArea") @ResponseBody public Object addArea(Area Area){ int
count = areaService.count(Area); if(count==0){ int i =
areaService.addArea(Area); if(i==1){ return " Added successfully "; }else{ return " Add failed "; }
}else { return Area.getAreaName()+" Already exists "; } } /* * Delete production address * */
@RequestMapping("deleteArea") @ResponseBody public Object deleteArea(Integer
areaId){ int i = areaService.deleteArea(areaId); if(i==1){ return " Deleted successfully ";
}else{ return " Delete failed "; } } }

Financial business control layer :
@Controller @RequestMapping("finance") public class FinanceController {
@Autowired private FinanceService financeService; /* Comparison of monthly outpatient income */ @ResponseBody
@RequestMapping("reportYearFinance") public Object reportYearFinance(String
year){ List<Double> doubles = financeService.reportYearFinance(year); for (int
i = 0; i < doubles.size(); i++) { if(null==doubles.get(i)) { doubles.set(i,
0.0); } } return doubles; } /* Comparison of monthly hospitalization income */ @ResponseBody
@RequestMapping("zhuYuanYearFinance") public Object zhuYuanYearFinance(String
year){ List<Double> zhuYuan = financeService.zhuYuanYearFinance(year); for (int
i = 0; i < zhuYuan.size(); i++) { if(null==zhuYuan.get(i)) { zhuYuan.set(i,
0.0); } } return zhuYuan; } /* Comparison of annual outpatient income */ @ResponseBody
@RequestMapping("reportYearBingFinance") public Object reportYearBingFinance(){
List<Finance> bingReport = financeService.reportYearBingFinance(); return
bingReport; } /* Comparison of annual hospitalization income */ @ResponseBody
@RequestMapping("zhuYuanYearBingFinance") public Object
zhuYuanYearBingFinance(){ List<Finance> bingZhuYuan =
financeService.zhuYuanYearBingFinance(); return bingZhuYuan; } /* Statistical comparison of outpatient doctors' income */
@ResponseBody @RequestMapping("doctorDuibi") public Object doctorDuibi(
SdoctorDuibi sdoctorDuibi,Integer page, Integer limit){
PageHelper.startPage(page, limit); List<SdoctorDuibi> sdoctorDuibis =
financeService.doctorDuibi(sdoctorDuibi); PageInfo pageInfo = new
PageInfo(sdoctorDuibis); Map<String, Object> tableData = new HashMap<String,
Object>(); // This is layui Return requested json data format tableData.put("code", 0);
tableData.put("msg", ""); // Take the number of all data as count Pass it to the front desk ( How many are there altogether ) tableData.put("count",
pageInfo.getTotal()); // Return the paged data ( Data to be displayed per page ) tableData.put("data",
pageInfo.getList()); return tableData; } /* Statistical comparison of resident income */ @ResponseBody
@RequestMapping("zDoctorDuibi") public Object zDoctorDuibi(SdoctorDuibi
sdoctorDuibi, Integer page, Integer limit){ PageHelper.startPage(page, limit);
List<SdoctorDuibi> zDoctorDuibis = financeService.zDoctorDuibi(sdoctorDuibi);
PageInfo pageInfo = new PageInfo(zDoctorDuibis); Map<String, Object> tableData
= new HashMap<String, Object>(); // This is layui Return requested json data format tableData.put("code",
0); tableData.put("msg", ""); // Take the number of all data as count Pass it to the front desk ( How many are there altogether )
tableData.put("count", pageInfo.getTotal()); // Return the paged data ( Data to be displayed per page )
tableData.put("data", pageInfo.getList()); return tableData; } /* Outpatient income on the same day */
@ResponseBody @RequestMapping("currentFinance") public Object
currentFinance(String current){ List<currentFinance> currentFinances =
financeService.currentFinance(current); return currentFinances; } }

Role information control layer :
@Controller @RequestMapping("role") public class RoleController { @Autowired
private RoleService roleService; @RequestMapping("loadAllRole") @ResponseBody
public Object loadAllRole(Role role, Integer page, Integer limit) {
PageHelper.startPage(page, limit); List<Role> roles =
roleService.loadAllRole(role); PageInfo pageInfo = new PageInfo(roles);
Map<String, Object> tableData = new HashMap<String, Object>();
// This is layui Return requested json data format tableData.put("code", 0); tableData.put("msg", "");
// Take the number of all data as count Pass it to the front desk ( How many are there altogether ) tableData.put("count", pageInfo.getTotal());
// Return the paged data ( Data to be displayed per page ) tableData.put("data", pageInfo.getList()); return
tableData; } @RequestMapping("insertRole") @ResponseBody public String
insertRole(Role role) { int i = roleService.insertRole(role); if (i == 1) {
return " Added successfully "; } else { return " Add failed "; } } @RequestMapping("updateRole")
@ResponseBody public String updateRole(Role role) { int i =
roleService.updateRole(role); if (i == 1) { return " Modified successfully "; } else { return
" Modification failed "; } } @RequestMapping("deleteRole") @ResponseBody public String
deleteRole(Integer roleid) { roleService.deleteRoleId(roleid);
roleService.deleteRoleUserId(roleid); roleService.deleteRoleMenuId(roleid);
return " Deleted successfully "; } // Load role management assignment menu @RequestMapping("initRoleMenuTreeJson")
@ResponseBody public DataGridView initRoleMenuTreeJson(Integer roleid) { return
roleService.initRoleMenuTreeJson(roleid); } // Save the relationship between roles and menus
@RequestMapping("saveRoleMenu") @ResponseBody public Object
saveRoleMenu(RoleMenu roleMenu){ roleService.saveRoleMenu(roleMenu); return
" Successfully assigned "; } }

Drug warehouse control layer :
@Controller @RequestMapping("seldrugstore") public class StoreController {
@Autowired private StoreService storeService; @Autowired private PutinService
putinService; @Autowired private RecordService rs; // Query drug warehouse
@RequestMapping("selectdrugstore") @ResponseBody public Object
seldrugstore(Drugstore drugstore, Integer page, Integer limit) {
PageHelper.startPage(page, limit); List<Drugstore> drugstores =
storeService.selStore(drugstore); PageInfo pageInfo = new PageInfo(drugstores);
Map<String, Object> drugstoresData = new HashMap<String, Object>();
// This is layui Return requested json data format drugstoresData.put("code", 0); drugstoresData.put("msg",
""); // Take the number of all data as count Pass it to the front desk ( How many are there altogether ) drugstoresData.put("count",
pageInfo.getTotal()); // Return the paged data ( Data to be displayed per page ) drugstoresData.put("data",
pageInfo.getList()); return drugstoresData; } // Query drug type
@RequestMapping("seltype") @ResponseBody public Object seltype(Type type) {
List<Type> seltype = storeService.seltype(type); return seltype; } // Query UOM
@RequestMapping("selunit") @ResponseBody public Object selunit(Unit unit) {
List<Unit> selunit = storeService.selunit(unit); return selunit; } // Query origin
@RequestMapping("selarea") @ResponseBody public Object selarea(Area area) {
List<Area> selarea = storeService.selarea(area); return selarea; } // Query handler
@RequestMapping("selskull") @ResponseBody public Object selskull(Skull skull) {
List<Skull> selskull = storeService.selskull(skull); return selskull; } // Query supplier
@RequestMapping("selupplier") @ResponseBody public Object selupplier(Upplier
upplier, Model model) { List<Upplier> selupplier =
storeService.selupplier(upplier); return selupplier; } // Modify the basic information of drugs in the warehouse
@RequestMapping("updrug") @ResponseBody public Object updrugstore(Drugstore
drugstore) { int add = storeService.updrugstore(drugstore); if (add == 1) {
return " Modified successfully "; } else { return " Modification failed "; } } // supplier
@RequestMapping("bpisselupplier") public Object bpisselupplier(Upplier upplier,
Model model) { List<Upplier> selupplier = storeService.selupplier(upplier);
return "drugstore/c_beputinstorage"; } // Query drug list @RequestMapping("selectdgty")
@ResponseBody public Object selectdgty(Drugdictionary drugdictionary, Integer
page, Integer limit) { PageHelper.startPage(page, limit); List<Drugdictionary>
drugdictiona = putinService.seldcy(drugdictionary); PageInfo pageInfo = new
PageInfo(drugdictiona); Map<String, Object> drugstoresData = new
HashMap<String, Object>(); // This is layui Return requested json data format drugstoresData.put("code",
0); drugstoresData.put("msg", ""); // Take the number of all data as count Pass it to the front desk ( How many are there altogether )
drugstoresData.put("count", pageInfo.getTotal()); // Return the paged data ( Data to be displayed per page )
drugstoresData.put("data", pageInfo.getList()); return drugstoresData; }
// Add a drug receipt @RequestMapping("adddrugs") @ResponseBody public Integer
adddrugs(Drugstore drugstore,Record record) { System.out.print(" Query method "); Integer
updrugnumber=0; Integer adddrugstore=0; int seldrugname =
putinService.seldrugname(drugstore);
System.out.println(seldrugname+"yyyyyyyyyyyyyyyyyyyyyyyy"); if(seldrugname==1){
System.out.print(" Enter the modification method "); updrugnumber =
putinService.updrugnumber(drugstore); System.out.print(" Add record table 0"); int addjilu =
rs.addjilu(record);// Add a record } if (seldrugname!=1){ System.out.print(" Enter add method ");
adddrugstore = putinService.adddrugstore(drugstore);
System.out.print(" Add record table 1"); int addjilu = rs.addjilu(record);// Add a record } return
adddrugstore+updrugnumber; } // Query the inventory quantity of the selected drugs @RequestMapping("selnumber")
@ResponseBody public int selnumber(Drugstore drugstore) {
System.out.print(" Query quantity method "); int selnumber = putinService.selnumber(drugstore);
System.out.println(selnumber); return selnumber; } // Query the insufficient quantity of drugs in the warehouse
@RequestMapping("selectlackdrug") @ResponseBody public Object
selectlackdrug(Drugstore drugstore, Integer page, Integer limit) {
PageHelper.startPage(page, limit); List<Drugstore> drugstores =
storeService.selectlackdrug(drugstore);// Inquire about drugs with insufficient quantity PageInfo pageInfo = new
PageInfo(drugstores); Map<String, Object> drugstoresData = new HashMap<String,
Object>(); // This is layui Return requested json data format drugstoresData.put("code", 0);
drugstoresData.put("msg", ""); // Take the number of all data as count Pass it to the front desk ( How many are there altogether )
drugstoresData.put("count", pageInfo.getTotal()); // Return the paged data ( Data to be displayed per page )
drugstoresData.put("data", pageInfo.getList()); return drugstoresData; }
// Query purchase order @RequestMapping("selcaigou") @ResponseBody public Object
selcaigou(Caigou caigou, Integer page, Integer limit) {
PageHelper.startPage(page, limit); List<Caigou> caigous =
storeService.selcaigou(caigou);// Query and traverse purchase table PageInfo pageInfo = new
PageInfo(caigous); Map<String, Object> drugstoresData = new HashMap<String,
Object>(); // This is layui Return requested json data format drugstoresData.put("code", 0);
drugstoresData.put("msg", ""); // Take the number of all data as count Pass it to the front desk ( How many are there altogether )
drugstoresData.put("count", pageInfo.getTotal()); // Return the paged data ( Data to be displayed per page )
drugstoresData.put("data", pageInfo.getList()); return drugstoresData; }
// Add a drug purchase order @RequestMapping("addcaigou") @ResponseBody public Integer
addcaigou(Caigou caigou) { int selcaigouname =
storeService.selcaigouname(caigou);// Query whether this data already exists in the purchase order if(selcaigouname==0){ int
seldrugname =storeService.addcaigou(caigou);// add to return seldrugname; }else {
int upcaigounumber = storeService.upcaigounumber(caigou);// modify return
upcaigounumber; } } // Delete a drug purchase order @RequestMapping("delcaigou") @ResponseBody
public Integer delcaigou(Integer caigouid) { int seldrugname
=storeService.delcaigou(caigouid);// Delete this purchase data return seldrugname; } // What are the expired drugs
@RequestMapping("seldrugDateguoqi") @ResponseBody public Object
seldrugDateguoqi(Drugstore drugstore, Integer page, Integer limit) {
PageHelper.startPage(page, limit); List<Drugstore> drugstores =
storeService.seldrugDate(drugstore); PageInfo pageInfo = new
PageInfo(drugstores); Map<String, Object> drugstoresData = new HashMap<String,
Object>(); // This is layui Return requested json data format drugstoresData.put("code", 0);
drugstoresData.put("msg", ""); // Take the number of all data as count Pass it to the front desk ( How many are there altogether )
drugstoresData.put("count", pageInfo.getTotal()); // Return the paged data ( Data to be displayed per page )
drugstoresData.put("data", pageInfo.getList()); return drugstoresData; }
// Delete expired drugs @RequestMapping("delguoqidurg") @ResponseBody public Integer
delguoqidurg(Integer rugstoreId,Record record) { System.out.print(" Enter delete "); int
delguoqidurg = storeService.delguoqidurg(rugstoreId);// Delete this data
if(delguoqidurg==1){// If you delete this item Add to record table System.out.print(" Add record table "); int addjilu =
rs.addjilu(record); } return delguoqidurg; } }
Source code acquisition : Blog home page " resources " Download in !

Technology
©2019-2020 Toolsou All rights reserved,
C++ of string of compare usage Python Study notes ( one )evo Tool usage problems ——Degenerate covariance rank, Umeyama alignment is not possibleRISC-V_GD32VF103-TIMER0 timer interrupt java Array subscript variable _Java Basic grammar : array be based on stm32 Control four-wheel trolley motor drive ( one ) be based on redis Design of liking function Software engineering career planning mysql Query random data by conditions _MySQL Random query of several qualified records centos7 install RabbitMq