技术微信:375279829 欢迎来到【毕业设计资料-计算机毕业设计源码网】官网!
您的位置:您的位置:主页 > 作品中心 > 安卓/微信小程序

基于微信小程序的自习室预约系统设计与实现-计算机毕业设计源码+LW文档

技术微信:375279829

本课题包括源程序、数据库、论文、运行软件、运行教程

毕业设计资料-计算机毕业设计源码网:我们提供的源码通过邮箱或者QQ微信传送,如果有啥问题直接联系客服

包在您电脑上运行成功

语言:安卓App/微信小程序/公众号

数据库:MySQL

框架:后台ssm、springboot、mvc、原生开发

课题相关技术、功能详情请联系技术

作品描述

                           小程序开发说明

开发语言:Java
框架:ssm
JDK版本:JDK1.8
服务器:tomcat7
数据库:mysql 5.7(一定要5.7版本)
数据库工具:Navicat11
开发软件:eclipse/myeclipse/idea
Maven包:Maven3.3.9
浏览器:谷歌浏览器

小程序框架:uniapp
小程序开发软件:HBuilder X
小程序运行软件:微信开发者


代码:

/**
 * 自习室预约
 * 后端接口
 * @author 
 * @email 
 * @date 2022-03-04 15:23:14
 */
@RestController
@RequestMapping("/zixishiyuyue")
public class ZixishiyuyueController {
    @Autowired
    private ZixishiyuyueService zixishiyuyueService;



    


    /**
     * 后端列表
     */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> params,ZixishiyuyueEntity zixishiyuyue, 
HttpServletRequest request){

String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("yonghu")) {
zixishiyuyue.setYonghuzhanghao((String)request.getSession().getAttribute("username"));
}
        EntityWrapper<ZixishiyuyueEntity> ew = new EntityWrapper<ZixishiyuyueEntity>();
PageUtils page = zixishiyuyueService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, zixishiyuyue), params), params));
        return R.ok().put("data", page);
    }
    
    /**
     * 前端列表
     */
    @RequestMapping("/list")
    public R list(@RequestParam Map<String, Object> params,ZixishiyuyueEntity zixishiyuyue, 
HttpServletRequest request){

String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("yonghu")) {
zixishiyuyue.setYonghuzhanghao((String)request.getSession().getAttribute("username"));
}
        EntityWrapper<ZixishiyuyueEntity> ew = new EntityWrapper<ZixishiyuyueEntity>();
PageUtils page = zixishiyuyueService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, zixishiyuyue), params), params));
        return R.ok().put("data", page);
    }

/**
     * 列表
     */
    @RequestMapping("/lists")
    public R list( ZixishiyuyueEntity zixishiyuyue){
        EntityWrapper<ZixishiyuyueEntity> ew = new EntityWrapper<ZixishiyuyueEntity>();
      ew.allEq(MPUtil.allEQMapPre( zixishiyuyue, "zixishiyuyue")); 
        return R.ok().put("data", zixishiyuyueService.selectListView(ew));
    }

/**
     * 查询
     */
    @RequestMapping("/query")
    public R query(ZixishiyuyueEntity zixishiyuyue){
        EntityWrapper< ZixishiyuyueEntity> ew = new EntityWrapper< ZixishiyuyueEntity>();
  ew.allEq(MPUtil.allEQMapPre( zixishiyuyue, "zixishiyuyue")); 
ZixishiyuyueView zixishiyuyueView =  zixishiyuyueService.selectView(ew);
return R.ok("查询自习室预约成功").put("data", zixishiyuyueView);
    }

    /**
     * 后端详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        ZixishiyuyueEntity zixishiyuyue = zixishiyuyueService.selectById(id);
        return R.ok().put("data", zixishiyuyue);
    }

    /**
     * 前端详情
     */
    @RequestMapping("/detail/{id}")
    public R detail(@PathVariable("id") Long id){
        ZixishiyuyueEntity zixishiyuyue = zixishiyuyueService.selectById(id);
        return R.ok().put("data", zixishiyuyue);
    }
    



    /**
     * 后端保存
     */
    @RequestMapping("/save")
    public R save(@RequestBody ZixishiyuyueEntity zixishiyuyue, HttpServletRequest request){
    zixishiyuyue.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    //ValidatorUtils.validateEntity(zixishiyuyue);

        zixishiyuyueService.insert(zixishiyuyue);
        return R.ok();
    }
    
    /**
     * 前端保存
     */
    @RequestMapping("/add")
    public R add(@RequestBody ZixishiyuyueEntity zixishiyuyue, HttpServletRequest request){
    zixishiyuyue.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    //ValidatorUtils.validateEntity(zixishiyuyue);
    zixishiyuyue.setUserid((Long)request.getSession().getAttribute("userId"));

        zixishiyuyueService.insert(zixishiyuyue);
        return R.ok();
    }




如需定做或者获取更多资料,请联系QQ:375279829
在线客服
联系方式

技术微信

375279829

在线时间

周一到周日

客服QQ

375279829

二维码
线