当前位置:   article > 正文

基于ssm jsp宠物医院信息管理系统源码论文PPT

基于ssm jsp宠物医院信息管理系统源码论文PPT

摘  要

21个世纪的今日,伴随着时代的飞速发展和发展,大家对科学合理信息的认知已经从低等向高端发展趋势,从起初的理性认识向感性认识发展趋势,管理的必要性也渐渐被我们所了解。科学合理的管理可以使信息储存精确、迅速、健全,并合理地推动其发展趋势。

文中主要是讲解了宠物医院信息管理系统软件,包含研究现状和涉及到的研发环境,随后阐述了操作系统的设计总体目标、系统软件要求、总体方案设计计划方案、系统开发和完成,最终对宠物医院信息管理系统软件实现了一些主要的检测。

文中以JSP为开发设计,完成了一个宠物医院信息管理系统软件。医院门诊小宠物信息管理系统软件的关键客户分成管理员;本人、客户管理、医师管理、医学常识管理、部门信息管理、医师信息管理、预约挂号管理、医嘱信息管理、药物信息管理、医嘱信息管理、留言板留言管理、系统软件管理和客户;本人、预约挂号管理、医嘱信息管理、医嘱信息管理、医师;本人、预约挂号管理、医嘱信息管理、首页;主页,医药知识,医师信息,药物信息,新闻报道信息,留言板留言意见反馈,我的,自动跳转到后台管理等作用。根据这种程序模块的设计方案,基本上保持了宠物医院信息管理系统软件的整个过程。

具体在系统设计上,采用了B/S的结构,同时,也使用JSP技术在动态页面上进行了设计,后台上采用Mysql数据库,是一个非常优秀的宠物医院信息管理系统

【542】基于ssm jsp宠物医院信息管理系统源码论文PPT

关键词 :宠物医院信息管理系统JSP技术;Mysql数据库;B/S结构


Abstract

  Today in the 21st century, with the rapid development and development of the times, everyone's cognition of scientific and reasonable information has developed from low to high, from the initial rational knowledge to perceptual knowledge, and the necessity of management is gradually understood by us. Scientific and reasonable management can make information storage accurate, rapid and sound, and reasonably promote its development trend。

This paper mainly explains the pet hospital information management system software, including the research status and the involved R & D environment, and then expounds the overall design objectives, system software requirements, overall scheme design plan, system development and completion of the operating system. Finally, some major tests are realized on the pet hospital information management system software.

In this paper, a pet hospital information management system software is developed based on JSP. The key customers of the hospital outpatient small pet information management system software are divided into administrators; I, customer management, doctor management, medical knowledge management, department information management, doctor information management, appointment registration management, medical order information management, drug information management, medical order information management, message board message management, system software management and customers; I, appointment registration management, medical order information management, medical order information management, doctor; I, appointment registration management, medical order information management, home page; Home page, medical knowledge, doctor information, drug information, news report information, message board comment feedback, mine, automatic jump to background management, etc. According to the design scheme of this program module, the whole process of the pet hospital information management system software is basically maintained.

Specifically in the system design, using the B / S structure, at the same time, also using JSP technology in the dynamic page design, the backstage using MySQL database, is a very excellent pet hospital information management system.

