首页 前端知识 基于javaweb mysql的ssm maven医院挂号管理系统(java ssm jsp js jquery layui mysql)

基于javaweb mysql的ssm maven医院挂号管理系统(java ssm jsp js jquery layui mysql)

2024-05-19 09:05:24 前端知识 前端哥 960 951 我要收藏

基于javaweb+mysql的ssm+maven医院挂号管理系统(java+ssm+jsp+js+jquery+layui+mysql)

私信源码获取及调试交流

运行环境

Java≥8、MySQL≥5.7、Tomcat≥8

开发工具

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

适用

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

功能说明

基于javaweb的SSM+Maven医院挂号管理系统(java+ssm+jsp+js+jquery+layui+mysql)


管理员

admin	123456

用户

用户1	123456

用户2	123456

用户3	123456

用户4	123456

用户5	123456

用户6	123456

医生

医生1	123456

医生2	123456

医生3	123456

医生4	123456

医生5	123456

医生6	123456

项目介绍

基于SSM的医院挂号系统

角色:管理员、用户、医生

管理员:管理员、个人中心、公告信息管理、用户管理、、室信息管理、医生管理、预约时间段管理、出诊信息管理、在线预约管理、上班打卡管理、留言板管理、系统管理。

用户: 个人中心、在线预约管理、我的收藏管理

医生:个人中心、出诊信息管理、在线预约管理、上班打卡管理

环境需要

1.运行环境:最好是java jdk 1.8,我们在这个平台上运行的。其他版本理论上也可以。 2.IDE环境:IDEA,Eclipse,Myeclipse都可以。推荐IDEA; 3.tomcat环境:Tomcat 7.x,8.x,9.x版本均可 4.硬件环境:windows 7/8/10 1G内存以上;或者 Mac OS; 5.是否Maven项目: 是;查看源码目录中是否包含pom.xml;若包含,则为maven项目,否则为非maven项目; 6.数据库:MySql 5.7/8.0等版本均可;

技术栈

后端:SSM(Spring+SpringMVC+Mybatis)

前端:JSP+CSS+JS+JQUERY+Layui

