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)));
}
没有合适的资源?快使用搜索试试~ 我知道了~
基于java+springboot+vue+mysql的郑州旅游景点智能推荐系统 源码+数据库+论文(高分毕业设计).zip
共948个文件
java:253个
vue:176个
svg:159个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 81 浏览量
2025-01-03
11:34:56
上传
评论
收藏 114.07MB ZIP 举报
温馨提示
项目已获导师指导并通过的高分毕业设计项目,可作为课程设计和期末大作业,下载即用无需修改,项目完整确保可以运行。 包含:项目源码、数据库脚本、软件工具等,该项目可以作为毕设、课程设计使用,前后端代码都在里面。 该系统功能完善、界面美观、操作简单、功能齐全、管理便捷,具有很高的实际应用价值。 项目都经过严格调试,确保可以运行!可以放心下载 技术组成 语言:java 开发环境:idea 数据库:MySql5.7以上 部署环境:maven 数据库工具:navicat
资源推荐
资源详情
资源评论
收起资源包目录
基于java+springboot+vue+mysql的郑州旅游景点智能推荐系统 源码+数据库+论文(高分毕业设计).zip (948个子文件)
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
共 948 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10
资源评论
程序员佳倩
- 粉丝: 926
- 资源: 5183
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- simpack地铁a、b型车模型
- 精简版x265教程:全面解析HEVC视频压缩技术及其应用场景
- buck 同步buck变器仿真 模型内包含开环,电压单环,电流单环电压电流双闭环 控制策略有PI,PID,电压前馈,前馈补偿控制 从系统的模型出发,建立系统传递函数,根据传递函数进行分析控制 有对
- 数据库管理,集成了MySQL、Redis、ES、Kafka、HDFS、InfluxDB、Pulsar等多种数据库组件的全生命周期管理,提供了海量集群的批量管理能力,以及相应DB组件的集群管理工具箱
- 视频编码器x264参数性能对比与优化推荐
- HEVC编码器x265的率失真复杂度优化(RDCO)算法研究与应用
- maxwell电机电磁仿真 新能源扁线电机设计及优化分析 电机仿真
- 基于Python与Keras的土木工程沉降预测深度学习模型设计与优化
- 三菱FX3U的自由口通讯(用的MODBUS RTU协议),通过485-BD板与台达VFD-M变频器用RS指令来实现 三菱PLC程序运用RS指令进行轮询通讯,正常情况下只进行读操作,当
- Django 写的应用商店 初型
- 【岗位说明】车间主任岗位说明书.xlsx
- 【岗位说明】爆破工岗位说明书.doc
- 【岗位说明】车间主任职务描述书.doc
- 【岗位说明】厂长职能说明书.doc
- 【岗位说明】操作工岗位职责说明书.doc
- 【岗位说明】吊车工岗位工作说明书.doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功