ssm+vue线上体验馆管理系统源码和论文

ssm+vue线上体验馆管理系统源码和论文085

 开发工具:idea 
 数据库mysql5.7+
 数据库链接工具:navcat,小海豚等
  技术:ssm

摘  要

现代经济快节奏发展以及不断完善升级的信息化技术,让传统数据信息的管理升级为软件存储,归纳,集中处理数据信息的管理方式。本鲸落文化线上体验馆就是在这样的大环境下诞生,其可以帮助管理者在短时间内处理完毕庞大的数据信息,使用这种软件工具可以帮助管理人员提高事务处理效率,达到事半功倍的效果。此鲸落文化线上体验馆利用当下成熟完善的SSM框架,使用跨平台的可开发大型商业网站的Java语言,以及最受欢迎的RDBMS应用软件之一的Mysql数据库进行程序开发.鲸落文化线上体验馆的开发根据操作人员需要设计的界面简洁美观,在功能模块布局上跟同类型网站保持一致,程序在实现基本要求功能时,也为数据信息面临的安全问题提供了一些实用的解决方案。可以说该程序在帮助管理者高效率地处理工作事务的同时,也实现了数据信息的整体化,规范化与自动化。

关键词:鲸落文化线上体验馆;SSM框架;Mysql;自动化

package com.controller;

import java.text.SimpleDateFormat;
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.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.LishibeijingEntity;
import com.entity.view.LishibeijingView;

import com.service.LishibeijingService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;


/**
 * 历史背景
 * 后端接口
 * @author 
 * @email 
 * @date 2021-02-22 15:48:18
 */
@RestController
@RequestMapping("/lishibeijing")
public class LishibeijingController {
    @Autowired
    private LishibeijingService lishibeijingService;
    


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

        EntityWrapper<LishibeijingEntity> ew = new EntityWrapper<LishibeijingEntity>();
		PageUtils page = lishibeijingService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, lishibeijing), params), params));
        return R.ok().put("data", page);
    }
    
    /**
     * 前端列表
     */
	@IgnoreAuth
    @RequestMapping("/list")
    public R list(@RequestParam Map<String, Object> params,LishibeijingEntity lishibeijing, HttpServletRequest request){
        EntityWrapper<LishibeijingEntity> ew = new EntityWrapper<LishibeijingEntity>();
		PageUtils page = lishibeijingService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, lishibeijing), params), params));
        return R.ok().put("data", page);
    }

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

	 /**
     * 查询
     */
    @RequestMapping("/query")
    public R query(LishibeijingEntity lishibeijing){
        EntityWrapper< LishibeijingEntity> ew = new EntityWrapper< LishibeijingEntity>();
 		ew.allEq(MPUtil.allEQMapPre( lishibeijing, "lishibeijing")); 
		LishibeijingView lishibeijingView =  lishibeijingService.selectView(ew);
		return R.ok("查询历史背景成功").put("data", lishibeijingView);
    }
	
    /**
     * 后端详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        LishibeijingEntity lishibeijing = lishibeijingService.selectById(id);
        return R.ok().put("data", lishibeijing);
    }

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



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

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

        lishibeijingService.insert(lishibeijing);
        return R.ok();
    }

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

    /**
     * 删除
     */
    @RequestMapping("/delete")
    public R delete(@RequestBody Long[] ids){
        lishibeijingService.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<LishibeijingEntity> wrapper = new EntityWrapper<LishibeijingEntity>();
		if(map.get("remindstart")!=null) {
			wrapper.ge(columnName, map.get("remindstart"));
		}
		if(map.get("remindend")!=null) {
			wrapper.le(columnName, map.get("remindend"));
		}


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


}

 

package com.controller;

import java.text.SimpleDateFormat;
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.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.ZhizuoshipinEntity;
import com.entity.view.ZhizuoshipinView;

import com.service.ZhizuoshipinService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;


/**
 * 制作视频
 * 后端接口
 * @author 
 * @email 
 * @date 2021-02-22 15:48:18
 */
@RestController
@RequestMapping("/zhizuoshipin")
public class ZhizuoshipinController {
    @Autowired
    private ZhizuoshipinService zhizuoshipinService;
    


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

