注意:该项目只展示部分功能,如需了解,评论区咨询即可。
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());
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());
xinlizixun.setUserid((Long)request.getSession().getAttribute("userId"));
xinlizixunService.insert(xinlizixun);
return R.ok();
}
@RequestMapping("/update")
public R update(@RequestBody XinlizixunEntity xinlizixun, HttpServletRequest request){
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);
}
源码项目、定制开发、代码讲解、答辩辅导 希望和大家多多交流!!
|