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.JiaolianpingjiaEntity;
import com.entity.view.JiaolianpingjiaView;
import com.service.JiaolianpingjiaService;
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 22:31:42
*/
@RestController
@RequestMapping("/jiaolianpingjia")
public class JiaolianpingjiaController {
@Autowired
private JiaolianpingjiaService jiaolianpingjiaService;
/**
* 后台列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,JiaolianpingjiaEntity jiaolianpingjia,
HttpServletRequest request){
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("jiaxiaojiaolian")) {
jiaolianpingjia.setJiaolianzhanghao((String)request.getSession().getAttribute("username"));
}
if(tableName.equals("yonghu")) {
jiaolianpingjia.setYonghuzhanghao((String)request.getSession().getAttribute("username"));
}
EntityWrapper<JiaolianpingjiaEntity> ew = new EntityWrapper<JiaolianpingjiaEntity>();
PageUtils page = jiaolianpingjiaService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, jiaolianpingjia), params), params));
return R.ok().put("data", page);
}
/**
* 前台列表
*/
@IgnoreAuth
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,JiaolianpingjiaEntity jiaolianpingjia,
HttpServletRequest request){
EntityWrapper<JiaolianpingjiaEntity> ew = new EntityWrapper<JiaolianpingjiaEntity>();
PageUtils page = jiaolianpingjiaService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, jiaolianpingjia), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( JiaolianpingjiaEntity jiaolianpingjia){
EntityWrapper<JiaolianpingjiaEntity> ew = new EntityWrapper<JiaolianpingjiaEntity>();
ew.allEq(MPUtil.allEQMapPre( jiaolianpingjia, "jiaolianpingjia"));
return R.ok().put("data", jiaolianpingjiaService.selectListView(ew));
}
/**
* 查询
*/
@RequestMapping("/query")
public R query(JiaolianpingjiaEntity jiaolianpingjia){
EntityWrapper< JiaolianpingjiaEntity> ew = new EntityWrapper< JiaolianpingjiaEntity>();
ew.allEq(MPUtil.allEQMapPre( jiaolianpingjia, "jiaolianpingjia"));
JiaolianpingjiaView jiaolianpingjiaView = jiaolianpingjiaService.selectView(ew);
return R.ok("查询教练评价成功").put("data", jiaolianpingjiaView);
}
/**
* 后台详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
JiaolianpingjiaEntity jiaolianpingjia = jiaolianpingjiaService.selectById(id);
return R.ok().put("data", jiaolianpingjia);
}
/**
* 前台详情
*/
@IgnoreAuth
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
JiaolianpingjiaEntity jiaolianpingjia = jiaolianpingjiaService.selectById(id);
return R.ok().put("data", jiaolianpingjia);
}
/**
* 后台保存
*/
@RequestMapping("/save")
public R save(@RequestBody JiaolianpingjiaEntity jiaolianpingjia, HttpServletRequest request){
//ValidatorUtils.validateEntity(jiaolianpingjia);
jiaolianpingjiaService.insert(jiaolianpingjia);
return R.ok();
}
/**
* 前台保存
*/
@RequestMapping("/add")
public R add(@RequestBody JiaolianpingjiaEntity jiaolianpingjia, HttpServletRequest request){
//ValidatorUtils.validateEntity(jiaolianpingjia);
jiaolianpingjiaService.insert(jiaolianpingjia);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
@Transactional
public R update(@RequestBody JiaolianpingjiaEntity jiaolianpingjia, HttpServletRequest request){
//ValidatorUtils.validateEntity(jiaolianpingjia);
jiaolianpingjiaService.updateById(jiaolianpingjia);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
jiaolianpingjiaService.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<JiaolianpingjiaEntity> ew = new EntityWrapper<JiaolianpingjiaEntity>();
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("jiaxiaojiaolian")) {
ew.eq("jiaolianzhanghao", (String)request.getSession().getAttribute("username"));
}
if(tableName.equals("yonghu")) {
ew.eq("yonghuzhanghao", (String)request.getSession().getAttribute("username"));
}
List<Map<String, Object>> result = jiaolianpingjiaService.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<JiaolianpingjiaEntity> ew = new EntityWrapper<JiaolianpingjiaEntity>();
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("jiaxiaojiaolian")) {
ew.eq("jiaolianzhanghao", (String)request.getSession().getAttribute("username"));
}
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]);
没有合适的资源?快使用搜索试试~ 我知道了~
基于Vue框架的驾校管理系统源码设计
共718个文件
java:196个
svg:159个
vue:135个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 112 浏览量
2024-10-09
05:58:59
上传
评论
收藏 48.44MB ZIP 举报
温馨提示
该项目为基于Vue框架构建的驾校管理系统,包含714个文件,涵盖196个Java源代码文件、159个SVG图形文件、134个Vue组件文件、62个JavaScript脚本文件、42个PNG图片文件、40个JPG图片文件、25个XML配置文件、15个CSS样式文件、6个批处理文件、5个JSON配置文件。该系统采用Java后端技术,结合Vue前端框架,实现驾校管理各项功能,旨在提升驾校运营效率和服务质量。
资源推荐
资源详情
资源评论
收起资源包目录
基于Vue框架的驾校管理系统源码设计 (718个子文件)
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
mvnw.cmd 6KB
app.c0ff4243.css 632KB
chunk-vendors.1622b503.css 312KB
app.c8350f4d.css 239KB
chunk-vendors.1f0a25b2.css 37KB
swiper.min.css 13KB
swiper.min.css 13KB
iconfont.css 599B
canvas-bg-1.css 379B
canvas-bg-1.css 379B
canvas-bg-2.css 79B
canvas-bg-2.css 79B
canvas-bg-4.css 57B
canvas-bg-5.css 57B
canvas-bg-3.css 57B
canvas-bg-3.css 57B
.gitignore 333B
index.html 1KB
index.html 1KB
index.html 1KB
index.html 944B
favicon.ico 4KB
favicon.ico 4KB
favicon.ico 4KB
favicon.ico 4KB
maven-wrapper.jar 50KB
JiaolianpingjiaController.java 13KB
BaomingxinxiController.java 13KB
ExampaperController.java 12KB
BaiduUtil.java 9KB
JiaxiaojiaolianController.java 9KB
NewsController.java 9KB
ExamrecordController.java 8KB
EncryptUtil.java 8KB
YonghuController.java 8KB
AddressController.java 8KB
CommonController.java 7KB
ExamquestionbankController.java 7KB
ExamquestionController.java 6KB
StoreupController.java 6KB
NewstypeController.java 6KB
MPUtil.java 6KB
LiancheyuyueController.java 6KB
KaoshiyuyueController.java 6KB
BaomingxinxiEntity.java 6KB
ExamrecordEntity.java 5KB
KaoshichengjiController.java 5KB
XueyuanxinxiController.java 5KB
KaoshianpaiController.java 5KB
BiyexueyuanController.java 5KB
LianxikechengController.java 5KB
KaoshichengjiEntity.java 5KB
UsersController.java 5KB
BiyexueyuanEntity.java 5KB
MavenWrapperDownloader.java 5KB
KaoshianpaiEntity.java 5KB
NewsEntity.java 5KB
KaoshiyuyueEntity.java 5KB
JiaolianpingjiaEntity.java 5KB
XueyuanxinxiEntity.java 5KB
BaomingxinxiModel.java 5KB
LiancheyuyueEntity.java 4KB
ExamrecordModel.java 4KB
BaomingxinxiVO.java 4KB
ExamquestionEntity.java 4KB
FileController.java 4KB
ExamrecordVO.java 4KB
CommonUtil.java 4KB
KaoshichengjiModel.java 4KB
ExamquestionbankEntity.java 4KB
LianxikechengEntity.java 4KB
JiaxiaojiaolianEntity.java 4KB
KaoshichengjiVO.java 4KB
BiyexueyuanModel.java 4KB
NewsModel.java 4KB
KaoshianpaiModel.java 4KB
StoreupEntity.java 3KB
KaoshiyuyueModel.java 3KB
BiyexueyuanVO.java 3KB
NewsVO.java 3KB
KaoshianpaiVO.java 3KB
XueyuanxinxiModel.java 3KB
JiaolianpingjiaModel.java 3KB
AuthorizationInterceptor.java 3KB
KaoshiyuyueVO.java 3KB
LiancheyuyueModel.java 3KB
YonghuEntity.java 3KB
XueyuanxinxiVO.java 3KB
JiaolianpingjiaVO.java 3KB
ExamquestionModel.java 3KB
ConfigController.java 3KB
LiancheyuyueVO.java 3KB
ExamquestionVO.java 3KB
共 718 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8
资源评论
lsx202406
- 粉丝: 2354
- 资源: 5562
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功