网站建设宣传册无锡seo
基于ssm医院在线挂号预约系统源码和论文072
开发工具:idea
数据库mysql5.7+
数据库链接工具:navcat,小海豚等
技术:ssm
- 课题研究的目的及意义:
专家号难求,是医院现场挂号存在的主要问题之一,每一名专家每天看的病人数量有限,一些求医者为了一个宝贵的号排上几个小时的队,甚至连夜守在医院门口都不是新鲜事。很多大医院的挂号处的工作人员的工作量艰巨,每天面对大量的挂号单据,效率不高。而当医院开通网上挂号预约服务以后,求医者只需坐在家中,轻点儿下鼠标,就可以挂上医院专家门诊号,可以做到“足不出户选医生"。网上预约悄然改变着城市求医者的看病观念。拥有相对固定的个人医生和习惯于预约看病,将不再遥远,所以应用必将越来越广泛。
- 信息化医院挂号预约的前景
医院信息系统(Hospital Information Systera HIS)在国际学术界已公认为新兴的医学信息系统(Medical Information)的重要分支。美国该领域的著名教授Morris.Collen于 1988年曾著文为医院信息系统下了如下定义:利用电子计算机和通讯设备,为医院所属各部门提供病人诊疗信息和行政管理信息的收集、存储、处理、提取和数据交换的能力,并满足所有授权用户的功能需求。目前医院信息系统发展面临的种种困难,不仅需要不断提高和规范医院的管理水平,而且要求软件开发商不断进取,分析国内外开发HIS系统的成败并吸收它们的经验和教训,采用先进的开发技术和软件体系结构以增强软件的运行效率、安全性和可维护性,从而降低系统费用。
package com.controller;import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Map;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;import com.utils.ValidatorUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.annotation.IgnoreAuth;import com.entity.DiscussyishengzuozhenEntity;
import com.entity.view.DiscussyishengzuozhenView;import com.service.DiscussyishengzuozhenService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MPUtil;
import com.utils.CommonUtil;/*** 医生坐诊评论表* 后端接口* @author * @email * @date 2020-12-24 11:35:16*/
@RestController
@RequestMapping("/discussyishengzuozhen")
public class DiscussyishengzuozhenController {@Autowiredprivate DiscussyishengzuozhenService discussyishengzuozhenService;/*** 后端列表*/@RequestMapping("/page")public R page(@RequestParam Map<String, Object> params,DiscussyishengzuozhenEntity discussyishengzuozhen, HttpServletRequest request){EntityWrapper<DiscussyishengzuozhenEntity> ew = new EntityWrapper<DiscussyishengzuozhenEntity>();PageUtils page = discussyishengzuozhenService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, discussyishengzuozhen), params), params));request.setAttribute("data", page);return R.ok().put("data", page);}/*** 前端列表*/@IgnoreAuth@RequestMapping("/list")public R list(@RequestParam Map<String, Object> params,DiscussyishengzuozhenEntity discussyishengzuozhen, HttpServletRequest request){EntityWrapper<DiscussyishengzuozhenEntity> ew = new EntityWrapper<DiscussyishengzuozhenEntity>();PageUtils page = discussyishengzuozhenService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, discussyishengzuozhen), params), params));request.setAttribute("data", page);return R.ok().put("data", page);}/*** 列表*/@RequestMapping("/lists")public R list( DiscussyishengzuozhenEntity discussyishengzuozhen){EntityWrapper<DiscussyishengzuozhenEntity> ew = new EntityWrapper<DiscussyishengzuozhenEntity>();ew.allEq(MPUtil.allEQMapPre( discussyishengzuozhen, "discussyishengzuozhen")); return R.ok().put("data", discussyishengzuozhenService.selectListView(ew));}/*** 查询*/@RequestMapping("/query")public R query(DiscussyishengzuozhenEntity discussyishengzuozhen){EntityWrapper< DiscussyishengzuozhenEntity> ew = new EntityWrapper< DiscussyishengzuozhenEntity>();ew.allEq(MPUtil.allEQMapPre( discussyishengzuozhen, "discussyishengzuozhen")); DiscussyishengzuozhenView discussyishengzuozhenView = discussyishengzuozhenService.selectView(ew);return R.ok("查询医生坐诊评论表成功").put("data", discussyishengzuozhenView);}/*** 后端详情*/@RequestMapping("/info/{id}")public R info(@PathVariable("id") Long id){DiscussyishengzuozhenEntity discussyishengzuozhen = discussyishengzuozhenService.selectById(id);return R.ok().put("data", discussyishengzuozhen);}/*** 前端详情*/@RequestMapping("/detail/{id}")public R detail(@PathVariable("id") Long id){DiscussyishengzuozhenEntity discussyishengzuozhen = discussyishengzuozhenService.selectById(id);return R.ok().put("data", discussyishengzuozhen);}/*** 后端保存*/@RequestMapping("/save")public R save(@RequestBody DiscussyishengzuozhenEntity discussyishengzuozhen, HttpServletRequest request){discussyishengzuozhen.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());//ValidatorUtils.validateEntity(discussyishengzuozhen);discussyishengzuozhenService.insert(discussyishengzuozhen);return R.ok();}/*** 前端保存*/@RequestMapping("/add")public R add(@RequestBody DiscussyishengzuozhenEntity discussyishengzuozhen, HttpServletRequest request){discussyishengzuozhen.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());//ValidatorUtils.validateEntity(discussyishengzuozhen);discussyishengzuozhenService.insert(discussyishengzuozhen);return R.ok();}/*** 修改*/@RequestMapping("/update")public R update(@RequestBody DiscussyishengzuozhenEntity discussyishengzuozhen, HttpServletRequest request){//ValidatorUtils.validateEntity(discussyishengzuozhen);discussyishengzuozhenService.updateById(discussyishengzuozhen);//全部更新return R.ok();}/*** 删除*/@RequestMapping("/delete")public R delete(@RequestBody Long[] ids){discussyishengzuozhenService.deleteBatchIds(Arrays.asList(ids));return R.ok();}/*** 提醒接口*/@RequestMapping("/remind/{columnName}/{type}")public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request, @PathVariable("type") String type,@RequestParam Map<String, Object> map) {map.put("column", columnName);map.put("type", type);if(type.equals("2")) {SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");Calendar c = Calendar.getInstance();Date remindStartDate = null;Date remindEndDate = null;if(map.get("remindstart")!=null) {Integer remindStart = Integer.parseInt(map.get("remindstart").toString());c.setTime(new Date()); c.add(Calendar.DAY_OF_MONTH,remindStart);remindStartDate = c.getTime();map.put("remindstart", sdf.format(remindStartDate));}if(map.get("remindend")!=null) {Integer remindEnd = Integer.parseInt(map.get("remindend").toString());c.setTime(new Date());c.add(Calendar.DAY_OF_MONTH,remindEnd);remindEndDate = c.getTime();map.put("remindend", sdf.format(remindEndDate));}}Wrapper<DiscussyishengzuozhenEntity> wrapper = new EntityWrapper<DiscussyishengzuozhenEntity>();if(map.get("remindstart")!=null) {wrapper.ge(columnName, map.get("remindstart"));}if(map.get("remindend")!=null) {wrapper.le(columnName, map.get("remindend"));}int count = discussyishengzuozhenService.selectCount(wrapper);return R.ok().put("count", count);}}