IT评测·应用市场-qidao123.com技术社区

标题: JAVA毕业设计176—基于Java+Springboot+vue3的交通旅游订票管理系统(源代码 [打印本页]

作者: tsx81428    时间: 2024-9-20 21:43
标题: JAVA毕业设计176—基于Java+Springboot+vue3的交通旅游订票管理系统(源代码
毕设全部选题:
https://blog.csdn.net/2303_76227485/article/details/131104075

基于Java+Springboot+vue3的交通旅游订票管理系统(源代码+数据库)176

一、系统先容

本项现在后端分离(可以改为ssm版本),分为用户、管理员两种角色
1、用户:


2、管理员:


二、所用技术

后端技术栈:

前端技术栈:

三、环境先容

底子环境 :IDEA/eclipse, JDK1.8, Mysql5.7及以上, Maven3.6, node14, navicat
全部项目以及源代码本人均调试运行无问题 可支持远程调试运行
四、页面截图

1、用户:























2、管理员:













五、欣赏地址

前台地址:http://localhost:8082
用户账号密码:用户账号1/123456
后台地址:http://localhost:8081
管理员账户密码:admin/admin
六、摆设教程

七、核心代码

  1. @RestController
  2. @RequestMapping("/huochexinxi")
  3. public class HuochexinxiController {
  4.     @Autowired
  5.     private HuochexinxiService huochexinxiService;
  6.     /**
  7.      * 后端列表
  8.      */
  9.     @RequestMapping("/page")
  10.     public R page(@RequestParam Map<String, Object> params,HuochexinxiEntity huochexinxi,
  11.                 HttpServletRequest request){
  12.         EntityWrapper<HuochexinxiEntity> ew = new EntityWrapper<HuochexinxiEntity>();
  13.                 PageUtils page = huochexinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, huochexinxi), params), params));
  14.         return R.ok().put("data", page);
  15.     }
  16.    
  17.     /**
  18.      * 前端列表
  19.      */
  20.         @IgnoreAuth
  21.     @RequestMapping("/list")
  22.     public R list(@RequestParam Map<String, Object> params,HuochexinxiEntity huochexinxi,
  23.                 HttpServletRequest request){
  24.         EntityWrapper<HuochexinxiEntity> ew = new EntityWrapper<HuochexinxiEntity>();
  25.                 PageUtils page = huochexinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, huochexinxi), params), params));
  26.         return R.ok().put("data", page);
  27.     }
  28.         /**
  29.      * 列表
  30.      */
  31.     @RequestMapping("/lists")
  32.     public R list( HuochexinxiEntity huochexinxi){
  33.                EntityWrapper<HuochexinxiEntity> ew = new EntityWrapper<HuochexinxiEntity>();
  34.               ew.allEq(MPUtil.allEQMapPre( huochexinxi, "huochexinxi"));
  35.         return R.ok().put("data", huochexinxiService.selectListView(ew));
  36.     }
  37.          /**
  38.      * 查询
  39.      */
  40.     @RequestMapping("/query")
  41.     public R query(HuochexinxiEntity huochexinxi){
  42.         EntityWrapper< HuochexinxiEntity> ew = new EntityWrapper< HuochexinxiEntity>();
  43.                 ew.allEq(MPUtil.allEQMapPre( huochexinxi, "huochexinxi"));
  44.                 HuochexinxiView huochexinxiView =  huochexinxiService.selectView(ew);
  45.                 return R.ok("查询火车信息成功").put("data", huochexinxiView);
  46.     }
  47.        
  48.     /**
  49.      * 后端详情
  50.      */
  51.     @RequestMapping("/info/{id}")
  52.     public R info(@PathVariable("id") Long id){
  53.         HuochexinxiEntity huochexinxi = huochexinxiService.selectById(id);
  54.                 huochexinxi = huochexinxiService.selectView(new EntityWrapper<HuochexinxiEntity>().eq("id", id));
  55.         return R.ok().put("data", huochexinxi);
  56.     }
  57.     /**
  58.      * 前端详情
  59.      */
  60.         @IgnoreAuth
  61.     @RequestMapping("/detail/{id}")
  62.     public R detail(@PathVariable("id") Long id){
  63.         HuochexinxiEntity huochexinxi = huochexinxiService.selectById(id);
  64.                 huochexinxi = huochexinxiService.selectView(new EntityWrapper<HuochexinxiEntity>().eq("id", id));
  65.         return R.ok().put("data", huochexinxi);
  66.     }
  67.     /**
  68.      * 后端保存
  69.      */
  70.     @RequestMapping("/save")
  71.     public R save(@RequestBody HuochexinxiEntity huochexinxi, HttpServletRequest request){
  72.             huochexinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
  73.             //ValidatorUtils.validateEntity(huochexinxi);
  74.         huochexinxiService.insert(huochexinxi);
  75.         return R.ok();
  76.     }
  77.    
  78.     /**
  79.      * 前端保存
  80.      */
  81.     @RequestMapping("/add")
  82.     public R add(@RequestBody HuochexinxiEntity huochexinxi, HttpServletRequest request){
  83.             huochexinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
  84.             //ValidatorUtils.validateEntity(huochexinxi);
  85.         huochexinxiService.insert(huochexinxi);
  86.         return R.ok();
  87.     }
  88.     /**
  89.      * 修改
  90.      */
  91.     @RequestMapping("/update")
  92.     @Transactional
  93.     public R update(@RequestBody HuochexinxiEntity huochexinxi, HttpServletRequest request){
  94.         //ValidatorUtils.validateEntity(huochexinxi);
  95.         huochexinxiService.updateById(huochexinxi);//全部更新
  96.         return R.ok();
  97.     }
  98.     /**
  99.      * 删除
  100.      */
  101.     @RequestMapping("/delete")
  102.     public R delete(@RequestBody Long[] ids){
  103.         huochexinxiService.deleteBatchIds(Arrays.asList(ids));
  104.         return R.ok();
  105.     }
  106.    
  107. }
复制代码
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。




欢迎光临 IT评测·应用市场-qidao123.com技术社区 (https://dis.qidao123.com/) Powered by Discuz! X3.4