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.WenwuliudongshenqingEntity;
import com.entity.view.WenwuliudongshenqingView;
import com.service.WenwuliudongshenqingService;
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-04-09 18:35:39
*/
@RestController
@RequestMapping("/wenwuliudongshenqing")
public class WenwuliudongshenqingController {
@Autowired
private WenwuliudongshenqingService wenwuliudongshenqingService;
/**
* 后台列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,WenwuliudongshenqingEntity wenwuliudongshenqing,
HttpServletRequest request){
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("gongzuorenyuan")) {
wenwuliudongshenqing.setYuangonggonghao((String)request.getSession().getAttribute("username"));
}
EntityWrapper<WenwuliudongshenqingEntity> ew = new EntityWrapper<WenwuliudongshenqingEntity>();
PageUtils page = wenwuliudongshenqingService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, wenwuliudongshenqing), params), params));
return R.ok().put("data", page);
}
/**
* 前台列表
*/
@IgnoreAuth
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,WenwuliudongshenqingEntity wenwuliudongshenqing,
HttpServletRequest request){
EntityWrapper<WenwuliudongshenqingEntity> ew = new EntityWrapper<WenwuliudongshenqingEntity>();
PageUtils page = wenwuliudongshenqingService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, wenwuliudongshenqing), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( WenwuliudongshenqingEntity wenwuliudongshenqing){
EntityWrapper<WenwuliudongshenqingEntity> ew = new EntityWrapper<WenwuliudongshenqingEntity>();
ew.allEq(MPUtil.allEQMapPre( wenwuliudongshenqing, "wenwuliudongshenqing"));
return R.ok().put("data", wenwuliudongshenqingService.selectListView(ew));
}
/**
* 查询
*/
@RequestMapping("/query")
public R query(WenwuliudongshenqingEntity wenwuliudongshenqing){
EntityWrapper< WenwuliudongshenqingEntity> ew = new EntityWrapper< WenwuliudongshenqingEntity>();
ew.allEq(MPUtil.allEQMapPre( wenwuliudongshenqing, "wenwuliudongshenqing"));
WenwuliudongshenqingView wenwuliudongshenqingView = wenwuliudongshenqingService.selectView(ew);
return R.ok("查询文物流动申请成功").put("data", wenwuliudongshenqingView);
}
/**
* 后台详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
WenwuliudongshenqingEntity wenwuliudongshenqing = wenwuliudongshenqingService.selectById(id);
return R.ok().put("data", wenwuliudongshenqing);
}
/**
* 前台详情
*/
@IgnoreAuth
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
WenwuliudongshenqingEntity wenwuliudongshenqing = wenwuliudongshenqingService.selectById(id);
return R.ok().put("data", wenwuliudongshenqing);
}
/**
* 后台保存
*/
@RequestMapping("/save")
public R save(@RequestBody WenwuliudongshenqingEntity wenwuliudongshenqing, HttpServletRequest request){
//ValidatorUtils.validateEntity(wenwuliudongshenqing);
wenwuliudongshenqingService.insert(wenwuliudongshenqing);
return R.ok();
}
/**
* 前台保存
*/
@RequestMapping("/add")
public R add(@RequestBody WenwuliudongshenqingEntity wenwuliudongshenqing, HttpServletRequest request){
//ValidatorUtils.validateEntity(wenwuliudongshenqing);
wenwuliudongshenqingService.insert(wenwuliudongshenqing);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
@Transactional
public R update(@RequestBody WenwuliudongshenqingEntity wenwuliudongshenqing, HttpServletRequest request){
//ValidatorUtils.validateEntity(wenwuliudongshenqing);
wenwuliudongshenqingService.updateById(wenwuliudongshenqing);//全部更新
return R.ok();
}
/**
* 审核
*/
@RequestMapping("/shBatch")
@Transactional
public R update(@RequestBody Long[] ids, @RequestParam String sfsh, @RequestParam String shhf){
List<WenwuliudongshenqingEntity> list = new ArrayList<WenwuliudongshenqingEntity>();
for(Long id : ids) {
WenwuliudongshenqingEntity wenwuliudongshenqing = wenwuliudongshenqingService.selectById(id);
wenwuliudongshenqing.setSfsh(sfsh);
wenwuliudongshenqing.setShhf(shhf);
list.add(wenwuliudongshenqing);
}
wenwuliudongshenqingService.updateBatchById(list);
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
wenwuliudongshenqingService.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<WenwuliudongshenqingEntity> ew = new EntityWrapper<WenwuliudongshenqingEntity>();
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("gongzuorenyuan")) {
ew.eq("yuangonggonghao", (String)request.getSession().getAttribute("username"));
}
List<Map<String, Object>> result = wenwuliudongshenqingService.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 yColumnNa
没有合适的资源?快使用搜索试试~ 我知道了~
【java毕业设计】博物馆文博资源库系统设计(springboot+vue+mysql+说明文档).zip
共438个文件
svg:159个
java:100个
vue:46个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 60 浏览量
2024-11-08
16:32:37
上传
评论
收藏 11.18MB ZIP 举报
温馨提示
项目经过测试均可完美运行! 环境说明: 开发语言:java 框架:springboot jdk版本:jdk1.8 数据库:mysql 5.7+ 数据库工具:Navicat11+ 管理工具:maven 开发工具:idea/eclipse 部署容器:tomcat7+
资源推荐
资源详情
资源评论
收起资源包目录
【java毕业设计】博物馆文博资源库系统设计(springboot+vue+mysql+说明文档).zip (438个子文件)
main.js.bak 2KB
3-build.bat 15B
2-run.bat 14B
1-install.bat 12B
.classpath 2KB
mvnw.cmd 7KB
app.729c7e0a.css 393KB
chunk-vendors.1f0a25b2.css 37KB
canvas-bg-1.css 391B
canvas-bg-2.css 83B
canvas-bg-4.css 61B
canvas-bg-5.css 61B
canvas-bg-3.css 61B
.factorypath 15KB
.gitignore 364B
index.html 1KB
index.html 967B
favicon.ico 4KB
favicon.ico 4KB
maven-wrapper.jar 50KB
WenwuliudongshenqingController.java 14KB
WenwubaoxiuController.java 12KB
WenwuxinxiController.java 11KB
BaiduUtil.java 9KB
GongzuorenyuanController.java 9KB
XiufuyuanController.java 8KB
EncryptUtil.java 8KB
CommonController.java 7KB
MPUtil.java 6KB
XiufuqingkuangshangbaoController.java 6KB
WenwuliudongshenqingEntity.java 6KB
XiufuqingkuangshangbaoEntity.java 5KB
WenwubaoxiuEntity.java 5KB
UsersController.java 5KB
WenwuleixingController.java 5KB
MavenWrapperDownloader.java 5KB
WenwuliudongshenqingModel.java 5KB
WenwuxinxiEntity.java 5KB
WenwuliudongshenqingVO.java 4KB
FileController.java 4KB
CommonUtil.java 4KB
XiufuqingkuangshangbaoModel.java 4KB
WenwubaoxiuModel.java 4KB
XiufuqingkuangshangbaoVO.java 4KB
WenwubaoxiuVO.java 4KB
XiufuyuanEntity.java 3KB
GongzuorenyuanEntity.java 3KB
AuthorizationInterceptor.java 3KB
WenwuxinxiModel.java 3KB
ConfigController.java 3KB
WenwuxinxiVO.java 3KB
HttpClientUtils.java 3KB
WenwuliudongshenqingServiceImpl.java 3KB
Query.java 3KB
WenwubaoxiuServiceImpl.java 3KB
WenwuxinxiServiceImpl.java 2KB
TokenServiceImpl.java 2KB
XiufuqingkuangshangbaoServiceImpl.java 2KB
TokenEntity.java 2KB
XiufuyuanModel.java 2KB
GongzuorenyuanModel.java 2KB
WenwuleixingEntity.java 2KB
GongzuorenyuanServiceImpl.java 2KB
WenwuleixingServiceImpl.java 2KB
PageUtils.java 2KB
XiufuyuanServiceImpl.java 2KB
XiufuyuanVO.java 2KB
GongzuorenyuanVO.java 2KB
WenwuliudongshenqingDao.java 2KB
WenwuliudongshenqingService.java 1KB
InterceptorConfig.java 1KB
UsersEntity.java 1KB
CommonServiceImpl.java 1KB
WenwubaoxiuDao.java 1KB
WenwuxinxiDao.java 1KB
UsersServiceImpl.java 1KB
WenwubaoxiuService.java 1KB
WenwuxinxiService.java 1KB
XiufuqingkuangshangbaoService.java 1KB
XiufuqingkuangshangbaoDao.java 1KB
SpringContextUtils.java 1KB
XiufuqingkuangshangbaoView.java 1KB
ValidatorUtils.java 1KB
WenwuliudongshenqingView.java 1KB
GongzuorenyuanService.java 1KB
SQLFilter.java 1KB
GongzuorenyuanDao.java 1KB
WenwuleixingService.java 1KB
ConfigEntity.java 1KB
WenwuleixingDao.java 1KB
GongzuorenyuanView.java 1KB
WenwuleixingView.java 1011B
WenwubaoxiuView.java 1002B
XiufuyuanService.java 999B
WenwuxinxiView.java 993B
XiufuyuanDao.java 983B
XiufuyuanView.java 981B
ConfigServiceImpl.java 918B
R.java 884B
EIException.java 845B
共 438 条
- 1
- 2
- 3
- 4
- 5
资源评论
计算机学长阿伟
- 粉丝: 3198
- 资源: 849
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 精益管摆盘周转车sw17可编辑全套设计资料100%好用.zip
- 可变距平皮带输送机sw16可编辑全套设计资料100%好用.zip
- 六轴二保焊焊接机器人设计(带焊接枪)x_t全套设计资料100%好用.zip
- C# 运动控制系统 雷赛运动控制卡控制系统 像高川控制卡、高川控制器、或者固高运动控制卡以及正运动控制器、正运动控制卡可以用这个框架,自己替一下库文件等代码就可以 源码全开放,不设限,标有注释
- 马铃薯收割机sw20可编辑全套设计资料100%好用.zip
- 奶酪包装装盒生产线 sw20全套设计资料100%好用.zip
- 皮带输送机检测机sw17全套设计资料100%好用.zip
- 农业机械-耕耘割茬播种一体机sw17全套设计资料100%好用.zip
- 基于拓展卡尔曼滤波的车辆质量与道路坡度估计 车辆坡度与质量识别模型,基于扩展卡尔曼滤波,估计曲线与实际误差合理 先用递归最小二乘法(RLS)质量识别,最后利用扩展卡尔曼坡度识别(EKF) 送纹献
- 随机路面,路面激励,路面不平度 软件使用:Matlab Simulink 适用场景:采用模块化建模方法,搭建随机路面模型,可实现不同车速,不同路面等级的路面激励 包含:simulink源码文件,详细
- wincc高级报表,支持自定义模版,支持打印预览,支持打印PDF,支持导出Excel表格,支持自定义打印区域,可显示最大值,最小值,平均值,可求和 可以在wincc7.4 7.5 8.0,博图win
- (179842242)校园食堂订餐系统 JAVA毕业设计 源码+数据库+论文+启动教程(SpringBoot+Vue.JS).zip
- 基于fpga的温度采集系统工程,max6675驱动源码,可上传到电脑上位机软件绘制温度曲线 fpga代码、和QT控制软件 是工程代码
- (21545816)JAVA登录注册页面实现前端与后台数据连接
- (4799648)图书管理系统(源代码)
- 燃烧器三维step全套设计资料100%好用.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功