计算机毕业设计-基于微信小程序的大学生心理预约咨询系统-心理测试小程序

注意:该项目只展示部分功能,如需了解,评论区咨询即可。

1.开发环境

开发语言:Java
后台框架:SSM、Spring Boot 都有
数据库:MySQL
编译工具:Idea、Eclipse、MyEclipse (选其一),微信开发者工具
其他:jdk1.8、Maven 、Tomcat

eclipse 下载
mysql 5.7 下载
jdk 1.8 下载
tomcat 8.0 下载
maven 3.5 下载
idea 下载

2.系统的设计背景

       学校对于人才培养,关爱学生的成长不仅是身体健康,心理健康尤其重要。往年学校开展心理健康宣传、开办心理咨询室等一直依靠着人工管理,不能做到信息快速同步、节省时间。随着高校学生增加,心理健康问题量大、也更加复杂多变,传统的心理咨询室局限于地点、时间,甚至天气影响,而且面对面的交流,有的学生羞于健康问题,不敢去咨询,这样也会耽误学生的健康发展。
       计算机应用对于大学生心理预约咨询小程序,有人工模式无法比拟的优点,快速定位、强大存储、安全保密、维护成本低、使用期限长等,心理老师能在第一时间捕获学生健康问题,去解析问题,及时梳导学生帮助排除困难困惑,不受时间、区域、地点等影响。学生也能选择隐瞒自己身份,放开心扉去交流,更好的认识自我,健康成长。因此开发一个基于微信小程序的大学生心理预约咨询系统来帮助学生们排忧解难。

3 各角色功能模块

3.1 学生用户

  • 心理咨询
  • 分析建议
  • 自我测试记录
  • 我要发帖
  • 查看心理文章
  • 查看心理老师
  • 预约咨询

3.2 心理老师

  • 心理咨询
  • 我的收藏
  • 我要发帖
  • 我的发帖
  • 处理学生问题

3.3 管理员

  • 个人中心
  • 用户管理
  • 咨询师管理
  • 心理知识管理
  • 信息推荐管理
  • 心理咨询管理
  • 分析建议管理
  • 社区交流
  • 自我测试管理
  • 测试题目管理
  • 系统管理
  • 自我测试管理

4 系统页面展示

4.1 用户功能模块展示

在这里插入图片描述
在这里插入图片描述

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

4.2 心理咨询师功能模块展示

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

4.3 管理员功能模块展示

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

5 更多推荐

2023年计算机毕业设计选题大全 计算机毕业设计选题推荐
基于微信小程序的在线小说阅读系统SpringBoot
ssm在线点餐系统(沙箱支付)
基于springboot的社区志愿者管理系统
基于SSM+Vue汽车保养预约系统

6 部分功能代码

/**
 * 心理咨询
 * 后端接口
 */
@RestController
@RequestMapping("/xinlizixun")
public class XinlizixunController {
    @Autowired
    private XinlizixunService xinlizixunService;


    /**
     * 后端心理咨询信息列表
     */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> params,XinlizixunEntity xinlizixun, 
		HttpServletRequest request){

		String tableName = request.getSession().getAttribute("tableName").toString();
		if(tableName.equals("zixunshi")) {
			xinlizixun.setZixunshizhanghao((String)request.getSession().getAttribute("username"));
		}
		if(tableName.equals("yonghu")) {
			xinlizixun.setYonghuming((String)request.getSession().getAttribute("username"));
		}
        EntityWrapper<XinlizixunEntity> ew = new EntityWrapper<XinlizixunEntity>();
		PageUtils page = xinlizixunService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, xinlizixun), params), params));
        return R.ok().put("data", page);
    }
    
    /**
     * 前端心理咨询信息列表
     */
    @RequestMapping("/list")
    public R list(@RequestParam Map<String, Object> params,XinlizixunEntity xinlizixun, 
		HttpServletRequest request){

		String tableName = request.getSession().getAttribute("tableName").toString();
		if(tableName.equals("zixunshi")) {
			xinlizixun.setZixunshizhanghao((String)request.getSession().getAttribute("username"));
		}
		if(tableName.equals("yonghu")) {
			xinlizixun.setYonghuming((String)request.getSession().getAttribute("username"));
		}
        EntityWrapper<XinlizixunEntity> ew = new EntityWrapper<XinlizixunEntity>();
		PageUtils page = xinlizixunService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, xinlizixun), params), params));
        return R.ok().put("data", page);
    }

	/**
     * 心理咨询信息列表
     */
    @RequestMapping("/lists")
    public R list( XinlizixunEntity xinlizixun){
       	EntityWrapper<XinlizixunEntity> ew = new EntityWrapper<XinlizixunEntity>();
      	ew.allEq(MPUtil.allEQMapPre( xinlizixun, "xinlizixun")); 
        return R.ok().put("data", xinlizixunService.selectListView(ew));
    }

	 /**
     * 查询心理咨询信息
     */
    @RequestMapping("/query")
    public R query(XinlizixunEntity xinlizixun){
        EntityWrapper< XinlizixunEntity> ew = new EntityWrapper< XinlizixunEntity>();
 		ew.allEq(MPUtil.allEQMapPre( xinlizixun, "xinlizixun")); 
		XinlizixunView xinlizixunView =  xinlizixunService.selectView(ew);
		return R.ok("查询心理咨询成功").put("data", xinlizixunView);
    }
	
    /**
     * 后端心理咨询信息详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        XinlizixunEntity xinlizixun = xinlizixunService.selectById(id);
        return R.ok().put("data", xinlizixun);
    }

    /**
     * 前端心理咨询信息详情
     */
    @RequestMapping("/detail/{id}")
    public R detail(@PathVariable("id") Long id){
        XinlizixunEntity xinlizixun = xinlizixunService.selectById(id);
        return R.ok().put("data", xinlizixun);
    }
    



    /**
     * 后端保存心理咨询信息
     */
    @RequestMapping("/save")
    public R save(@RequestBody XinlizixunEntity xinlizixun, HttpServletRequest request){
    	xinlizixun.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(xinlizixun);

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

        xinlizixunService.insert(xinlizixun);
        return R.ok();
    }

    /**
     * 修改心理咨询信息
     */
    @RequestMapping("/update")
    public R update(@RequestBody XinlizixunEntity xinlizixun, HttpServletRequest request){
        //ValidatorUtils.validateEntity(xinlizixun);
        xinlizixunService.updateById(xinlizixun);//全部更新
        return R.ok();
    }
    

    /**
     * 删除心理咨询信息
     */
    @RequestMapping("/delete")
    public R delete(@RequestBody Long[] ids){
        xinlizixunService.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<XinlizixunEntity> wrapper = new EntityWrapper<XinlizixunEntity>();
		if(map.get("remindstart")!=null) {
			wrapper.ge(columnName, map.get("remindstart"));
		}
		if(map.get("remindend")!=null) {
			wrapper.le(columnName, map.get("remindend"));
		}

		String tableName = request.getSession().getAttribute("tableName").toString();
		if(tableName.equals("zixunshi")) {
			wrapper.eq("zixunshizhanghao", (String)request.getSession().getAttribute("username"));
		}
		if(tableName.equals("yonghu")) {
			wrapper.eq("yonghuming", (String)request.getSession().getAttribute("username"));
		}

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


源码项目、定制开发、代码讲解、答辩辅导
希望和大家多多交流!!

  • 3
    点赞
  • 65
    收藏
    觉得还不错? 一键收藏
  • 11
    评论
评论 11
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值