使用说明

  1. 使用Navicat或者其它工具,在mysql中创建对应名称的数据库,并导入项目的sql文件; 2. 使用IDEA/Eclipse/MyEclipse导入项目,修改配置,运行项目; 3. 将项目中db.xml配置文件中的数据库配置改为自己的配置,然后运行;
        return R.ok().put("data", yishengService.selectListView(ew));
    }

	 /**
     * 查询
     */
    @RequestMapping("/query")
    public R query(YishengEntity yisheng){
        EntityWrapper< YishengEntity> ew = new EntityWrapper< YishengEntity>();
 		ew.allEq(MPUtil.allEQMapPre( yisheng, "yisheng")); 
		YishengView yishengView =  yishengService.selectView(ew);
		return R.ok("查询医生成功").put("data", yishengView);
    }
	
    /**
     * 后端详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        YishengEntity yisheng = yishengService.selectById(id);
        return R.ok().put("data", yisheng);
    }

    /**
     * 前端详情
     */
    @RequestMapping("/detail/{id}")
    public R detail(@PathVariable("id") Long id){
        YishengEntity yisheng = yishengService.selectById(id);
        return R.ok().put("data", yisheng);
    }
    

    /**
     * 后端保存
     */
    @RequestMapping("/save")
    public R save(@RequestBody YishengEntity yisheng, HttpServletRequest request){
    	yisheng.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(yisheng);
    	YishengEntity user = yishengService.selectOne(new EntityWrapper<YishengEntity>().eq("yishenggonghao", yisheng.getYishenggonghao()));
    public R save(@RequestBody MessagesEntity messages, HttpServletRequest request){
    	messages.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(messages);

        messagesService.insert(messages);
        return R.ok();
    }
    
    /**
     * 前端保存
     */
    @RequestMapping("/add")
    public R add(@RequestBody MessagesEntity messages, HttpServletRequest request){
    	messages.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(messages);
    	messages.setUserid((Long)request.getSession().getAttribute("userId"));

        messagesService.insert(messages);
        return R.ok();
    }

    /**
     * 修改
     */
    @RequestMapping("/update")
    public R update(@RequestBody MessagesEntity messages, HttpServletRequest request){
        //ValidatorUtils.validateEntity(messages);
        messagesService.updateById(messages);//全部更新
        return R.ok();
    }
    

    /**
     * 删除
     */
    @RequestMapping("/delete")
    public R delete(@RequestBody Long[] ids){
        messagesService.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);
		
    public R list( YuyueshijianduanEntity yuyueshijianduan){
       	EntityWrapper<YuyueshijianduanEntity> ew = new EntityWrapper<YuyueshijianduanEntity>();
      	ew.allEq(MPUtil.allEQMapPre( yuyueshijianduan, "yuyueshijianduan")); 
        return R.ok().put("data", yuyueshijianduanService.selectListView(ew));
    }

	 /**
     * 查询
     */
    @RequestMapping("/query")
    public R query(YuyueshijianduanEntity yuyueshijianduan){
        EntityWrapper< YuyueshijianduanEntity> ew = new EntityWrapper< YuyueshijianduanEntity>();
 		ew.allEq(MPUtil.allEQMapPre( yuyueshijianduan, "yuyueshijianduan")); 
		YuyueshijianduanView yuyueshijianduanView =  yuyueshijianduanService.selectView(ew);
		return R.ok("查询预约时间段成功").put("data", yuyueshijianduanView);
    }
	
    /**
     * 后端详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        YuyueshijianduanEntity yuyueshijianduan = yuyueshijianduanService.selectById(id);
        return R.ok().put("data", yuyueshijianduan);
    }

    /**
     * 前端详情
     */
    @RequestMapping("/detail/{id}")
    public R detail(@PathVariable("id") Long id){
        YuyueshijianduanEntity yuyueshijianduan = yuyueshijianduanService.selectById(id);
        return R.ok().put("data", yuyueshijianduan);
    }
    

    /**
     * 后端保存
     */
    @RequestMapping("/save")
    public R save(@RequestBody YuyueshijianduanEntity yuyueshijianduan, HttpServletRequest request){
    	yuyueshijianduan.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(yuyueshijianduan);

        yuyueshijianduanService.insert(yuyueshijianduan);
        return R.ok();
			wrapper.ge(columnName, map.get("remindstart"));
		}
		if(map.get("remindend")!=null) {
			wrapper.le(columnName, map.get("remindend"));
		}

		int count = discussgonggaoxinxiService.selectCount(wrapper);
		return R.ok().put("count", count);
	}
	
	

}

/**

/**
 * 出诊信息
 * 后端接口
 * @email 
 *  12:06:07
 */
@RestController
@RequestMapping("/chuzhenxinxi")
public class ChuzhenxinxiController {
    @Autowired
    private ChuzhenxinxiService chuzhenxinxiService;
    

