springboot vue公园管理系统源码和答辩PPT论文

近年来,科技飞速发展,在经济全球化的背景之下,互联网技术将进一步提高社会综合发展的效率和速度,互联网技术也会涉及到各个领域,而公园管理系统网络背景下有着无法忽视的作用。信息管理系统的开发是一个不断优化的过程,随着网络数据时代的到来,信息管理系统与计算机的集成成为必然。

本次将以公园管理系统方面为切入点,论述了公园管理系统的意义和内容,以此展开对公园管理系统的开发与建设的详细分析。从数据挖掘的角度出发,了解信息管理系统的作用,对公园管理系统的过程以及用处进行更深一步的研究,数据的处理效率,以及具体的应用方向。对于公园管理系统所带来的影响,将从传统管理方式进行对比分析,从硬件优化、软件开发,这几个方面来论述公园管理系统的优势所在,分析公园管理系统计算机时代发展的变化趋势。

关键词:公园管理系统

springboot vue公园管理系统源码和答辩PPT论文906

演示视频:

【包调试运行】springboot vue公园管理系统源码和答辩PPT论文

Abstract

In recent years, with the rapid development of technology, in the context of economic globalization, internet technology will further improve the efficiency and speed of social comprehensive development. Internet technology will also involve various fields, and park management systems play an indispensable role in the network context. The development of information management systems is a continuous optimization process, and with the arrival of the era of network data, the integration of information management systems and computers has become inevitable.

This article will take the park management system as the starting point to discuss the significance and content of the park management system, in order to conduct a detailed analysis of the development and construction of the park management system. From the perspective of data mining, understand the role of information management systems, conduct further research on the process and usefulness of park management systems, improve data processing efficiency, and identify specific application directions. For the impact of the park management system, a comparative analysis will be conducted from traditional management methods. The advantages of the park management system will be discussed from hardware optimization and software development, and the development trend of the park management system in the computer age will be analyzed.

Keywords: Park management system;

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.YouwanyuyueEntity;
import com.entity.view.YouwanyuyueView;

import com.service.YouwanyuyueService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
import java.io.IOException;

/**
 * 游玩预约
 * 后端接口
 * @author 
 * @email 
 * @date 2023-04-04 12:56:28
 */
@RestController
@RequestMapping("/youwanyuyue")
public class YouwanyuyueController {
    @Autowired
    private YouwanyuyueService youwanyuyueService;


    


