基于微信小程序的消防隐患在线举报系统开发+ssm后台管理系统

1. 毕业设计(论文)综述(题目背景、研究意义及国内外相关研究情况)

1.1 题目背景

随着信息化飞速发展,互联网不断地深入到人们生活当中的各处去,也给我们带来了许多的便利。在我们的生活中,发现了一些或轻微或严重的消防隐患,举报也成了一件重要的事情,但是人们的生活节奏在不断的变快,因此,如何方便的、快捷的举报的方式也成了符合我们不断变快的生活节奏的期待,由此,基于微信小程序的消防隐患在线举报系统诞生。

1.2 研究意义

微信小程序无需下载就能使用,用户直接搜索便可使用。人们发现消防隐患后,便可以直接通过手机或电脑登录微信直接进行举报,提交一些文字、照片等证据,及时反映了次消防隐患的危险程度,不再害怕没有时间去举报。同时,消防机关也可通过该程序对举报的消防隐患进行及时处理,并且对举报人进行网上的及时反馈防微杜渐,防患于未然便是如此了。该系统实现群众在线举报消防隐患功能,对案件线索快速处理功能。具有重大应用价值。 

1.3 国内外相关研究情况

联网时代的快速发展连通了整个世界,微信也将社交媒体和通信紧密连接。微信小程序的诞生与应用已成为日后移动互联网发展与应用的重要基础。庞大的用户群体促使小程序站稳脚跟。互联网时代流量就是金钱,11亿以上的微信用户是企业发展的潜力所在,依靠微信庞大的用户支撑,小程序具有更广阔的发展空间。互联网时代的快速发展连通了整个世界,微信也将社交媒体和通信紧密连接。微信小程序的诞生与应用已成为日后移动互联网发展与应用的重要基础。

小程序是一种不需要下载安装即可使用的应用,它实现了应用“触手可及”的梦想,用户扫一扫或者搜一下即可打开应用。也体现了“用完即走”的理念,用户不用关心是否安装太多应用的问题。应用将无处不在,随时可用,但又无需安装卸载。轻应用是帮助用户低成本构建私域流量利用微信生态引流从而实现变现。

2. 本课题研究的主要内容和拟采用的研究方案、研究方法或措施

2.1研究的主要内容

(1) 基于微信小程序的消防隐患举报系统,用户可以通过小程序实现对消防隐患的在线快捷举报,既方便了消防隐患的发现,也方便了消防隐患处理后对举报者进行反馈。在线举报:用户手机端可直接通过微信小程序举报消防隐患,举报后举报信息将提醒消防部门派出检查及维修人员,相比传统举报方式,优化了举报流程节省了举报时间。举报人填写姓名以及手机号以便取及时取得反馈信息。

基于微信小程序的消防隐患在线举报系统开发+ssm后台管理系统044

演示视频:

基于微信小程序的消防隐患在线举报系统开发+ssm后台管理系统源码和论文PPT

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.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.ChulijieguoEntity;
import com.entity.view.ChulijieguoView;

import com.service.ChulijieguoService;
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-03-10 22:14:18
 */
@RestController
@RequestMapping("/chulijieguo")
public class ChulijieguoController {
    @Autowired
    private ChulijieguoService chulijieguoService;
    


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

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

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

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

	 /**
     * 查询
     */
    @RequestMapping("/query")
    public R query(ChulijieguoEntity chulijieguo){
        EntityWrapper< ChulijieguoEntity> ew = new EntityWrapper< ChulijieguoEntity>();
 		ew.allEq(MPUtil.allEQMapPre( chulijieguo, "chulijieguo")); 
		ChulijieguoView chulijieguoView =  chulijieguoService.selectView(ew);
		return R.ok("查询处理结果成功").put("data", chulijieguoView);
    }
	
    /**
     * 后端详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        ChulijieguoEntity chulijieguo = chulijieguoService.selectById(id);
        return R.ok().put("data", chulijieguo);
    }

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



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

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

        chulijieguoService.insert(chulijieguo);
        return R.ok();
    }

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

    /**
     * 删除
     */
    @RequestMapping("/delete")
    public R delete(@RequestBody Long[] ids){
        chulijieguoService.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<ChulijieguoEntity> wrapper = new EntityWrapper<ChulijieguoEntity>();
		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("yonghu")) {
			wrapper.eq("yonghuming", (String)request.getSession().getAttribute("username"));
		}

		int count = chulijieguoService.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.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.XiaofangyinhuanfenleiEntity;
import com.entity.view.XiaofangyinhuanfenleiView;

import com.service.XiaofangyinhuanfenleiService;
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-03-10 22:14:18
 */
@RestController
@RequestMapping("/xiaofangyinhuanfenlei")
public class XiaofangyinhuanfenleiController {
    @Autowired
    private XiaofangyinhuanfenleiService xiaofangyinhuanfenleiService;
    


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

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

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

	 /**
     * 查询
     */
    @RequestMapping("/query")
    public R query(XiaofangyinhuanfenleiEntity xiaofangyinhuanfenlei){
        EntityWrapper< XiaofangyinhuanfenleiEntity> ew = new EntityWrapper< XiaofangyinhuanfenleiEntity>();
 		ew.allEq(MPUtil.allEQMapPre( xiaofangyinhuanfenlei, "xiaofangyinhuanfenlei")); 
		XiaofangyinhuanfenleiView xiaofangyinhuanfenleiView =  xiaofangyinhuanfenleiService.selectView(ew);
		return R.ok("查询消防隐患分类成功").put("data", xiaofangyinhuanfenleiView);
    }
	
    /**
     * 后端详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        XiaofangyinhuanfenleiEntity xiaofangyinhuanfenlei = xiaofangyinhuanfenleiService.selectById(id);
        return R.ok().put("data", xiaofangyinhuanfenlei);
    }

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



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

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

        xiaofangyinhuanfenleiService.insert(xiaofangyinhuanfenlei);
        return R.ok();
    }

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

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


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


}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值