——————————DescriptionStart——————————
运行环境
Java≥8、MySQL≥5.7
开发工具
eclipse/idea/myeclipse/sts等均可配置运行
适用
课程设计,大作业,毕业设计,项目练习,学习演示等
功能说明





基于javaweb的SpringBoot医院药品管理系统设计和实现(java+springboot+ssm+mysql+thymeleaf+html+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 41 42 43 44 45 46 47 48 49 50 51
| return "/supplier"; }
@RequestMapping(value = "/supplierQueryPage") @ResponseBody public Object supplierQueryPage(String param, @RequestParam(defaultValue = "1")int pageNum,@RequestParam(defaultValue = "10")int pageSize){ try{ IPage<Supplier> iPage = supplierService.selectSupplierPage(pageNum,pageSize,param); return ResultMapUtil.getHashMapMysqlPage(iPage); } catch (Exception e){ return ResultMapUtil.getHashMapException(e); } }
@RequestMapping(value = "/supplierPage") public String supplierPage(){ return "/supplierPage"; }
@RequestMapping(value = "/supplierAdd") @ResponseBody public Object supplierAdd(Supplier supplier){ try{ supplier.setCreatetime(new Date()); int i = supplierService.addSupplier(supplier); return ResultMapUtil.getHashMapSave(i); } catch (Exception e){ return ResultMapUtil.getHashMapException(e); } }
@RequestMapping(value = "/supplierQueryById") public String supplierQueryById(@RequestParam(name = "id",required = true)Integer id, Model model){ Supplier supplier = supplierService.querySupplierById(id); model.addAttribute("obj",supplier); return "/supplierPage"; }
|
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
|
@RequestMapping(value = "/supplierEdit") @ResponseBody public Object supplierEdit(Supplier supplier){ try{ int i = supplierService.editSupplier(supplier); return ResultMapUtil.getHashMapSave(i); } catch (Exception e){ return ResultMapUtil.getHashMapException(e); } }
@RequestMapping(value = "/supplierDelById") @ResponseBody public Object supplierDelById(Integer id){ try{ int i = supplierService.delSupplierById(id); return ResultMapUtil.getHashMapDel(i); } catch (Exception e){ return ResultMapUtil.getHashMapException(e); } }
@RequestMapping(value = "/supplierList") @ResponseBody public Object supplierList(){ List<Supplier> supplierList = supplierService.querySupplierList(); return ResultMapUtil.getHashMapList(supplierList); }
}
|
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
|
package com.javaclimb.drug.controller;
@Controller @RequestMapping(value = "/billinfo") public class BillinfoController {
@Autowired private IBillinfoService billinfoService;
@RequestMapping public String billinfo(){ return "/billinfo"; }
|
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
|
@RequestMapping(value = "/druginfoAdd") @ResponseBody public Object druginfoAdd(Druginfo druginfo){ try{ int i = druginfoService.addDruginfo(druginfo); return ResultMapUtil.getHashMapSave(i); } catch (Exception e){ return ResultMapUtil.getHashMapException(e); } }
@RequestMapping(value = "/druginfoQueryById") public String druginfoQueryById(@RequestParam(name = "id",required = true)Integer id, Model model){ Druginfo druginfo = druginfoService.queryDruginfoById(id); model.addAttribute("obj",druginfo); return "/druginfoPage"; }
@RequestMapping(value = "/druginfoEdit") @ResponseBody public Object druginfoEdit(Druginfo druginfo){ try{ int i = druginfoService.editDruginfo(druginfo); return ResultMapUtil.getHashMapSave(i); } catch (Exception e){ return ResultMapUtil.getHashMapException(e); } }
@RequestMapping(value = "/druginfoDelById") @ResponseBody public Object druginfoDelById(Integer id){ try{ int i = druginfoService.delDruginfoById(id); return ResultMapUtil.getHashMapDel(i); } catch (Exception e){ return ResultMapUtil.getHashMapException(e); }
|
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
|
package com.javaclimb.drug.controller;
@Controller @RequestMapping(value = "/saleinfo") public class SaleinfoController {
@Autowired private ISaleinfoService saleinfoService;
@RequestMapping public String saleinfo(){ return "/saleinfo"; }
@RequestMapping(value = "/saleinfoQueryPage")
|
——————————PayStart——————————
项目链接:
https://javayms.github.io?id=311422272105200bb
https://javayms.pages.dev?id=311422272105200bb