    /**
     * 后端列表
     */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> params,YouwanyuyueEntity youwanyuyue,
		HttpServletRequest request){
		String tableName = request.getSession().getAttribute("tableName").toString();
		if(tableName.equals("youke")) {
			youwanyuyue.setYoukezhanghao((String)request.getSession().getAttribute("username"));
		}
        EntityWrapper<YouwanyuyueEntity> ew = new EntityWrapper<YouwanyuyueEntity>();

		PageUtils page = youwanyuyueService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, youwanyuyue), params), params));

        return R.ok().put("data", page);
    }
    
    /**
     * 前端列表
     */
	@IgnoreAuth
    @RequestMapping("/list")
    public R list(@RequestParam Map<String, Object> params,YouwanyuyueEntity youwanyuyue, 
		HttpServletRequest request){
        EntityWrapper<YouwanyuyueEntity> ew = new EntityWrapper<YouwanyuyueEntity>();

		PageUtils page = youwanyuyueService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, youwanyuyue), params), params));
        return R.ok().put("data", page);
    }

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

	 /**
     * 查询
     */
    @RequestMapping("/query")
    public R query(YouwanyuyueEntity youwanyuyue){
        EntityWrapper< YouwanyuyueEntity> ew = new EntityWrapper< YouwanyuyueEntity>();
 		ew.allEq(MPUtil.allEQMapPre( youwanyuyue, "youwanyuyue")); 
		YouwanyuyueView youwanyuyueView =  youwanyuyueService.selectView(ew);
		return R.ok("查询游玩预约成功").put("data", youwanyuyueView);
    }
	
    /**
     * 后端详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        YouwanyuyueEntity youwanyuyue = youwanyuyueService.selectById(id);
        return R.ok().put("data", youwanyuyue);
    }

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



    /**
     * 后端保存
     */
    @RequestMapping("/save")
    public R save(@RequestBody YouwanyuyueEntity youwanyuyue, HttpServletRequest request){
    	youwanyuyue.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(youwanyuyue);
        youwanyuyueService.insert(youwanyuyue);
        return R.ok();
    }
    
    /**
     * 前端保存
     */
    @RequestMapping("/add")
    public R add(@RequestBody YouwanyuyueEntity youwanyuyue, HttpServletRequest request){
    	youwanyuyue.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(youwanyuyue);
        youwanyuyueService.insert(youwanyuyue);
        return R.ok();
    }



    /**
     * 修改
     */
    @RequestMapping("/update")
    @Transactional
    public R update(@RequestBody YouwanyuyueEntity youwanyuyue, HttpServletRequest request){
        //ValidatorUtils.validateEntity(youwanyuyue);
        youwanyuyueService.updateById(youwanyuyue);//全部更新
        return R.ok();
    }


    

    /**
     * 删除
     */
    @RequestMapping("/delete")
    public R delete(@RequestBody Long[] ids){
        youwanyuyueService.deleteBatchIds(Arrays.asList(ids));
        return R.ok();
    }
    
    /**
     * 提醒接口
     */
	@RequestMapping("/remind/{columnName}/{type}")
	public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request, 
						 @PathVariable("type") String type,@RequestParam Map<String, Object> map) {
		map.put("column", columnName);
		map.put("type", type);
		
		if(type.equals("2")) {
			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
			Calendar c = Calendar.getInstance();
			Date remindStartDate = null;
			Date remindEndDate = null;
			if(map.get("remindstart")!=null) {
				Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
				c.setTime(new Date()); 
				c.add(Calendar.DAY_OF_MONTH,remindStart);
				remindStartDate = c.getTime();
				map.put("remindstart", sdf.format(remindStartDate));
			}
			if(map.get("remindend")!=null) {
				Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
				c.setTime(new Date());
				c.add(Calendar.DAY_OF_MONTH,remindEnd);
				remindEndDate = c.getTime();
				map.put("remindend", sdf.format(remindEndDate));
			}
		}
		
		Wrapper<YouwanyuyueEntity> wrapper = new EntityWrapper<YouwanyuyueEntity>();
		if(map.get("remindstart")!=null) {
			wrapper.ge(columnName, map.get("remindstart"));
		}
		if(map.get("remindend")!=null) {
			wrapper.le(columnName, map.get("remindend"));
		}

		String tableName = request.getSession().getAttribute("tableName").toString();
		if(tableName.equals("youke")) {
			wrapper.eq("youkezhanghao", (String)request.getSession().getAttribute("username"));
		}

		int count = youwanyuyueService.selectCount(wrapper);
		return R.ok().put("count", count);
	}
	






    /**
     * (按值统计)
     */
    @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<YouwanyuyueEntity> ew = new EntityWrapper<YouwanyuyueEntity>();
		String tableName = request.getSession().getAttribute("tableName").toString();
		if(tableName.equals("youke")) {
            ew.eq("youkezhanghao", (String)request.getSession().getAttribute("username"));
		}
        List<Map<String, Object>> result = youwanyuyueService.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("/value/{xColumnName}/{yColumnName}/{timeStatType}")
    public R valueDay(@PathVariable("yColumnName") String yColumnName, @PathVariable("xColumnName") String xColumnName, @PathVariable("timeStatType") String timeStatType,HttpServletRequest request) {
        Map<String, Object> params = new HashMap<String, Object>();
        params.put("xColumn", xColumnName);
        params.put("yColumn", yColumnName);
        params.put("timeStatType", timeStatType);
        EntityWrapper<YouwanyuyueEntity> ew = new EntityWrapper<YouwanyuyueEntity>();
        String tableName = request.getSession().getAttribute("tableName").toString();
        if(tableName.equals("youke")) {
            ew.eq("youkezhanghao", (String)request.getSession().getAttribute("username"));
        }
        List<Map<String, Object>> result = youwanyuyueService.selectTimeStatValue(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("/group/{columnName}")
    public R group(@PathVariable("columnName") String columnName,HttpServletRequest request) {
        Map<String, Object> params = new HashMap<String, Object>();
        params.put("column", columnName);
        EntityWrapper<YouwanyuyueEntity> ew = new EntityWrapper<YouwanyuyueEntity>();
        String tableName = request.getSession().getAttribute("tableName").toString();
        if(tableName.equals("youke")) {
            ew.eq("youkezhanghao", (String)request.getSession().getAttribute("username"));
        }
        List<Map<String, Object>> result = youwanyuyueService.selectGroup(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);
    }






}

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值