    /**
     * 后端列表
     */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> params,ChuzhenxinxiEntity chuzhenxinxi, HttpServletRequest request){
    @RequestMapping("/query")
    public R query(DiscussgonggaoxinxiEntity discussgonggaoxinxi){
        EntityWrapper< DiscussgonggaoxinxiEntity> ew = new EntityWrapper< DiscussgonggaoxinxiEntity>();
 		ew.allEq(MPUtil.allEQMapPre( discussgonggaoxinxi, "discussgonggaoxinxi")); 
		DiscussgonggaoxinxiView discussgonggaoxinxiView =  discussgonggaoxinxiService.selectView(ew);
		return R.ok("查询公告信息评论表成功").put("data", discussgonggaoxinxiView);
    }
	
    /**
     * 后端详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        DiscussgonggaoxinxiEntity discussgonggaoxinxi = discussgonggaoxinxiService.selectById(id);
        return R.ok().put("data", discussgonggaoxinxi);
    }

    /**
     * 前端详情
     */
    @RequestMapping("/detail/{id}")
    public R detail(@PathVariable("id") Long id){
        DiscussgonggaoxinxiEntity discussgonggaoxinxi = discussgonggaoxinxiService.selectById(id);
        return R.ok().put("data", discussgonggaoxinxi);
    }
    

    /**
     * 后端保存
     */
    @RequestMapping("/save")
    public R save(@RequestBody DiscussgonggaoxinxiEntity discussgonggaoxinxi, HttpServletRequest request){
    	discussgonggaoxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(discussgonggaoxinxi);

        discussgonggaoxinxiService.insert(discussgonggaoxinxi);
        return R.ok();
    }
    
    /**
     * 前端保存
     */
    @RequestMapping("/add")
    public R add(@RequestBody DiscussgonggaoxinxiEntity discussgonggaoxinxi, HttpServletRequest request){
    	discussgonggaoxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(discussgonggaoxinxi);

				}
			}
		}
		return R.ok().put("data", result);
	}
	
}

	/**
     * 列表
     */
    @RequestMapping("/lists")
    public R list( YonghuEntity yonghu){
       	EntityWrapper<YonghuEntity> ew = new EntityWrapper<YonghuEntity>();
      	ew.allEq(MPUtil.allEQMapPre( yonghu, "yonghu")); 
        return R.ok().put("data", yonghuService.selectListView(ew));
    }

	 /**
     * 查询
     */
    @RequestMapping("/query")
    public R query(YonghuEntity yonghu){
        EntityWrapper< YonghuEntity> ew = new EntityWrapper< YonghuEntity>();
 		ew.allEq(MPUtil.allEQMapPre( yonghu, "yonghu")); 
		YonghuView yonghuView =  yonghuService.selectView(ew);
		return R.ok("查询用户成功").put("data", yonghuView);
    }
	
    /**
     * 后端详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        YonghuEntity yonghu = yonghuService.selectById(id);
        return R.ok().put("data", yonghu);
    }

    /**
     * 前端详情
     */
    @RequestMapping("/detail/{id}")
    public R detail(@PathVariable("id") Long id){
        YonghuEntity yonghu = yonghuService.selectById(id);
        return R.ok().put("data", yonghu);
    }
    

    /**
     * 后端保存
     */
    @RequestMapping("/save")
    public R save(@RequestBody YonghuEntity yonghu, HttpServletRequest request){
    	yonghu.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(yonghu);
    	YonghuEntity user = yonghuService.selectOne(new EntityWrapper<YonghuEntity>().eq("yonghuming", yonghu.getYonghuming()));
		if(user!=null) {
    /**
     * 后端详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        StoreupEntity storeup = storeupService.selectById(id);
        return R.ok().put("data", storeup);
    }

    /**
     * 前端详情
     */
    @RequestMapping("/detail/{id}")
    public R detail(@PathVariable("id") Long id){
        StoreupEntity storeup = storeupService.selectById(id);
        return R.ok().put("data", storeup);
    }
    

    /**
     * 后端保存
     */
    @RequestMapping("/save")
    public R save(@RequestBody StoreupEntity storeup, HttpServletRequest request){
    	storeup.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(storeup);
    	storeup.setUserid((Long)request.getSession().getAttribute("userId"));

        storeupService.insert(storeup);
        return R.ok();
    }
    
    /**
     * 前端保存
     */
    @RequestMapping("/add")
    public R add(@RequestBody StoreupEntity storeup, HttpServletRequest request){
    	storeup.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(storeup);
    	storeup.setUserid((Long)request.getSession().getAttribute("userId"));

        storeupService.insert(storeup);
        return R.ok();
    }

    /**
     * 修改
     */
    @RequestMapping("/update")
    public R update(@RequestBody StoreupEntity storeup, HttpServletRequest request){
        //ValidatorUtils.validateEntity(storeup);
        storeupService.updateById(storeup);//全部更新
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        DiscusskeshixinxiEntity discusskeshixinxi = discusskeshixinxiService.selectById(id);
        return R.ok().put("data", discusskeshixinxi);
    }

    /**
     * 前端详情
     */
    @RequestMapping("/detail/{id}")
    public R detail(@PathVariable("id") Long id){
        DiscusskeshixinxiEntity discusskeshixinxi = discusskeshixinxiService.selectById(id);
        return R.ok().put("data", discusskeshixinxi);
    }
    

    /**
     * 后端保存
     */
    @RequestMapping("/save")
    public R save(@RequestBody DiscusskeshixinxiEntity discusskeshixinxi, HttpServletRequest request){
    	discusskeshixinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(discusskeshixinxi);

        discusskeshixinxiService.insert(discusskeshixinxi);
        return R.ok();
    }
    
    /**
     * 前端保存
     */
    @RequestMapping("/add")
    public R add(@RequestBody DiscusskeshixinxiEntity discusskeshixinxi, HttpServletRequest request){
    	discusskeshixinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(discusskeshixinxi);

        discusskeshixinxiService.insert(discusskeshixinxi);
        return R.ok();
    }

    /**
     */
    @RequestMapping("/delete")
    public R delete(@RequestBody Long[] ids){
        messagesService.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<MessagesEntity> wrapper = new EntityWrapper<MessagesEntity>();
		if(map.get("remindstart")!=null) {
			wrapper.ge(columnName, map.get("remindstart"));
		}
		if(map.get("remindend")!=null) {
    }
    
    /**
     * 前端列表
     */
	@IgnoreAuth
    @RequestMapping("/list")
    public R list(@RequestParam Map<String, Object> params,ChuzhenxinxiEntity chuzhenxinxi, HttpServletRequest request){
        EntityWrapper<ChuzhenxinxiEntity> ew = new EntityWrapper<ChuzhenxinxiEntity>();
    	PageUtils page = chuzhenxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, chuzhenxinxi), params), params));
		request.setAttribute("data", page);
        return R.ok().put("data", page);
    }

	/**
     * 列表
     */
    @RequestMapping("/lists")
    public R list( ChuzhenxinxiEntity chuzhenxinxi){
       	EntityWrapper<ChuzhenxinxiEntity> ew = new EntityWrapper<ChuzhenxinxiEntity>();
      	ew.allEq(MPUtil.allEQMapPre( chuzhenxinxi, "chuzhenxinxi")); 
        return R.ok().put("data", chuzhenxinxiService.selectListView(ew));
    }

	 /**
     * 查询
     */
    @RequestMapping("/query")
    public R query(ChuzhenxinxiEntity chuzhenxinxi){
        EntityWrapper< ChuzhenxinxiEntity> ew = new EntityWrapper< ChuzhenxinxiEntity>();
 		ew.allEq(MPUtil.allEQMapPre( chuzhenxinxi, "chuzhenxinxi")); 
		ChuzhenxinxiView chuzhenxinxiView =  chuzhenxinxiService.selectView(ew);
		return R.ok("查询出诊信息成功").put("data", chuzhenxinxiView);
    }
	
    /**
     * 后端详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        ChuzhenxinxiEntity chuzhenxinxi = chuzhenxinxiService.selectById(id);
		chuzhenxinxi.setClicknum(chuzhenxinxi.getClicknum()+1);
		chuzhenxinxi.setClicktime(new Date());
		chuzhenxinxiService.updateById(chuzhenxinxi);
        return R.ok().put("data", chuzhenxinxi);
    }

    /**
     * 前端详情
     */
	@IgnoreAuth
    @RequestMapping("/detail/{id}")
    
    /**
     * 前端保存
     */
    @RequestMapping("/add")
    public R add(@RequestBody YonghuEntity yonghu, HttpServletRequest request){
    	yonghu.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(yonghu);
    	YonghuEntity user = yonghuService.selectOne(new EntityWrapper<YonghuEntity>().eq("yonghuming", yonghu.getYonghuming()));
		if(user!=null) {
			return R.error("用户已存在");
		}

		yonghu.setId(new Date().getTime());
        yonghuService.insert(yonghu);
        return R.ok();
    }

    /**
     * 修改
     */
    @RequestMapping("/update")
    public R update(@RequestBody YonghuEntity yonghu, HttpServletRequest request){
        //ValidatorUtils.validateEntity(yonghu);
        yonghuService.updateById(yonghu);//全部更新
        return R.ok();
    }
    

    /**
     * 删除
     */
    @RequestMapping("/delete")
    public R delete(@RequestBody Long[] ids){
        yonghuService.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);
		

