基于java+springboot+vue的传染病防控宣传系统微信小程序

本文介绍了如何运用微信小程序技术开发一个传染病防控宣传系统,包括管理员功能如防控知识、捐赠信息管理等,以及用户查看防控知识、参与医疗捐赠等功能,利用MySQL数据库和SpringBoot框架实现,旨在提升管理效率和用户体验。
摘要由CSDN通过智能技术生成

项目介绍

由于APP软件在开发以及运营上面所需成本较高,而用户手机需要安装各种APP软件,因此占用用户过多的手机存储空间,导致用户手机运行缓慢,体验度比较差,进而导致用户会卸载非必要的APP,倒逼管理者必须改变运营策略。随着微信小程序的出现,解决了用户非独立APP不可访问内容的痛点,所以很多APP软件都转向微信小程序。本次课题就运用了微信小程序技术开发一个传染病防控宣传系统。

本次使用数据库工具MySQL以及微信开发者工具开发的传染病防控宣传系统,可以实现目标用户群需要的功能,其中管理员审核用户上报的健康信息,管理防控知识,管理医院,管理捐赠信息。用户查看防控知识,查看医院信息,可以参与医疗捐赠,可以登记健康上报信息。

总之,传染病防控宣传系统可以更加方便管理人员管理传染病防控宣传信息,也方便用户查看防控知识,参与医疗捐赠,登记健康上报信息。
在这里插入图片描述
在这里插入图片描述

开发环境

编程语言:Java
数据库 :Mysql
系统架构:B/S
后端框架:SpringBoot
编译工具:idea或者eclipse,微信开发者工具,jdk1.8,maven
支持定做:java/php/python/android/小程序vue/爬虫/c#/asp.net

系统实现

5.1 管理员功能实现
5.1.1 防控知识管理
管理防控知识是管理员的功能。其运行效果图如下。管理员新增防控知识,预览防控知识的视频,查看防控知识的相关评论信息,可以删除指定的防控知识信息。
在这里插入图片描述

图5.1 防控知识管理页面

5.1.2 捐赠信息管理
管理捐赠信息是管理员的功能。其运行效果图如下。管理员查看用户捐赠的金额信息,可以查询用户捐赠信息,修改用户捐赠信息,删除用户捐赠信息。
在这里插入图片描述

图5.2 捐赠信息管理页面

5.1.3 健康上报管理
管理用户的健康上报信息是管理员的功能。其运行效果图如下。管理员查看用户上报的健康信息,审核健康上报信息,可以提交用户姓名查询用户上报的健康信息。
在这里插入图片描述

图5.3 健康上报管理页面

5.1.4 医院信息管理
管理医院信息是管理员的功能。其运行效果图如下。管理员修改或删除医院信息,新增医院信息,提交医院名称可以查询医院信息。
在这里插入图片描述

图5.4 医院信息管理页面

5.1.5 通知公告
管理通知公告是管理员的功能。其运行效果图如下。管理员负责发布通知公告,修改或删除通知公告。
在这里插入图片描述

图5.5 通知公告页面

5.2 用户功能实现
5.2.1 防控知识
用户查看防控知识。其运行效果图如下。用户查看防控知识的介绍以及视频,可以收藏防控知识,可以在页面底部评论防控知识。
在这里插入图片描述

图5.6 防控知识页面

5.2.2 医疗捐赠
用户可以查看医疗捐赠信息。其运行效果图如下。用户点击捐赠按钮可以捐赠一定数量的金额。
在这里插入图片描述

图5.7 医疗捐赠页面

5.2.3 捐赠信息
用户可以查看捐赠信息。其运行效果图如下。用户在本页面查看自己打算捐赠的金额信息,并点击支付按钮进行金额支付。
在这里插入图片描述

图5.8 捐赠信息页面

5.2.4 健康上报
用户可以管理健康上报信息。其运行效果图如下。用户在本页面新增健康信息,可以对登记的健康信息进行修改,可以删除登记的健康信息。
在这里插入图片描述

图5.9 健康上报页面

核心代码

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.YiliaojuanzengEntity;
import com.entity.view.YiliaojuanzengView;

import com.service.YiliaojuanzengService;
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 
 */
@RestController
@RequestMapping("/yiliaojuanzeng")
public class YiliaojuanzengController {
    @Autowired
    private YiliaojuanzengService yiliaojuanzengService;
    


    /**
     * 后端列表
     */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> params,YiliaojuanzengEntity yiliaojuanzeng,
		HttpServletRequest request){
        EntityWrapper<YiliaojuanzengEntity> ew = new EntityWrapper<YiliaojuanzengEntity>();
		PageUtils page = yiliaojuanzengService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, yiliaojuanzeng), params), params));

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

	/**
     * 列表
     */
    @RequestMapping("sts")
    public R list( YiliaojuanzengEntity yiliaojuanzeng){
       	EntityWrapper<YiliaojuanzengEntity> ew = new EntityWrapper<YiliaojuanzengEntity>();
      	ew.allEq(MPUtil.allEQMapPre( yiliaojuanzeng, "yiliaojuanzeng")); 
        return R.ok().put("data", yiliaojuanzengService.selectListView(ew));
    }

	 /**
     * 查询
     */
    @RequestMapping("/query")
    public R query(YiliaojuanzengEntity yiliaojuanzeng){
        EntityWrapper< YiliaojuanzengEntity> ew = new EntityWrapper< YiliaojuanzengEntity>();
 		ew.allEq(MPUtil.allEQMapPre( yiliaojuanzeng, "yiliaojuanzeng")); 
		YiliaojuanzengView yiliaojuanzengView =  yiliaojuanzengService.selectView(ew);
		return R.ok("查询医疗捐赠成功").put("data", yiliaojuanzengView);
    }
	
    /**
     * 后端详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        YiliaojuanzengEntity yiliaojuanzeng = yiliaojuanzengService.selectById(id);
        return R.ok().put("data", yiliaojuanzeng);
    }

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



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

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

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


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


}

论文参考

在这里插入图片描述

目 录
第一章 绪论 1
1.1 研究背景 1
1.2 研究意义 1
1.3 研究内容 1
第二章 开发环境与技术 3
2.1 JSP技术 3
2.2 MySQL数据库 3
2.3 Java语言 4
2.4 微信开发者工具 4
第三章 系统分析 5
3.1可行性分析 5
3.1.1运行可行性分析 5
3.1.2经济可行性分析 5
3.1.3技术可行性分析 5
3.2系统流程分析 6
3.3 系统性能分析 9
3.3.1系统安全性 9
3.3.2系统可扩展性 9
3.3.3系统易维护性 9
3.4系统功能分析 10
第四章 系统设计 12
4.1布局设计原则 12
4.2功能模块设计 13
4.3数据库设计 14
4.3.1数据库E-R图 14
4.3.2 数据库表结构 17
第五章 系统实现 22
5.1 管理员功能实现 22
5.1.1 防控知识管理 22
5.1.2 捐赠信息管理 22
5.1.3 健康上报管理 23
5.1.4 医院信息管理 23
5.1.5 通知公告 24
5.2 用户功能实现 24
5.2.1 防控知识 24
5.2.2 医疗捐赠 25
5.2.3 捐赠信息 26
5.2.4 健康上报 27
第六章 系统测试 29
6.1 系统测试的实施 29
6.2 系统功能测试 29
6.1.1 在线支付功能测试 29
6.1.2 收藏防控知识功能测试 31
6.3 测试的结果 33
结 论 34
参考文献 35
致 谢 36

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

qq_3306428634

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

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

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

打赏作者

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

抵扣说明:

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

余额充值