Key words: pet hospital information management system; JSP technology; MySQL database; B / S structure

  1. package com.controller;
  2. import java.text.SimpleDateFormat;
  3. import java.util.ArrayList;
  4. import java.util.Arrays;
  5. import java.util.Calendar;
  6. import java.util.Map;
  7. import java.util.HashMap;
  8. import java.util.Iterator;
  9. import java.util.Date;
  10. import java.util.List;
  11. import javax.servlet.http.HttpServletRequest;
  12. import com.utils.ValidatorUtils;
  13. import org.apache.commons.lang3.StringUtils;
  14. import org.springframework.beans.factory.annotation.Autowired;
  15. import org.springframework.format.annotation.DateTimeFormat;
  16. import org.springframework.web.bind.annotation.PathVariable;
  17. import org.springframework.web.bind.annotation.RequestBody;
  18. import org.springframework.web.bind.annotation.RequestMapping;
  19. import org.springframework.web.bind.annotation.RequestParam;
  20. import org.springframework.web.bind.annotation.RestController;
  21. import com.baomidou.mybatisplus.mapper.EntityWrapper;
  22. import com.baomidou.mybatisplus.mapper.Wrapper;
  23. import com.annotation.IgnoreAuth;
  24. import com.entity.YishengEntity;
  25. import com.entity.view.YishengView;
  26. import com.service.YishengService;
  27. import com.service.TokenService;
  28. import com.utils.PageUtils;
  29. import com.utils.R;
  30. import com.utils.MD5Util;
  31. import com.utils.MPUtil;
  32. import com.utils.CommonUtil;
  33. /**
  34. * 医生
  35. * 后端接口
  36. * @author
  37. * @email
  38. * @date 2024-03-11 11:23:12
  39. */
  40. @RestController
  41. @RequestMapping("/yisheng")
  42. public class YishengController {
  43. @Autowired
  44. private YishengService yishengService;
  45. @Autowired
  46. private TokenService tokenService;
  47. /**
  48. * 登录
  49. */
  50. @IgnoreAuth
  51. @RequestMapping(value = "/login")
  52. public R login(String username, String password, String captcha, HttpServletRequest request) {
  53. YishengEntity user = yishengService.selectOne(new EntityWrapper<YishengEntity>().eq("yishenggonghao", username));
  54. if(user==null || !user.getMima().equals(password)) {
  55. return R.error("账号或密码不正确");
  56. }
  57. String token = tokenService.generateToken(user.getId(), username,"yisheng", "医生" );
  58. return R.ok().put("token", token);
  59. }
  60. /**
  61. * 注册
  62. */
  63. @IgnoreAuth
  64. @RequestMapping("/register")
  65. public R register(@RequestBody YishengEntity yisheng){
  66. //ValidatorUtils.validateEntity(yisheng);
  67. YishengEntity user = yishengService.selectOne(new EntityWrapper<YishengEntity>().eq("yishenggonghao", yisheng.getYishenggonghao()));
  68. if(user!=null) {
  69. return R.error("注册用户已存在");
  70. }
  71. Long uId = new Date().getTime();
  72. yisheng.setId(uId);
  73. yishengService.insert(yisheng);
  74. return R.ok();
  75. }
  76. /**
  77. * 退出
  78. */
  79. @RequestMapping("/logout")
  80. public R logout(HttpServletRequest request) {
  81. request.getSession().invalidate();
  82. return R.ok("退出成功");
  83. }
  84. /**
  85. * 获取用户的session用户信息
  86. */
  87. @RequestMapping("/session")
  88. public R getCurrUser(HttpServletRequest request){
  89. Long id = (Long)request.getSession().getAttribute("userId");
  90. YishengEntity user = yishengService.selectById(id);
  91. return R.ok().put("data", user);
  92. }
  93. /**
  94. * 密码重置
  95. */
  96. @IgnoreAuth
  97. @RequestMapping(value = "/resetPass")
  98. public R resetPass(String username, HttpServletRequest request){
  99. YishengEntity user = yishengService.selectOne(new EntityWrapper<YishengEntity>().eq("yishenggonghao", username));
  100. if(user==null) {
  101. return R.error("账号不存在");
  102. }
  103. user.setMima("123456");
  104. yishengService.updateById(user);
  105. return R.ok("密码已重置为:123456");
  106. }
  107. /**
  108. * 后端列表
  109. */
  110. @RequestMapping("/page")
  111. public R page(@RequestParam Map<String, Object> params,YishengEntity yisheng,
  112. HttpServletRequest request){
  113. EntityWrapper<YishengEntity> ew = new EntityWrapper<YishengEntity>();
  114. PageUtils page = yishengService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, yisheng), params), params));
  115. request.setAttribute("data", page);
  116. return R.ok().put("data", page);
  117. }
  118. /**
  119. * 前端列表
  120. */
  121. @RequestMapping("/list")
  122. public R list(@RequestParam Map<String, Object> params,YishengEntity yisheng, HttpServletRequest request){
  123. EntityWrapper<YishengEntity> ew = new EntityWrapper<YishengEntity>();
  124. PageUtils page = yishengService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, yisheng), params), params));
  125. request.setAttribute("data", page);
  126. return R.ok().put("data", page);
  127. }
  128. /**
  129. * 列表
  130. */
  131. @RequestMapping("/lists")
  132. public R list( YishengEntity yisheng){
  133. EntityWrapper<YishengEntity> ew = new EntityWrapper<YishengEntity>();
  134. ew.allEq(MPUtil.allEQMapPre( yisheng, "yisheng"));
  135. return R.ok().put("data", yishengService.selectListView(ew));
  136. }
  137. /**
  138. * 查询
  139. */
  140. @RequestMapping("/query")
  141. public R query(YishengEntity yisheng){
  142. EntityWrapper< YishengEntity> ew = new EntityWrapper< YishengEntity>();
  143. ew.allEq(MPUtil.allEQMapPre( yisheng, "yisheng"));
  144. YishengView yishengView = yishengService.selectView(ew);
  145. return R.ok("查询医生成功").put("data", yishengView);
  146. }
  147. /**
  148. * 后端详情
  149. */
  150. @RequestMapping("/info/{id}")
  151. public R info(@PathVariable("id") Long id){
  152. YishengEntity yisheng = yishengService.selectById(id);
  153. return R.ok().put("data", yisheng);
  154. }
  155. /**
  156. * 前端详情
  157. */
  158. @RequestMapping("/detail/{id}")
  159. public R detail(@PathVariable("id") Long id){
  160. YishengEntity yisheng = yishengService.selectById(id);
  161. return R.ok().put("data", yisheng);
  162. }
  163. /**
  164. * 后端保存
  165. */
  166. @RequestMapping("/save")
  167. public R save(@RequestBody YishengEntity yisheng, HttpServletRequest request){
  168. yisheng.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
  169. //ValidatorUtils.validateEntity(yisheng);
  170. YishengEntity user = yishengService.selectOne(new EntityWrapper<YishengEntity>().eq("yishenggonghao", yisheng.getYishenggonghao()));
  171. if(user!=null) {
  172. return R.error("用户已存在");
  173. }
  174. yisheng.setId(new Date().getTime());
  175. yishengService.insert(yisheng);
  176. return R.ok();
  177. }
  178. /**
  179. * 前端保存
  180. */
  181. @RequestMapping("/add")
  182. public R add(@RequestBody YishengEntity yisheng, HttpServletRequest request){
  183. yisheng.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
  184. //ValidatorUtils.validateEntity(yisheng);
  185. YishengEntity user = yishengService.selectOne(new EntityWrapper<YishengEntity>().eq("yishenggonghao", yisheng.getYishenggonghao()));
  186. if(user!=null) {
  187. return R.error("用户已存在");
  188. }
  189. yisheng.setId(new Date().getTime());
  190. yishengService.insert(yisheng);
  191. return R.ok();
  192. }
  193. /**
  194. * 修改
  195. */
  196. @RequestMapping("/update")
  197. public R update(@RequestBody YishengEntity yisheng, HttpServletRequest request){
  198. //ValidatorUtils.validateEntity(yisheng);
  199. yishengService.updateById(yisheng);//全部更新
  200. return R.ok();
  201. }
  202. /**
  203. * 删除
  204. */
  205. @RequestMapping("/delete")
  206. public R delete(@RequestBody Long[] ids){
  207. yishengService.deleteBatchIds(Arrays.asList(ids));
  208. return R.ok();
  209. }
  210. /**
  211. * 提醒接口
  212. */
  213. @RequestMapping("/remind/{columnName}/{type}")
  214. public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request,
  215. @PathVariable("type") String type,@RequestParam Map<String, Object> map) {
  216. map.put("column", columnName);
  217. map.put("type", type);
  218. if(type.equals("2")) {
  219. SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
  220. Calendar c = Calendar.getInstance();
  221. Date remindStartDate = null;
  222. Date remindEndDate = null;
  223. if(map.get("remindstart")!=null) {
  224. Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
  225. c.setTime(new Date());
  226. c.add(Calendar.DAY_OF_MONTH,remindStart);
  227. remindStartDate = c.getTime();
  228. map.put("remindstart", sdf.format(remindStartDate));
  229. }
  230. if(map.get("remindend")!=null) {
  231. Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
  232. c.setTime(new Date());
  233. c.add(Calendar.DAY_OF_MONTH,remindEnd);
  234. remindEndDate = c.getTime();
  235. map.put("remindend", sdf.format(remindEndDate));
  236. }
  237. }
  238. Wrapper<YishengEntity> wrapper = new EntityWrapper<YishengEntity>();
  239. if(map.get("remindstart")!=null) {
  240. wrapper.ge(columnName, map.get("remindstart"));
  241. }
  242. if(map.get("remindend")!=null) {
  243. wrapper.le(columnName, map.get("remindend"));
  244. }
  245. int count = yishengService.selectCount(wrapper);
  246. return R.ok().put("count", count);
  247. }
  248. }
  1. package com.controller;
  2. import java.text.SimpleDateFormat;
  3. import java.util.ArrayList;
  4. import java.util.Arrays;
  5. import java.util.Calendar;
  6. import java.util.Map;
  7. import java.util.HashMap;
  8. import java.util.Iterator;
  9. import java.util.Date;
  10. import java.util.List;
  11. import javax.servlet.http.HttpServletRequest;
  12. import com.utils.ValidatorUtils;
  13. import org.apache.commons.lang3.StringUtils;
  14. import org.springframework.beans.factory.annotation.Autowired;
  15. import org.springframework.format.annotation.DateTimeFormat;
  16. import org.springframework.web.bind.annotation.PathVariable;
  17. import org.springframework.web.bind.annotation.RequestBody;
  18. import org.springframework.web.bind.annotation.RequestMapping;
  19. import org.springframework.web.bind.annotation.RequestParam;
  20. import org.springframework.web.bind.annotation.RestController;
  21. import com.baomidou.mybatisplus.mapper.EntityWrapper;
  22. import com.baomidou.mybatisplus.mapper.Wrapper;
  23. import com.annotation.IgnoreAuth;
  24. import com.entity.YishengxinxiEntity;
  25. import com.entity.view.YishengxinxiView;
  26. import com.service.YishengxinxiService;
  27. import com.service.TokenService;
  28. import com.utils.PageUtils;
  29. import com.utils.R;
  30. import com.utils.MD5Util;
  31. import com.utils.MPUtil;
  32. import com.utils.CommonUtil;
  33. /**
  34. * 医生信息
  35. * 后端接口
  36. * @author
  37. * @email
  38. * @date 2021-03-11 11:23:12
  39. */
  40. @RestController
  41. @RequestMapping("/yishengxinxi")
  42. public class YishengxinxiController {
  43. @Autowired
  44. private YishengxinxiService yishengxinxiService;
  45. /**
  46. * 后端列表
  47. */
  48. @RequestMapping("/page")
  49. public R page(@RequestParam Map<String, Object> params,YishengxinxiEntity yishengxinxi,
  50. HttpServletRequest request){
  51. EntityWrapper<YishengxinxiEntity> ew = new EntityWrapper<YishengxinxiEntity>();
  52. PageUtils page = yishengxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, yishengxinxi), params), params));
  53. request.setAttribute("data", page);
  54. return R.ok().put("data", page);
  55. }
  56. /**
  57. * 前端列表
  58. */
  59. @IgnoreAuth
  60. @RequestMapping("/list")
  61. public R list(@RequestParam Map<String, Object> params,YishengxinxiEntity yishengxinxi, HttpServletRequest request){
  62. EntityWrapper<YishengxinxiEntity> ew = new EntityWrapper<YishengxinxiEntity>();
  63. PageUtils page = yishengxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, yishengxinxi), params), params));
  64. request.setAttribute("data", page);
  65. return R.ok().put("data", page);
  66. }
  67. /**
  68. * 列表
  69. */
  70. @RequestMapping("/lists")
  71. public R list( YishengxinxiEntity yishengxinxi){
  72. EntityWrapper<YishengxinxiEntity> ew = new EntityWrapper<YishengxinxiEntity>();
  73. ew.allEq(MPUtil.allEQMapPre( yishengxinxi, "yishengxinxi"));
  74. return R.ok().put("data", yishengxinxiService.selectListView(ew));
  75. }
  76. /**
  77. * 查询
  78. */
  79. @RequestMapping("/query")
  80. public R query(YishengxinxiEntity yishengxinxi){
  81. EntityWrapper< YishengxinxiEntity> ew = new EntityWrapper< YishengxinxiEntity>();
  82. ew.allEq(MPUtil.allEQMapPre( yishengxinxi, "yishengxinxi"));
  83. YishengxinxiView yishengxinxiView = yishengxinxiService.selectView(ew);
  84. return R.ok("查询医生信息成功").put("data", yishengxinxiView);
  85. }
  86. /**
  87. * 后端详情
  88. */
  89. @RequestMapping("/info/{id}")
  90. public R info(@PathVariable("id") Long id){
  91. YishengxinxiEntity yishengxinxi = yishengxinxiService.selectById(id);
  92. return R.ok().put("data", yishengxinxi);
  93. }
  94. /**
  95. * 前端详情
  96. */
  97. @IgnoreAuth
  98. @RequestMapping("/detail/{id}")
  99. public R detail(@PathVariable("id") Long id){
  100. YishengxinxiEntity yishengxinxi = yishengxinxiService.selectById(id);
  101. return R.ok().put("data", yishengxinxi);
  102. }
  103. /**
  104. * 后端保存
  105. */
  106. @RequestMapping("/save")
  107. public R save(@RequestBody YishengxinxiEntity yishengxinxi, HttpServletRequest request){
  108. yishengxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
  109. //ValidatorUtils.validateEntity(yishengxinxi);
  110. yishengxinxiService.insert(yishengxinxi);
  111. return R.ok();
  112. }
  113. /**
  114. * 前端保存
  115. */
  116. @RequestMapping("/add")
  117. public R add(@RequestBody YishengxinxiEntity yishengxinxi, HttpServletRequest request){
  118. yishengxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
  119. //ValidatorUtils.validateEntity(yishengxinxi);
  120. yishengxinxiService.insert(yishengxinxi);
  121. return R.ok();
  122. }
  123. /**
  124. * 修改
  125. */
  126. @RequestMapping("/update")
  127. public R update(@RequestBody YishengxinxiEntity yishengxinxi, HttpServletRequest request){
  128. //ValidatorUtils.validateEntity(yishengxinxi);
  129. yishengxinxiService.updateById(yishengxinxi);//全部更新
  130. return R.ok();
  131. }
  132. /**
  133. * 删除
  134. */
  135. @RequestMapping("/delete")
  136. public R delete(@RequestBody Long[] ids){
  137. yishengxinxiService.deleteBatchIds(Arrays.asList(ids));
  138. return R.ok();
  139. }
  140. /**
  141. * 提醒接口
  142. */
  143. @RequestMapping("/remind/{columnName}/{type}")
  144. public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request,
  145. @PathVariable("type") String type,@RequestParam Map<String, Object> map) {
  146. map.put("column", columnName);
  147. map.put("type", type);
  148. if(type.equals("2")) {
  149. SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
  150. Calendar c = Calendar.getInstance();
  151. Date remindStartDate = null;
  152. Date remindEndDate = null;
  153. if(map.get("remindstart")!=null) {
  154. Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
  155. c.setTime(new Date());
  156. c.add(Calendar.DAY_OF_MONTH,remindStart);
  157. remindStartDate = c.getTime();
  158. map.put("remindstart", sdf.format(remindStartDate));
  159. }
  160. if(map.get("remindend")!=null) {
  161. Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
  162. c.setTime(new Date());
  163. c.add(Calendar.DAY_OF_MONTH,remindEnd);
  164. remindEndDate = c.getTime();
  165. map.put("remindend", sdf.format(remindEndDate));
  166. }
  167. }
  168. Wrapper<YishengxinxiEntity> wrapper = new EntityWrapper<YishengxinxiEntity>();
  169. if(map.get("remindstart")!=null) {
  170. wrapper.ge(columnName, map.get("remindstart"));
  171. }
  172. if(map.get("remindend")!=null) {
  173. wrapper.le(columnName, map.get("remindend"));
  174. }
  175. int count = yishengxinxiService.selectCount(wrapper);
  176. return R.ok().put("count", count);
  177. }
  178. }

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/IT小白/article/detail/376798?site
推荐阅读
相关标签
  

闽ICP备14008679号