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



















2023年计算机毕业设计选题大全 计算机毕业设计选题推荐
基于微信小程序的在线小说阅读系统SpringBoot
ssm在线点餐系统(沙箱支付)
基于springboot的社区志愿者管理系统
基于SSM+Vue汽车保养预约系统
/**
* 心理咨询
* 后端接口
*/
@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);
}
源码项目、定制开发、代码讲解、答辩辅导
希望和大家多多交流!!
很好奇,就使用rubyonrails自动化单元测试而言,你们正在做什么?您是否创建了一个脚本来在cron中运行rake作业并将结果邮寄给您?git中的预提交Hook?只是手动调用?我完全理解测试,但想知道在错误发生之前捕获错误的最佳实践是什么。让我们理所当然地认为测试本身是完美无缺的,并且可以正常工作。下一步是什么以确保他们在正确的时间将可能有害的结果传达给您? 最佳答案 不确定您到底想听什么,但是有几个级别的自动代码库控制:在处理某项功能时,您可以使用类似autotest的内容获得关于哪些有效,哪些无效的即时反馈。要确保您的提
我需要在客户计算机上运行Ruby应用程序。通常需要几天才能完成(复制大备份文件)。问题是如果启用sleep,它会中断应用程序。否则,计算机将持续运行数周,直到我下次访问为止。有什么方法可以防止执行期间休眠并让Windows在执行后休眠吗?欢迎任何疯狂的想法;-) 最佳答案 Here建议使用SetThreadExecutionStateWinAPI函数,使应用程序能够通知系统它正在使用中,从而防止系统在应用程序运行时进入休眠状态或关闭显示。像这样的东西:require'Win32API'ES_AWAYMODE_REQUIRED=0x0
我有一个模型:classItem项目有一个属性“商店”基于存储的值,我希望Item对象对特定方法具有不同的行为。Rails中是否有针对此的通用设计模式?如果方法中没有大的if-else语句,这是如何干净利落地完成的? 最佳答案 通常通过Single-TableInheritance. 关于ruby-on-rails-Rails-子类化模型的设计模式是什么?,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.co
Rackup通过Rack的默认处理程序成功运行任何Rack应用程序。例如:classRackAppdefcall(environment)['200',{'Content-Type'=>'text/html'},["Helloworld"]]endendrunRackApp.new但是当最后一行更改为使用Rack的内置CGI处理程序时,rackup给出“NoMethodErrorat/undefinedmethod`call'fornil:NilClass”:Rack::Handler::CGI.runRackApp.newRack的其他内置处理程序也提出了同样的反对意见。例如Rack
我想用ruby编写一个小的命令行实用程序并将其作为gem分发。我知道安装后,Guard、Sass和Thor等某些gem可以从命令行自行运行。为了让gem像二进制文件一样可用,我需要在我的gemspec中指定什么。 最佳答案 Gem::Specification.newdo|s|...s.executable='name_of_executable'...endhttp://docs.rubygems.org/read/chapter/20 关于ruby-在Ruby中编写命令行实用程序
我正在编写一个包含C扩展的gem。通常当我写一个gem时,我会遵循TDD的过程,我会写一个失败的规范,然后处理代码直到它通过,等等......在“ext/mygem/mygem.c”中我的C扩展和在gemspec的“扩展”中配置的有效extconf.rb,如何运行我的规范并仍然加载我的C扩展?当我更改C代码时,我需要采取哪些步骤来重新编译代码?这可能是个愚蠢的问题,但是从我的gem的开发源代码树中输入“bundleinstall”不会构建任何native扩展。当我手动运行rubyext/mygem/extconf.rb时,我确实得到了一个Makefile(在整个项目的根目录中),然后当
我构建了两个需要相互通信和发送文件的Rails应用程序。例如,一个Rails应用程序会发送请求以查看其他应用程序数据库中的表。然后另一个应用程序将呈现该表的json并将其发回。我还希望一个应用程序将存储在其公共(public)目录中的文本文件发送到另一个应用程序的公共(public)目录。我从来没有做过这样的事情,所以我什至不知道从哪里开始。任何帮助,将不胜感激。谢谢! 最佳答案 无论Rails是什么,几乎所有Web应用程序都有您的要求,大多数现代Web应用程序都需要相互通信。但是有一个小小的理解需要你坚持下去,网站不应直接访问彼此
我尝试运行2.x应用程序。我使用rvm并为此应用程序设置其他版本的ruby:$rvmuseree-1.8.7-head我尝试运行服务器,然后出现很多错误:$script/serverNOTE:Gem.source_indexisdeprecated,useSpecification.Itwillberemovedonorafter2011-11-01.Gem.source_indexcalledfrom/Users/serg/rails_projects_terminal/work_proj/spohelp/config/../vendor/rails/railties/lib/r
我有一个围绕一些对象的包装类,我想将这些对象用作散列中的键。包装对象和解包装对象应映射到相同的键。一个简单的例子是这样的:classAattr_reader:xdefinitialize(inner)@inner=innerenddefx;@inner.x;enddef==(other)@inner.x==other.xendenda=A.new(o)#oisjustanyobjectthatallowso.xb=A.new(o)h={a=>5}ph[a]#5ph[b]#nil,shouldbe5ph[o]#nil,shouldbe5我试过==、===、eq?并散列所有无济于事。
我有一些Ruby代码,如下所示:Something.createdo|x|x.foo=barend我想编写一个测试,它使用double代替block参数x,这样我就可以调用:x_double.should_receive(:foo).with("whatever").这可能吗? 最佳答案 specify'something'dox=doublex.should_receive(:foo=).with("whatever")Something.should_receive(:create).and_yield(x)#callthere