计算机毕业设计-基于Java+SSM架构的疫情物资管理系统项目开发实战(附源码+论文)

大家好!我是程序员一帆,感谢您阅读本文,欢迎一键三连哦。

💞当前专栏:Java毕业设计

精彩专栏推荐👇🏻👇🏻👇🏻

🎀 Python毕业设计
🌎微信小程序毕业设计

开发环境

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

源码下载地址:

https://download.csdn.net/download/2301_76953549/89273760

论文目录

【如需全文请按文末获取联系】
在这里插入图片描述
在这里插入图片描述

一、项目简介

本次使用数据库工具MySQL和编程技术SSM开发的疫情物资管理系统,可以实现目标用户群需要的功能,包括物资信息管理,物资出入库管理,物资申领管理,物资采购管理,财务报销管理等功能。

二、系统设计

2.1软件功能模块设计

下图为管理员的功能设计,管理员管理物资申领,物资出入库,物资采购,财务报销。
在这里插入图片描述
下图为采购员的功能设计,采购员查询物资和财务报销,管理物资采购。
在这里插入图片描述
下图为后勤人员的功能设计,后勤人员对物资进行出入库操作,统计物资出入库的数据,审核并统计物资申领信息。
在这里插入图片描述

下图为财务人员的功能设计,财务人员查询物资采购,审核财务报销信息。
在这里插入图片描述

2.2数据库设计

(1)设计的出库信息实体,其具备的属性如下图。
在这里插入图片描述
(2)设计的物资实体,其具备的属性如下图。
在这里插入图片描述
(4)设计的管理员实体,其具备的属性如下图。
在这里插入图片描述
(8)设计的实体间关系如下图。
在这里插入图片描述

三、系统项目部分截图

3.1管理员功能实现

采购员管理
管理采购员是管理员的功能。其运行效果图如下。采购员信息是由采购员姓名,部门,职务等组成,管理员提交采购员的姓名可以获取采购员信息,管理员可以在本页面修改采购员资料。在这里插入图片描述
后勤人员管理
管理后勤人员是管理员的功能。其运行效果图如下。后勤人员是本系统的一个角色,管理员可以修改,查询,删除后勤人员信息。
在这里插入图片描述

3.2采购员功能实现

查询物资信息
查询物资信息是采购员的功能。其运行效果图如下。查询物资信息可以选择根据物资类别查询,也能根据物资名称查询。
在这里插入图片描述
物资采购管理
管理物资采购是采购员的功能。其运行效果图如下。物资采购信息包括待办事项,采购状态,采购的物资等,采购员可以新增采购,删除或修改本页面的物资采购信息。
在这里插入图片描述

3.3后勤人员功能实现

物资信息管理
管理物资信息是后勤人员的功能。其运行效果图如下。后勤人员查询物资,对物资进行出库,对物资进行入库操作。
在这里插入图片描述
出库信息统计
统计出库信息是后勤人员的功能。其运行效果图如下。后勤人员查看出库信息统计报表,查看各种物资出库数量信息。
在这里插入图片描述
申领物资管理
管理申领物资信息是后勤人员的功能。其运行效果图如下。后勤人员需要审核申领物资信息,可以通过负责人或申请人信息查询物资申领信息。
在这里插入图片描述

3.4财务人员功能实现

查询物资采购
查询物资采购是财务人员的功能。其运行效果图如下。财务人员根据采购状态,或根据采购的物资查询物资采购信息。
在这里插入图片描述
财务报销管理
管理财务报销信息是财务人员的功能。其运行效果图如下。财务人员审核财务报销信息,修改财务报销信息,查询财务报销信息。
在这里插入图片描述

四、部分核心代码

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.CaiwubaoxiaoEntity;
import com.entity.view.CaiwubaoxiaoView;

import com.service.CaiwubaoxiaoService;
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-04-16 18:03:15
 */
@RestController
@RequestMapping("/caiwubaoxiao")
public class CaiwubaoxiaoController {
    @Autowired
    private CaiwubaoxiaoService caiwubaoxiaoService;
    


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

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

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

	 /**
     * 查询
     */
    @RequestMapping("/query")
    public R query(CaiwubaoxiaoEntity caiwubaoxiao){
        EntityWrapper< CaiwubaoxiaoEntity> ew = new EntityWrapper< CaiwubaoxiaoEntity>();
 		ew.allEq(MPUtil.allEQMapPre( caiwubaoxiao, "caiwubaoxiao")); 
		CaiwubaoxiaoView caiwubaoxiaoView =  caiwubaoxiaoService.selectView(ew);
		return R.ok("查询财务报销成功").put("data", caiwubaoxiaoView);
    }
	
    /**
     * 后端详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        CaiwubaoxiaoEntity caiwubaoxiao = caiwubaoxiaoService.selectById(id);
        return R.ok().put("data", caiwubaoxiao);
    }

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



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

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

        caiwubaoxiaoService.insert(caiwubaoxiao);
        return R.ok();
    }

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

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


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


}

获取源码或论文

如需对应的论文或源码,以及其他定制需求,也可以下方微❤联系。

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值