        EntityWrapper<ZhizuoshipinEntity> ew = new EntityWrapper<ZhizuoshipinEntity>();
		PageUtils page = zhizuoshipinService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, zhizuoshipin), params), params));
        return R.ok().put("data", page);
    }
    
    /**
     * 前端列表
     */
	@IgnoreAuth
    @RequestMapping("/list")
    public R list(@RequestParam Map<String, Object> params,ZhizuoshipinEntity zhizuoshipin, HttpServletRequest request){
        EntityWrapper<ZhizuoshipinEntity> ew = new EntityWrapper<ZhizuoshipinEntity>();
		PageUtils page = zhizuoshipinService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, zhizuoshipin), params), params));
        return R.ok().put("data", page);
    }

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

	 /**
     * 查询
     */
    @RequestMapping("/query")
    public R query(ZhizuoshipinEntity zhizuoshipin){
        EntityWrapper< ZhizuoshipinEntity> ew = new EntityWrapper< ZhizuoshipinEntity>();
 		ew.allEq(MPUtil.allEQMapPre( zhizuoshipin, "zhizuoshipin")); 
		ZhizuoshipinView zhizuoshipinView =  zhizuoshipinService.selectView(ew);
		return R.ok("查询制作视频成功").put("data", zhizuoshipinView);
    }
	
    /**
     * 后端详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        ZhizuoshipinEntity zhizuoshipin = zhizuoshipinService.selectById(id);
		zhizuoshipin.setClicknum(zhizuoshipin.getClicknum()+1);
		zhizuoshipin.setClicktime(new Date());
		zhizuoshipinService.updateById(zhizuoshipin);
        return R.ok().put("data", zhizuoshipin);
    }

    /**
     * 前端详情
     */
	@IgnoreAuth
    @RequestMapping("/detail/{id}")
    public R detail(@PathVariable("id") Long id){
        ZhizuoshipinEntity zhizuoshipin = zhizuoshipinService.selectById(id);
		zhizuoshipin.setClicknum(zhizuoshipin.getClicknum()+1);
		zhizuoshipin.setClicktime(new Date());
		zhizuoshipinService.updateById(zhizuoshipin);
        return R.ok().put("data", zhizuoshipin);
    }
    


    /**
     * 赞或踩
     */
    @RequestMapping("/thumbsup/{id}")
    public R thumbsup(@PathVariable("id") String id,String type){
        ZhizuoshipinEntity zhizuoshipin = zhizuoshipinService.selectById(id);
        if(type.equals("1")) {
        	zhizuoshipin.setThumbsupnum(zhizuoshipin.getThumbsupnum()+1);
        } else {
        	zhizuoshipin.setCrazilynum(zhizuoshipin.getCrazilynum()+1);
        }
        zhizuoshipinService.updateById(zhizuoshipin);
        return R.ok();
    }

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

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

        zhizuoshipinService.insert(zhizuoshipin);
        return R.ok();
    }

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

    /**
     * 删除
     */
    @RequestMapping("/delete")
    public R delete(@RequestBody Long[] ids){
        zhizuoshipinService.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<ZhizuoshipinEntity> wrapper = new EntityWrapper<ZhizuoshipinEntity>();
		if(map.get("remindstart")!=null) {
			wrapper.ge(columnName, map.get("remindstart"));
		}
		if(map.get("remindend")!=null) {
			wrapper.le(columnName, map.get("remindend"));
		}


		int count = zhizuoshipinService.selectCount(wrapper);
		return R.ok().put("count", count);
	}
	
	/**
     * 前端智能排序
     */
	@IgnoreAuth
    @RequestMapping("/autoSort")
    public R autoSort(@RequestParam Map<String, Object> params,ZhizuoshipinEntity zhizuoshipin, HttpServletRequest request,String pre){
        EntityWrapper<ZhizuoshipinEntity> ew = new EntityWrapper<ZhizuoshipinEntity>();
        Map<String, Object> newMap = new HashMap<String, Object>();
        Map<String, Object> param = new HashMap<String, Object>();
		Iterator<Map.Entry<String, Object>> it = param.entrySet().iterator();
		while (it.hasNext()) {
			Map.Entry<String, Object> entry = it.next();
			String key = entry.getKey();
			String newKey = entry.getKey();
			if (pre.endsWith(".")) {
				newMap.put(pre + newKey, entry.getValue());
			} else if (StringUtils.isEmpty(pre)) {
				newMap.put(newKey, entry.getValue());
			} else {
				newMap.put(pre + "." + newKey, entry.getValue());
			}
		}
		params.put("sort", "clicknum");
        
        params.put("order", "desc");
		PageUtils page = zhizuoshipinService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, zhizuoshipin), params), params));
        return R.ok().put("data", page);
    }


}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

程序猿毕业分享网

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值