上次給大家分享了一個springboot+vue的校園招聘系統(tǒng),視頻教程加項目源碼,都是開源的,應該說很香了,今天再給大家分享一個不錯的springboot的項目。
老規(guī)矩,開源,開源,開源!!!
金九銀十來了,小伙伴們,沖啊!前面已經(jīng)整理了很多的面試題,拿去學習吧!
1,??爆肝!整理了一周的Spring面試大全【含答案】,吊打Java面試官【建議收藏】!??
2,??肝完了,一天掌握數(shù)據(jù)結構和算法面試題,吊打面試官,建議收藏??
3,??集合很簡單?開什么玩笑?肝了一周,全是精華,萬字講解!面試再不怕集合問題了!!!??
4,肝完了,總結了SpringBoot與緩存的知識點,快速掌握
6,入計算機專業(yè)的師弟師妹,別再迷茫了,我整理一份CS的學習路線大全!幫你超越大部分的同學!
7,??專科出身拿到阿里offer,小孟直呼666!【付硬核面試】??
8,??設計模式肝完了,還挺全!騰訊和阿里的offer已拿!??
廢話不叨叨,直接上干貨!
目錄
https://gitee.com/springmeng/medical-system
一般開發(fā)項目,猛哥還是比較快,但是錄教程真的非常耗時!
為了幫助大家更好的理解項目,還是錄吧!
都開源了!
小伙伴,記得給個三連!
教程非常詳細了:
?系統(tǒng)開發(fā)平臺:
JDK1.8+Maven3.6.1
框架:Springboot2.X+Layui
數(shù)據(jù)庫和工具:MySql5.7 Navicat
開發(fā)工具: Intellij Idea
瀏覽器:Chrome
涉及到的技術:MySql、Springboot、MyBatisPlus、lombok、Shiro、layui、jquery、element
?
?
?
?
?
?
?
?
大家若看詳細的演示還是去看視頻吧:?
?https://www.bilibili.com/video/BV1eh411k7P3
老鐵,這些好的實戰(zhàn)項目,你確認不三連嗎?嘿嘿……
controller:
@Controllerpublic class UserController { /** * 轉向登錄頁面 */ @RequestMapping(value = "/login") public String login(){ return "/login"; } /** * 判斷用戶登錄是否成功 */ @RequestMapping(value = "/toLogin") @ResponseBody public Object toLogin(String username,String password){ if(username==null||password==null){ return ResultMapUtil.getHashMapLogin("用戶名密碼不能為空","2"); } Subject subject = SecurityUtils.getSubject(); UsernamePasswordToken token = new UsernamePasswordToken(username,password); try{ subject.login(token); }catch (UnknownAccountException e){ return ResultMapUtil.getHashMapLogin("用戶名不存在","2"); }catch (IncorrectCredentialsException e){ return ResultMapUtil.getHashMapLogin("密碼錯誤","2"); } return ResultMapUtil.getHashMapLogin("驗證成功","1"); } /** * 轉向后臺管理首頁 */ @RequestMapping(value = "/index") public String index(){ return "/index"; } /** * 退出登錄 */ @RequestMapping(value = "/logout") public String logout(){ Subject subject = SecurityUtils.getSubject(); subject.logout(); return "redirect:/login"; }}
SupplierController
public class SupplierController { @Autowired private ISupplierService supplierService; /** * 轉向供應商頁面 */ @RequestMapping public String supplier(){ return "/supplier"; } /** * 分頁查詢供應商列表 */ @RequestMapping(value = "/supplierQueryPage") @ResponseBody public Object supplierQueryPage(String param, @RequestParam(defaultValue = "1")int pageNum,@RequestParam(defaultValue = "10")int pageSize){ try{ IPage 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"; } /** * 修改一個供應商 */ @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); } }
SaleinfoController
@Autowired private ISaleinfoService saleinfoService; /** * 轉向銷售記錄頁面 */ @RequestMapping public String saleinfo(){ return "/saleinfo"; } /** * 分頁查詢銷售記錄列表 */ @RequestMapping(value = "/saleinfoQueryPage") @ResponseBody public Object saleinfoQueryPage(String param, @RequestParam(defaultValue = "1")int pageNum,@RequestParam(defaultValue = "10")int pageSize){ try{ IPage iPage = saleinfoService.selectSaleinfoPage(pageNum,pageSize,param); return ResultMapUtil.getHashMapMysqlPage(iPage); } catch (Exception e){ return ResultMapUtil.getHashMapException(e); } } /** * 轉向銷售記錄新增頁面 */ @RequestMapping(value = "/saleinfoPage") public String saleinfoPage(){ return "/saleinfoPage"; } /** * 添加一個銷售記錄 */ @RequestMapping(value = "/saleinfoAdd") @ResponseBody public Object saleinfoAdd(Saleinfo saleinfo){ try{ int i = saleinfoService.addSaleinfo(saleinfo); return ResultMapUtil.getHashMapSave(i); } catch (Exception e){ return ResultMapUtil.getHashMapException(e); } } /** * 轉向銷售記錄編輯頁面 */ @RequestMapping(value = "/saleinfoQueryById") public String saleinfoQueryById(@RequestParam(name = "id",required = true)Integer id, Model model){ Saleinfo saleinfo = saleinfoService.querySaleinfoById(id); model.addAttribute("obj",saleinfo); return "/saleinfoPage"; } /** * 修改一個銷售記錄 */ @RequestMapping(value = "/saleinfoEdit") @ResponseBody public Object saleinfoEdit(Saleinfo saleinfo){ try{ int i = saleinfoService.editSaleinfo(saleinfo); return ResultMapUtil.getHashMapSave(i); } catch (Exception e){ return ResultMapUtil.getHashMapException(e); } } /** * 刪除一個銷售記錄 */ @RequestMapping(value = "/saleinfoDelById") @ResponseBody public Object saleinfoDelById(Integer id){ try{ int i = saleinfoService.delSaleinfoById(id); return ResultMapUtil.getHashMapDel(i); } catch (Exception e){ return ResultMapUtil.getHashMapException(e); } }
DROP TABLE IF EXISTS `billinfo`;CREATE TABLE `billinfo` ( `id` int(10) NOT NULL AUTO_INCREMENT COMMENT "主鍵", `sname` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT "供應商名稱", `dname` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT "藥品名稱", `count` int(10) NULL DEFAULT NULL COMMENT "藥品數(shù)量", `total` float(20, 2) NULL DEFAULT NULL COMMENT "總金額", `buytime` datetime(0) NULL DEFAULT NULL COMMENT "進貨時間", PRIMARY KEY (`id`) USING BTREE) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = "賬單信息" ROW_FORMAT = Dynamic;-- ------------------------------ Records of billinfo-- ----------------------------INSERT INTO `billinfo` VALUES (1, "哈藥六廠", "感冒靈", 1000, 22500.00, "2021-02-02 16:00:00");-- ------------------------------ Table structure for druginfo-- ----------------------------DROP TABLE IF EXISTS `druginfo`;CREATE TABLE `druginfo` ( `id` int(10) NOT NULL AUTO_INCREMENT COMMENT "主鍵", `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT "名稱", `supplier` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT "供應商", `producttime` date NULL DEFAULT NULL COMMENT "生產(chǎn)時間", `warrenty` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT "保質期(月)", `number` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT "藥品編碼", `price` float(20, 2) NULL DEFAULT NULL COMMENT "價格", `stock` int(10) NULL DEFAULT NULL COMMENT "庫存", PRIMARY KEY (`id`) USING BTREE) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = "藥品信息" ROW_FORMAT = Dynamic;-- ------------------------------ Records of druginfo-- ----------------------------INSERT INTO `druginfo` VALUES (2, "感冒靈", "哈藥六廠", "2020-01-27", "24", "1001", 22.50, 50);INSERT INTO `druginfo` VALUES (3, "白藥片", "云南白藥", "2021-02-02", "36", "2021052", 30.50, 100);-- ------------------------------ Table structure for owinfo-- ----------------------------DROP TABLE IF EXISTS `owinfo`;CREATE TABLE `owinfo` ( `id` int(10) NOT NULL AUTO_INCREMENT COMMENT "主鍵", `dname` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT "藥品名稱", `type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT "出庫/入庫", `count` int(10) NULL DEFAULT NULL COMMENT "數(shù)量", `operator` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT "操作人", `createtime` datetime(0) NULL DEFAULT NULL COMMENT "操作時間", PRIMARY KEY (`id`) USING BTREE) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = "出入庫" ROW_FORMAT = Dynamic;-- ------------------------------ Records of owinfo-- ----------------------------INSERT INTO `owinfo` VALUES (1, "白藥片", "出庫", 3, "華佗", "2021-02-20 14:21:53");INSERT INTO `owinfo` VALUES (2, "感冒靈", "入庫", 20, "扁鵲", "2021-02-20 14:22:12");-- ------------------------------ Table structure for problem-- ----------------------------DROP TABLE IF EXISTS `problem`;CREATE TABLE `problem` ( `id` int(10) NOT NULL AUTO_INCREMENT COMMENT "主鍵", `dname` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT "藥品名稱", `dcount` int(10) NULL DEFAULT NULL COMMENT "問題藥品數(shù)量", `dprice` float(20, 2) NULL DEFAULT NULL COMMENT "藥品單價", `reason` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT "問題原因", `createtime` datetime(0) NULL DEFAULT NULL COMMENT "操作時間", PRIMARY KEY (`id`) USING BTREE) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = "問題藥品" ROW_FORMAT = Dynamic;-- ------------------------------ Records of problem-- ----------------------------INSERT INTO `problem` VALUES (1, "感冒靈", 2, 22.50, "受潮了。不能欺騙消費者。", "2021-02-24 14:19:36");-- ------------------------------ Table structure for returngoods-- ----------------------------DROP TABLE IF EXISTS `returngoods`;CREATE TABLE `returngoods` ( `id` int(10) NOT NULL AUTO_INCREMENT COMMENT "主鍵", `dname` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT "藥品名稱", `count` int(10) NULL DEFAULT NULL COMMENT "數(shù)量", `reason` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT "退貨原因", `total` float(20, 2) NULL DEFAULT NULL COMMENT "總金額", `operatetime` datetime(0) NULL DEFAULT NULL COMMENT "操作時間", PRIMARY KEY (`id`) USING BTREE) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = "收到退貨" ROW_FORMAT = Dynamic;
我是小孟,記得點個贊支持下,謝了!
想聯(lián)系我,可以去主頁。
小伙伴們點贊、收藏、評論,一鍵三連走起呀,下期見~~
?
文章版權歸作者所有,未經(jīng)允許請勿轉載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。
轉載請注明本文地址:http://specialneedsforspecialkids.com/yun/118968.html
摘要:哪吒社區(qū)技能樹打卡打卡貼函數(shù)式接口簡介領域優(yōu)質創(chuàng)作者哪吒公眾號作者架構師奮斗者掃描主頁左側二維碼,加入群聊,一起學習一起進步歡迎點贊收藏留言前情提要無意間聽到領導們的談話,現(xiàn)在公司的現(xiàn)狀是碼農(nóng)太多,但能獨立帶隊的人太少,簡而言之,不缺干 ? 哪吒社區(qū)Java技能樹打卡?【打卡貼 day2...
摘要:前言體系中很多庫之間相互依賴,但是由于版本之間差異比較大,我們需要比較精確的知道每個庫的版本對應關系,不然很容易造成庫與庫之間對應不上,導致部分功能無效,甚至是異常情況。 前言:Spring體系中很多庫之間相互依賴,但是由于版本之間差異比較大,我們需要比較精確的知道每個庫的版本對應關系,不然很容易造成庫與庫之間對應不上,導致部分功能無效,甚至是異常情況。程序員排查起來一個頭兩個大,本篇...
目錄 一、什么是C語言? 二、第一個C語言程序 代碼 程序分析 ?程序運行 一個工程中出現(xiàn)兩個及以上的main函數(shù) 代碼 運行結果 分析 三、數(shù)據(jù)類型 數(shù)據(jù)各種類型 為什么會有這么多的數(shù)據(jù)類型? 計算機單位 ?各個數(shù)據(jù)類型的大小 ?注意事項 數(shù)據(jù)類型的使用 四、變量和常量 變量的分類 變量的使用 變量的作用域和生命周期 ?常量 五、字符串+轉義字符+注釋 字符串 ?轉義字符 注釋 六、選擇語句 ?...
閱讀 3266·2021-11-18 10:02
閱讀 3443·2021-10-11 10:58
閱讀 3375·2021-09-24 09:47
閱讀 1120·2021-09-22 15:21
閱讀 3914·2021-09-10 11:10
閱讀 3277·2021-09-03 10:28
閱讀 1748·2019-08-30 15:45
閱讀 2136·2019-08-30 14:22