/**
 * 留言板
 * 后端接口
 * @email 
 *  12:06:07
 */
@RestController
@RequestMapping("/messages")
public class MessagesController {
    @Autowired
    private MessagesService messagesService;
    

    /**
				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<DiscusskeshixinxiEntity> wrapper = new EntityWrapper<DiscusskeshixinxiEntity>();
		if(map.get("remindstart")!=null) {
			wrapper.ge(columnName, map.get("remindstart"));
		}
		if(map.get("remindend")!=null) {
			wrapper.le(columnName, map.get("remindend"));
		}

		int count = discusskeshixinxiService.selectCount(wrapper);
		return R.ok().put("count", count);
	}
	
	

}

     */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> params,KeshixinxiEntity keshixinxi, HttpServletRequest request){

        EntityWrapper<KeshixinxiEntity> ew = new EntityWrapper<KeshixinxiEntity>();
    	PageUtils page = keshixinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, keshixinxi), params), params));
		request.setAttribute("data", page);
        return R.ok().put("data", page);
    }
    
    /**
     * 前端列表
     */
	@IgnoreAuth
    @RequestMapping("/list")
    public R list(@RequestParam Map<String, Object> params,KeshixinxiEntity keshixinxi, HttpServletRequest request){
        EntityWrapper<KeshixinxiEntity> ew = new EntityWrapper<KeshixinxiEntity>();
    	PageUtils page = keshixinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, keshixinxi), params), params));
		request.setAttribute("data", page);
        return R.ok().put("data", page);
    }

	/**
     * 列表
     */
    @RequestMapping("/lists")
    public R list( KeshixinxiEntity keshixinxi){
       	EntityWrapper<KeshixinxiEntity> ew = new EntityWrapper<KeshixinxiEntity>();
      	ew.allEq(MPUtil.allEQMapPre( keshixinxi, "keshixinxi")); 
        return R.ok().put("data", keshixinxiService.selectListView(ew));
    }

	 /**
     * 查询
     */
    @RequestMapping("/query")
    public R query(KeshixinxiEntity keshixinxi){
        EntityWrapper< KeshixinxiEntity> ew = new EntityWrapper< KeshixinxiEntity>();
 		ew.allEq(MPUtil.allEQMapPre( keshixinxi, "keshixinxi")); 
		KeshixinxiView keshixinxiView =  keshixinxiService.selectView(ew);
		return R.ok("查询科室信息成功").put("data", keshixinxiView);
    }
	
    /**
     * 后端详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        KeshixinxiEntity keshixinxi = keshixinxiService.selectById(id);
        return R.ok().put("data", keshixinxi);
    }

    }

    /**
     * 保存
     */
    @PostMapping("/save")
    public R save(@RequestBody UserEntity user){
//    	ValidatorUtils.validateEntity(user);
    	if(userService.selectOne(new EntityWrapper<UserEntity>().eq("username", user.getUsername())) !=null) {
    		return R.error("用户已存在");
    	}
        userService.insert(user);
        return R.ok();
    }

    /**
     * 修改
     */
    @RequestMapping("/update")
    public R update(@RequestBody UserEntity user){
//        ValidatorUtils.validateEntity(user);
        userService.updateById(user);//全部更新
        return R.ok();
    }

    /**
     * 删除
     */
    @RequestMapping("/delete")
    public R delete(@RequestBody Long[] ids){
        userService.deleteBatchIds(Arrays.asList(ids));
        return R.ok();
    }
}

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

转载请注明出处或者链接地址:https://www.qianduange.cn//article/8863.html
标签
评论
会员中心 联系我 留言建议 回顶部
复制成功!