package com.controller;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.text.ParseException;
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.transaction.annotation.Transactional;
import org.springframework.format.annotation.DateTimeFormat;
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.JiudianyudingEntity;
import com.entity.view.JiudianyudingView;
import com.service.JiudianyudingService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MPUtil;
import com.utils.MapUtils;
import com.utils.CommonUtil;
import java.io.IOException;
/**
* 酒店预定
* 后端接口
* @author
* @email
* @date 2024-02-04 22:02:00
*/
@RestController
@RequestMapping("/jiudianyuding")
public class JiudianyudingController {
@Autowired
private JiudianyudingService jiudianyudingService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,JiudianyudingEntity jiudianyuding,
HttpServletRequest request){
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("yonghu")) {
jiudianyuding.setYonghuzhanghao((String)request.getSession().getAttribute("username"));
}
EntityWrapper<JiudianyudingEntity> ew = new EntityWrapper<JiudianyudingEntity>();
PageUtils page = jiudianyudingService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, jiudianyuding), params), params));
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@IgnoreAuth
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,JiudianyudingEntity jiudianyuding,
HttpServletRequest request){
EntityWrapper<JiudianyudingEntity> ew = new EntityWrapper<JiudianyudingEntity>();
PageUtils page = jiudianyudingService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, jiudianyuding), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( JiudianyudingEntity jiudianyuding){
EntityWrapper<JiudianyudingEntity> ew = new EntityWrapper<JiudianyudingEntity>();
ew.allEq(MPUtil.allEQMapPre( jiudianyuding, "jiudianyuding"));
return R.ok().put("data", jiudianyudingService.selectListView(ew));
}
/**
* 查询
*/
@RequestMapping("/query")
public R query(JiudianyudingEntity jiudianyuding){
EntityWrapper< JiudianyudingEntity> ew = new EntityWrapper< JiudianyudingEntity>();
ew.allEq(MPUtil.allEQMapPre( jiudianyuding, "jiudianyuding"));
JiudianyudingView jiudianyudingView = jiudianyudingService.selectView(ew);
return R.ok("查询酒店预定成功").put("data", jiudianyudingView);
}
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
JiudianyudingEntity jiudianyuding = jiudianyudingService.selectById(id);
return R.ok().put("data", jiudianyuding);
}
/**
* 前端详情
*/
@IgnoreAuth
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
JiudianyudingEntity jiudianyuding = jiudianyudingService.selectById(id);
return R.ok().put("data", jiudianyuding);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody JiudianyudingEntity jiudianyuding, HttpServletRequest request){
//ValidatorUtils.validateEntity(jiudianyuding);
jiudianyudingService.insert(jiudianyuding);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody JiudianyudingEntity jiudianyuding, HttpServletRequest request){
//ValidatorUtils.validateEntity(jiudianyuding);
jiudianyudingService.insert(jiudianyuding);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
@Transactional
public R update(@RequestBody JiudianyudingEntity jiudianyuding, HttpServletRequest request){
//ValidatorUtils.validateEntity(jiudianyuding);
jiudianyudingService.updateById(jiudianyuding);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
jiudianyudingService.deleteBatchIds(Arrays.asList(ids));
return R.ok();
}
/**
* (按值统计)
*/
@RequestMapping("/value/{xColumnName}/{yColumnName}")
public R value(@PathVariable("yColumnName") String yColumnName, @PathVariable("xColumnName") String xColumnName,HttpServletRequest request) {
Map<String, Object> params = new HashMap<String, Object>();
params.put("xColumn", xColumnName);
params.put("yColumn", yColumnName);
EntityWrapper<JiudianyudingEntity> ew = new EntityWrapper<JiudianyudingEntity>();
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("yonghu")) {
ew.eq("yonghuzhanghao", (String)request.getSession().getAttribute("username"));
}
List<Map<String, Object>> result = jiudianyudingService.selectValue(params, ew);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
for(Map<String, Object> m : result) {
for(String k : m.keySet()) {
if(m.get(k) instanceof Date) {
m.put(k, sdf.format((Date)m.get(k)));
}
}
}
return R.ok().put("data", result);
}
/**
* (按值统计(多))
*/
@RequestMapping("/valueMul/{xColumnName}")
public R valueMul(@PathVariable("xColumnName") String xColumnName,@RequestParam String yColumnNameMul, HttpServletRequest request) {
String[] yColumnNames = yColumnNameMul.split(",");
Map<String, Object> params = new HashMap<String, Object>();
params.put("xColumn", xColumnName);
List<List<Map<String, Object>>> result2 = new ArrayList<List<Map<String,Object>>>();
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
EntityWrapper<JiudianyudingEntity> ew = new EntityWrapper<JiudianyudingEntity>();
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("yonghu")) {
ew.eq("yonghuzhanghao", (String)request.getSession().getAttribute("username"));
}
for(int i=0;i<yColumnNames.length;i++) {
params.put("yColumn", yColumnNames[i]);
List<Map<String, Object>> result = jiudianyudingService.selectValue(params, ew);
for(Map<String, Object> m : result) {
for(String k : m.keySet()) {
if(m.get(k) instanceof Date) {
m.put(k, sdf.format((Date)m.get(k)));
}
没有合适的资源?快使用搜索试试~ 我知道了~
基于SpringBoot+Vue.JS前后端分离的郑州旅游景点智能推荐系统 源码+数据库+录屏(毕业设计)
共947个文件
java:253个
vue:176个
svg:159个
需积分: 0 0 下载量 87 浏览量
2024-09-18
14:53:54
上传
评论
收藏 111.71MB ZIP 举报
温馨提示
郑州旅游景点智能推荐系统是一个基于Vue.js和SpringBoot框架开发的现代化旅游信息服务平台,旨在为游客提供个性化的旅游体验。该系统前端采用Vue.js框架,利用其响应式和组件化的特点,为用户提供流畅且直观的界面交互体验。后端则采用SpringBoot框架,简化了传统Spring应用的配置和部署流程,提高了开发效率。系统后端与MySQL数据库紧密集成,利用其强大的数据管理和查询能力,存储和管理大量的旅游景点数据。通过智能算法,系统能够根据用户的历史行为、偏好和实时需求,推荐最适合的郑州旅游景点,从而提升用户的旅游满意度。此外,系统还提供了用户评价和反馈功能,不断优化推荐算法,确保推荐结果的准确性和时效性。 启动教程:https://www.bilibili.com/video/BV11ktveuE2d
资源推荐
资源详情
资源评论
收起资源包目录
基于SpringBoot+Vue.JS前后端分离的郑州旅游景点智能推荐系统 源码+数据库+录屏(毕业设计) (947个子文件)
main.js.bak 2KB
3-build.bat 15B
2-run.bat 14B
build.bat 14B
run.bat 14B
1-install.bat 12B
install.bat 12B
.classpath 2KB
mvnw.cmd 7KB
app.f60caf10.css 845KB
app.fa409dbd.css 465KB
chunk-vendors.a071548c.css 312KB
chunk-vendors.1f0a25b2.css 37KB
swiper.min.css 13KB
swiper.min.css 13KB
iconfont.css 622B
canvas-bg-1.css 391B
canvas-bg-1.css 391B
canvas-bg-2.css 83B
canvas-bg-2.css 83B
canvas-bg-4.css 61B
canvas-bg-5.css 61B
canvas-bg-3.css 61B
canvas-bg-3.css 61B
.factorypath 15KB
1707055800415.gif 768KB
.gitignore 364B
.gitignore 184B
index.html 1KB
index.html 1KB
index.html 1KB
index.html 962B
favicon.ico 4KB
favicon.ico 4KB
favicon.ico 4KB
favicon.ico 4KB
maven-wrapper.jar 50KB
JiudianyudingController.java 13KB
MenpiaoyudingController.java 13KB
MeishiyudingController.java 12KB
JingdianxinxiController.java 10KB
JiudianxinxiController.java 10KB
NewsController.java 9KB
BaiduUtil.java 9KB
EncryptUtil.java 8KB
YonghuController.java 8KB
AddressController.java 8KB
CommonController.java 7KB
ForumController.java 7KB
DiscussjingdianxinxiController.java 7KB
MeishiyudingEntity.java 7KB
DiscussjiudianxinxiController.java 7KB
DiscusschepiaoxinxiController.java 7KB
DiscussmeishixinxiController.java 7KB
MeishixinxiEntity.java 7KB
MeishixinxiController.java 7KB
LvyouluxianController.java 7KB
JingdianxinxiEntity.java 7KB
SystemintroController.java 7KB
StoreupController.java 7KB
NewstypeController.java 6KB
MPUtil.java 6KB
AboutusController.java 6KB
JiudianyudingEntity.java 6KB
MeishiyudingModel.java 6KB
JiudianxinxiEntity.java 6KB
MeishiyudingVO.java 6KB
ChepiaoxinxiEntity.java 6KB
ChepiaoyudingEntity.java 6KB
ChepiaoxinxiController.java 6KB
MeishixinxiModel.java 6KB
LuxianyudingEntity.java 6KB
MeishixinxiVO.java 6KB
JingdianxinxiModel.java 5KB
LvyouluxianEntity.java 5KB
JingdianxinxiVO.java 5KB
ChepiaoyudingController.java 5KB
LuxianyudingController.java 5KB
JingdianleixingController.java 5KB
JiudianleixingController.java 5KB
MenpiaoyudingEntity.java 5KB
UsersController.java 5KB
LvyougonglveEntity.java 5KB
MeishifenleiController.java 5KB
LvyougonglveController.java 5KB
JiudianyudingModel.java 5KB
NewsEntity.java 5KB
JiudianyudingVO.java 5KB
MavenWrapperDownloader.java 5KB
UserBasedCollaborativeFiltering.java 5KB
JiudianxinxiModel.java 5KB
ChepiaoxinxiModel.java 5KB
JiudianxinxiVO.java 5KB
ChepiaoyudingModel.java 5KB
ChepiaoxinxiVO.java 5KB
ChepiaoyudingVO.java 5KB
LuxianyudingModel.java 4KB
LuxianyudingVO.java 4KB
ForumEntity.java 4KB
FileController.java 4KB
共 947 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10
资源评论
杨荧
- 粉丝: 2w+
- 资源: 2372
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 逐行注释自适应Q和R的AUKF(自适应无迹卡尔曼滤波),附下载链接
- 常用的几何图形点云(感兴趣选)
- 本案例常用的点云测试文件
- 大学实训课程设计基于Django服装仓库管理系统源代码+数据库
- TL文件使用三角形网格来近似物体的表面,因此它不直接存储点云数据 不过,我们可以从STL文件中提取点云数据,即从三角形顶点中提取
- 【MATLAB代码】二维环境下TOA的MATLAB仿真代码(4个锚节点)
- MATLABTOA测距定位,三维任意(>3)个锚节点,对一个未知点进行定位
- C# AutoCAD DWG打印成PDF 代码
- PbootCms微信小程序社交电商软件公司官网源码
- RSSI定位的MATLAB代码,四个锚点,二维平面上的定位
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功