基于javaweb+mysql的springboot药房管理系统(java+springboot+vue+elementui+layui+mysql)

基于javaweb+mysql的springboot药房管理系统(java+springboot+vue+elementui+layui+mysql)

私信源码获取及调试交流

运行环境

Java≥8、MySQL≥5.7、Node.js≥10

开发工具

后端:eclipse/idea/myeclipse/sts等均可配置运行

前端:WebStorm/VSCode/HBuilderX等均可

适用

课程设计,大作业,毕业设计,项目练习,学习演示等

功能说明

基于javaweb的SpringBoot药房管理系统(java+springboot+vue+elementui+layui+mysql)

项目介绍

基于SpringBoot Vue的药房管理系统

角色:管理员、用户、服务人员

在系统首页可以查看首页,药品信息,疫情常识,保健品,系统公告,个人中心,购物车等内容进行详细操作

管理员:管理员登录系统后,可以对首页,个人中心,用户管理,保健品分类管理,药品分类管理,药品信息管理,疫情常识管理,保健品管理,系统管理,订单管理等进行相应的操作管理

用户:用户进入系统后能对首页,药品信息,疫情常识,保健品,系统公告,个人中心,购物车等功能进行操作

环境需要

1.运行环境:最好是java jdk 1.8,我们在这个平台上运行的。其他版本理论上也可以。 2.IDE环境:IDEA,Eclipse,Myeclipse都可以。推荐IDEA; 3.硬件环境:windows 7/8/10 1G内存以上;或者 Mac OS; 4.数据库:MySql 5.7/8.0版本均可; 5.是否Maven项目:是;

技术栈

后端:SpringBoot+Mybaits

前端:Vue+ElementUI+Layui+HTML+CSS+JS

使用说明

项目运行: 1. 使用Navicat或者其它工具,在mysql中创建对应sql文件名称的数据库,并导入项目的sql文件; 2. 使用IDEA/Eclipse/MyEclipse导入项目,导入成功后请执行maven clean;maven install命令,然后运行; 3. 将项目中application.yml配置文件中的数据库配置改为自己的配置;

文档介绍(课题背景与意义、系统实现功能、课题研究现状、系统相关技术、java技术、B/S架构、Mysql介绍、Mysql环境配置、Springboot框架、系统需求分析、系统功能、可行性研究、经济可行性、技术可行性、运行可行性、事件可行性、系统业务过程分析、系统业务过程分析、系统用例图、系统设计、数据库设计、系统整体设计、系统设计思想、系统流程图、系统详情设计、系统功能模块、系统功能模块、管理员功能模块):

药品信息展示页面:

系统公告展示页面:

信息详情展示:

药品订单展示详情:

后台登录展示页面:

后台药品管理列表展示:

药品信息展示页面:

} else {

ajaxInfo.setMsg("权限不足!请先登录~");

return ajaxInfo;

 后台管理员控制层:

@RestController

@CrossOrigin

@RequestMapping("/admin")

public class AdminController {

@Autowired

private AdminService adminService;

@RequestMapping("/insertStorage")

public AjaxInfo insertStroage(@RequestBody Instorage instorage, HttpSession session) {

System.out.println(instorage);


ajaxInfo.setCode(0);

ajaxInfo.setData(factories);

} else {

ajaxInfo.setCode(-2);

ajaxInfo.setMsg("权限不足!请先登录~");

return ajaxInfo;

@RequestMapping("/queryBuyer")

public AjaxInfo queryBuyer1(HttpSession session) {

AjaxInfo ajaxInfo = new AjaxInfo();

if (session.getAttribute("userName") != null) {

List<Buyer> buyers = queryService.queryBuyer();

ajaxInfo.setCode(0);


if (buyer1 == null) {

ajaxInfo.setMsg("该采购员不存在,请重新输入!");

ajaxInfo.setCode(-1);

} else {

ajaxInfo.setMsg("查询成功!");

ajaxInfo.setData(buyer1);

ajaxInfo.setCode(0);

} else {

ajaxInfo.setCode(-2);

ajaxInfo.setMsg("权限不足!请先登录~");


} else {

ajaxInfo.setCode(-2);

ajaxInfo.setMsg("权限不足!请先登录~");

return ajaxInfo;

出库管理控制层: 

@RestController

@CrossOrigin

@RequestMapping("/take")

public class TakeController {

@Autowired

private AdminService adminService;

ajaxInfo.setCode(-2);

ajaxInfo.setMsg("权限不足!请先登录~");

System.out.println("================="+ajaxInfo.getCode());

return ajaxInfo;

@RequestMapping("/deleteBuyer")

public AjaxInfo deleteBuyer(@RequestBody Buyer buyer, HttpSession session) {

AjaxInfo ajaxInfo = new AjaxInfo();

if (session.getAttribute("userName") != null) {

userService.deleteBuyer(buyer.getBuyerId());

ajaxInfo.setMsg("删除成功!");

} else {

ajaxInfo.setMsg("权限不足!请先登录~");

return ajaxInfo;

@RequestMapping("/updateBuyer")

AjaxInfo ajaxInfo = new AjaxInfo();

if (session.getAttribute("userName") != null) {

List<Factory> factories = queryService.queryFactory();

ajaxInfo.setCode(0);

ajaxInfo.setData(factories);

} else {

ajaxInfo.setCode(-2);

ajaxInfo.setMsg("权限不足!请先登录~");

return ajaxInfo;

@RequestMapping("/queryBuyer")

public AjaxInfo queryBuyer1(HttpSession session) {

takeService.insertOutStorage(o1);

}else{

ajaxInfo.setCode(-1);

ajaxInfo.setMsg("取药数量大于库存量,请重新输入!该药品当前库存量为:"+med.getMedStorage());

return ajaxInfo;

return ajaxInfo;

} else {

ajaxInfo.setMsg("权限不足!请先登录~");

return ajaxInfo;

权限控制层管理控制层:

@RestController

if (userByAcc == null||userByAcc.getUserRight()!=2) {

ajaxInfo.setMsg("该取药员不存在,请重新输入!");

ajaxInfo.setCode(-1);

} else {

ajaxInfo.setMsg("查询成功!");

ajaxInfo.setCode(0);

ajaxInfo.setData(userByAcc);

return ajaxInfo;

} else {

ajaxInfo.setCode(-2);

ajaxInfo.setMsg("权限不足!请先登录~");


return ajaxInfo;

return ajaxInfo;

} else {

ajaxInfo.setMsg("权限不足!请先登录~");

return ajaxInfo;

权限控制层管理控制层:

@RestController

@CrossOrigin

@RequestMapping("/query")

public class QueryController {

@Autowired

private QueryService queryService;

@RequestMapping("/queryMedicine")


int page=(medicineTable.getPage()-1)*medicineTable.getLimit();

medicineTable.setPage(page);

List<Factory> factories = queryService.queryFactoryByName(medicineTable);

ajaxInfo.setMsg("查询成功");

ajaxInfo.setCount(queryService.queryFactoryByNameCount(medicineTable));

ajaxInfo.setCode(0);

ajaxInfo.setData(factories);

} else {

ajaxInfo.setCode(-2);

ajaxInfo.setMsg("权限不足!请先登录~");

return ajaxInfo;

@RequestMapping("/queryBuyerByName")


if (session.getAttribute("userName") != null) {

userService.updateBuyer(buyer);

ajaxInfo.setMsg("更新成功!");

} else {

ajaxInfo.setMsg("权限不足!请先登录~");

return ajaxInfo;

 后台管理员控制层:

@RestController

@CrossOrigin

@RequestMapping("/admin")

public class AdminController {

@Autowired


List<Buyer> buyers = queryService.queryBuyerByName(medicineTable);

ajaxInfo.setMsg("查询成功");

ajaxInfo.setCount(queryService.queryBuyerByNameCount(medicineTable));

ajaxInfo.setCode(0);

ajaxInfo.setData(buyers);

} else {

ajaxInfo.setCode(-2);

ajaxInfo.setMsg("权限不足!请先登录~");

return ajaxInfo;

@RequestMapping("/queryUserByName")

public AjaxInfo queryUserByName(MedicineTable medicineTable, HttpSession session) {

AjaxInfo ajaxInfo = new AjaxInfo();

System.out.println(medicineTable);


@RequestMapping("/queryFactoryByName")

public AjaxInfo queryFactoryByName(MedicineTable medicineTable, HttpSession session) {

AjaxInfo ajaxInfo = new AjaxInfo();

System.out.println(medicineTable);

if (session.getAttribute("userName") != null) {

int page=(medicineTable.getPage()-1)*medicineTable.getLimit();

medicineTable.setPage(page);

List<Factory> factories = queryService.queryFactoryByName(medicineTable);

ajaxInfo.setMsg("查询成功");

ajaxInfo.setCount(queryService.queryFactoryByNameCount(medicineTable));

ajaxInfo.setCode(0);

ajaxInfo.setData(factories);


public AjaxInfo queryFactoryByName(MedicineTable medicineTable, HttpSession session) {

AjaxInfo ajaxInfo = new AjaxInfo();

System.out.println(medicineTable);

if (session.getAttribute("userName") != null) {

int page=(medicineTable.getPage()-1)*medicineTable.getLimit();

medicineTable.setPage(page);

List<Factory> factories = queryService.queryFactoryByName(medicineTable);

ajaxInfo.setMsg("查询成功");

ajaxInfo.setCount(queryService.queryFactoryByNameCount(medicineTable));

ajaxInfo.setCode(0);


ajaxInfo.setCode(0);

} else {

ajaxInfo.setMsg("权限不足!请先登录~");

return ajaxInfo;

@RequestMapping("/insertFactory")

public AjaxInfo insertFactory(@RequestBody Factory factory, HttpSession session) {

AjaxInfo ajaxInfo = new AjaxInfo();

if (session.getAttribute("userName") != null) {

Factory fId = adminService.getFactoryByfactoryId(factory.getFactoryId());

if (fId == null) {

adminService.insertFactory(factory);

ajaxInfo.setMsg("插入信息成功~");

ajaxInfo.setCode(0);
ajaxInfo.setMsg("查询成功!");

ajaxInfo.setData(med);

ajaxInfo.setCode(0);

System.out.println(med);

return ajaxInfo;

} else {

ajaxInfo.setMsg("权限不足!请先登录~");

ajaxInfo.setCode(-2);

return ajaxInfo;

@RequestMapping("/updateMedicine")

public AjaxInfo queryMedicineByName(MedicineTable medicineTable, HttpSession session) {

AjaxInfo ajaxInfo = new AjaxInfo();

System.out.println(medicineTable);

if (session.getAttribute("userName") != null) {

int page=(medicineTable.getPage()-1)*medicineTable.getLimit();

medicineTable.setPage(page);

List<Medicine> medicines = queryService.queryMedicineByName(medicineTable);

ajaxInfo.setMsg("查询成功");

ajaxInfo.setCount(queryService.queryMedicineByNameCount(medicineTable));

ajaxInfo.setCode(0);

ajaxInfo.setData(medicines);

请添加图片描述
请添加图片描述
请添加图片描述
请添加图片描述
请添加图片描述
请添加图片描述
请添加图片描述
请添加图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值