成都网站制作培训,网站设计英语,眼镜厂官网,深圳建设银行网站首页基于ssm医院在线挂号预约系统源码和论文072 开发工具#xff1a;idea 数据库mysql5.7 数据库链接工具#xff1a;navcat,小海豚等 技术#xff1a;ssm 课题研究的目的及意义#xff1a;
专家号难求#xff0c;是医院现场挂号存在的主要问题之一#xff0c;每一名专…基于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 MapString, Object params,DiscussyishengzuozhenEntity discussyishengzuozhen, HttpServletRequest request){EntityWrapperDiscussyishengzuozhenEntity ew new EntityWrapperDiscussyishengzuozhenEntity();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);}/*** 前端列表*/IgnoreAuthRequestMapping(/list)public R list(RequestParam MapString, Object params,DiscussyishengzuozhenEntity discussyishengzuozhen, HttpServletRequest request){EntityWrapperDiscussyishengzuozhenEntity ew new EntityWrapperDiscussyishengzuozhenEntity();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){EntityWrapperDiscussyishengzuozhenEntity ew new EntityWrapperDiscussyishengzuozhenEntity();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 MapString, 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));}}WrapperDiscussyishengzuozhenEntity wrapper new EntityWrapperDiscussyishengzuozhenEntity();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);}}