基于Java+SpringBoot+Vue的中小企业财务管理系统设计与实现【源码+论文+演示视频+包运行成功】

  博主介绍擅长Java、微信小程序、Python、Android等,专注于Java技术领域和毕业项目实战

🍅文末获取源码联系🍅

👇🏻 精彩专栏推荐订阅👇🏻 不然下次找不到哟

Java项目精品实战案例(300套)
Java微信小程序项目实战(200套)

Python项目精品实战案例(100套)

目录

一、效果演示

二、前言介绍

三、主要技术

四、系统设计

4.1、主要功能模块设计         

五、功能截图

5.1、后台登录页面

5.2、管理员信息

5.3、财务人员信息

5.4、资产负债

5.5、税收管理

六、数据库设计(部分)

七、关键代码

八、论文参考

九、源码获取


一、效果演示

二、前言介绍

自改革开放一来,我国的经济发展进入到了快速发展时期,大城市的经济水平不断提高,吸引了很多的人不愿千里来大城市奋斗。一个企业的发展离不开相关的规定流程。信息化到来的今天在我们的生活当中。离不开各种信息化的支持。比如钉钉会议预约、美团买菜、扫码签到等各种信息化软件。他们涉及我们生活中的方方面面给我们的生活提供了更大的便利性。大到政府、企业办公小到人们的衣食住行都离不开信息化的多样支持。各种旅游软件指南也应运而生。甚至于连百姓的菜篮子也可以通过软件来做到足不出户送菜到家。随着现代化的企业越来越多,越来越多有实力的企业正在通过信息化的手段来提升企业的软件实力。在企业的生活、生产当中最能够规范和约束的就是企业的规章制度以及工作流程。随着近些年来企业的业务不断扩张,那么企业、单位的财务管理也成为员工在工作过程当中的一部分。传统的员工财务管理,对于单位来说不能够及时进行线上的预算审批以及财务管理,只能够通过事后线下进行计算。这样一来也存在着一定的真实性,同时对于员工来说还要进行核算等等。如果能够利用信息化的手段解决当下所遇到的问题,那么不论是对于员工还是对于企业的管理者来说,都是非常有重要意义的。

三、主要技术

技术名作用
SpringBoot后端框架
Vue前端框架
MySQL数据库

四、系统设计

4.1、主要功能模块设计         

五、功能截图

5.1、后台登录页面

美丽动人的画面能够让我们的系统增加几分动人的画面清新感,这样一来在视觉方面就能更加深动的拿捏住每一位用户的心理。在系统的首页布局方面我还在系统设计时参考了许多当下火热的系统,在他们的元素上我又对我们的系统本身进行了些融合。页面如下所示:

5.2、管理员信息

列表元素是一个网站展现整齐,美观布局的体现,一个整齐的列表能够清晰地让用户看到所需要的信息。通过表格加搜索条件的形式,将素用户所需要的信息都罗列出来,同时,为了防止数据量太大而导致的数据查询慢。本系统在设计时还特意将后台所取到的数据进行了分页处理。这样一来,可以很方便快捷地避免了由于数据量大而导致的页面显示不全问题,同时,在用户输入条件进行查找的时候也可以做出快速响应。

5.3、财务人员信息

财务人员的信息可以根据其它的属性进行一些展示:

5.4、资产负债

为了能让管理者更加清楚的看到资产负债的信息,特别在这儿块做了打印的功能如下图所示。

5.5、税收管理

可以通过税收的方式将其每个月份的信息进行展示。

这里功能太多,就不一一展示啦~

六、数据库设计(部分)

数据库设计如下表所示

七、关键代码

package com.example.controller;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.io.IoUtil;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil;
import cn.hutool.crypto.SecureUtil;
import cn.hutool.json.JSONObject;
import cn.hutool.poi.excel.ExcelUtil;
import cn.hutool.poi.excel.ExcelWriter;
import com.example.common.Result;
import com.example.common.ResultCode;
import com.example.entity.CaiwurenyuanxinxiInfo;
import com.example.dao.CaiwurenyuanxinxiInfoDao;
import com.example.service.CaiwurenyuanxinxiInfoService;
import com.example.exception.CustomException;
import com.example.common.ResultCode;
import com.example.vo.EchartsData;
import com.example.vo.CaiwurenyuanxinxiInfoVo;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.example.service.*;
import org.springframework.web.bind.annotation.*;
import org.springframework.beans.factory.annotation.Value;
import cn.hutool.core.util.StrUtil;
import org.springframework.web.multipart.MultipartFile;
import javax.annotation.Resource;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.*;
import java.util.stream.Collectors;

@RestController
@RequestMapping(value = "/caiwurenyuanxinxiInfo")
public class CaiwurenyuanxinxiInfoController {

    @Resource
    private CaiwurenyuanxinxiInfoService caiwurenyuanxinxiInfoService;
	@Resource
    private CaiwurenyuanxinxiInfoDao caiwurenyuanxinxiInfoDao;

    @PostMapping
    public Result<CaiwurenyuanxinxiInfo> add(@RequestBody CaiwurenyuanxinxiInfoVo caiwurenyuanxinxiInfo) {
        
		caiwurenyuanxinxiInfo.setMima(SecureUtil.md5(caiwurenyuanxinxiInfo.getMima()));
		caiwurenyuanxinxiInfoService.add(caiwurenyuanxinxiInfo);
        return Result.success(caiwurenyuanxinxiInfo);
    }
	
	//youtixing1
    //youtixing2

    @DeleteMapping("/{id}")
    public Result delete(@PathVariable Long id) {
        caiwurenyuanxinxiInfoService.delete(id);
        return Result.success();
    }

    @PutMapping
    public Result update(@RequestBody CaiwurenyuanxinxiInfoVo caiwurenyuanxinxiInfo) {
        caiwurenyuanxinxiInfoService.update(caiwurenyuanxinxiInfo);
        return Result.success();
    }
    //@PutMapping("/update2")
//    public Result update2(@RequestBody CaiwurenyuanxinxiInfoVo caiwurenyuanxinxiInfo) {
//        caiwurenyuanxinxiInfoService.update2(caiwurenyuanxinxiInfo);
//        return Result.success();
//    }
    @GetMapping("/{id}")
    public Result<CaiwurenyuanxinxiInfo> detail(@PathVariable Long id) {
        CaiwurenyuanxinxiInfo caiwurenyuanxinxiInfo = caiwurenyuanxinxiInfoService.findById(id);
        return Result.success(caiwurenyuanxinxiInfo);
    }
    @GetMapping("/changeStatus/{id}")
    public Result<CaiwurenyuanxinxiInfo> changeStatus(@PathVariable Long id) {
        caiwurenyuanxinxiInfoService.changeStatus(id);
        return Result.success();
    }
	

    @GetMapping
    public Result<List<CaiwurenyuanxinxiInfoVo>> all() {
        return Result.success(caiwurenyuanxinxiInfoService.findAll());
    }

    @GetMapping("/page/{name}")
    public Result<PageInfo<CaiwurenyuanxinxiInfoVo>> page(@PathVariable String name,
                                                @RequestParam(defaultValue = "1") Integer pageNum,
                                                @RequestParam(defaultValue = "5") Integer pageSize,
                                                HttpServletRequest request) {
        return Result.success(caiwurenyuanxinxiInfoService.findPage(name, pageNum, pageSize, request));
    }
	
	 @GetMapping("/pageqt/{name}")
    public Result<PageInfo<CaiwurenyuanxinxiInfoVo>> pageqt(@PathVariable String name,
                                                @RequestParam(defaultValue = "1") Integer pageNum,
                                                @RequestParam(defaultValue = "8") Integer pageSize,
                                                HttpServletRequest request) {
        return Result.success(caiwurenyuanxinxiInfoService.findPageqt(name, pageNum, pageSize, request));
    }

   // @PostMapping("/register")
//    public Result<CaiwurenyuanxinxiInfo> register(@RequestBody CaiwurenyuanxinxiInfo caiwurenyuanxinxiInfo) {
//        if (StrUtil.isBlank(caiwurenyuanxinxiInfo.getName()) || StrUtil.isBlank(caiwurenyuanxinxiInfo.getPassword())) {
//            throw new CustomException(ResultCode.PARAM_ERROR);
//        }
//        return Result.success(caiwurenyuanxinxiInfoService.add(caiwurenyuanxinxiInfo));
//    }

    /**
    * 批量通过excel添加信息
    * @param file excel文件
    * @throws IOException
    */
    @PostMapping("/upload")
    public Result upload(MultipartFile file) throws IOException {

        List<CaiwurenyuanxinxiInfo> infoList = ExcelUtil.getReader(file.getInputStream()).readAll(CaiwurenyuanxinxiInfo.class);
        if (!CollectionUtil.isEmpty(infoList)) {
            // 处理一下空数据
            List<CaiwurenyuanxinxiInfo> resultList = infoList.stream().filter(x -> ObjectUtil.isNotEmpty(x.getGonghao())).collect(Collectors.toList());
            for (CaiwurenyuanxinxiInfo info : resultList) {
                caiwurenyuanxinxiInfoService.add(info);
            }
        }
        return Result.success();
    }
	//yoxutonxgjitu
    @GetMapping("/getExcelModel")
    public void getExcelModel(HttpServletResponse response) throws IOException {
        // 1. 生成excel
        Map<String, Object> row = new LinkedHashMap<>();
		row.put("gonghao", "A工号");
row.put("mima", "A密码");
row.put("xingming", "A姓名");
row.put("xingbie", "A性别");
row.put("shouji", "A手机");
row.put("shenfenzheng", "A身份证");
row.put("zhaopian", "A照片");
row.put("beizhu", "A备注");

		row.put("status", "是");
		row.put("level", "caiwurenyuanxinxi");

        List<Map<String, Object>> list = CollUtil.newArrayList(row);

        // 2. 写excel
        ExcelWriter writer = ExcelUtil.getWriter(true);
        writer.write(list, true);

        response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8");
        response.setHeader("Content-Disposition","attachment;filename=caiwurenyuanxinxiInfoModel.xlsx");

        ServletOutputStream out = response.getOutputStream();
        writer.flush(out, true);
        writer.close();
        IoUtil.close(System.out);
    }
	@GetMapping("/getExcel")
    public void getExcel(HttpServletResponse response) throws IOException {
        // 1. 生成excel
        Map<String, Object> row = new LinkedHashMap<>();
        row.put("gonghao", "A工号");
row.put("mima", "A密码");
row.put("xingming", "A姓名");
row.put("xingbie", "A性别");
row.put("shouji", "A手机");
row.put("shenfenzheng", "A身份证");
row.put("zhaopian", "A照片");
row.put("beizhu", "A备注");


        row.put("status", "是");
        row.put("level", "权限");
        List<Map<String, Object>> list = CollUtil.newArrayList(row);
        List<Map<String, Object>> daochuexcellist = caiwurenyuanxinxiInfoDao.daochuexcel();
        Map<String, Double> typeMap = new HashMap<>();
        for (Map<String, Object> map : daochuexcellist) {
            list.add(map);
        }
        // 2. 写excel
        ExcelWriter writer = ExcelUtil.getWriter(true);
        writer.write(list, true);

        response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8");
        response.setHeader("Content-Disposition","attachment;filename=caiwurenyuanxinxiInfo.xlsx");

        ServletOutputStream out = response.getOutputStream();
        writer.flush(out, true);
        writer.close();
        IoUtil.close(System.out);
    }
	private void getPieData(String name, List<EchartsData> pieList, Map<String, Double> dataMap) {
        EchartsData pieData = new EchartsData();
        EchartsData.Series series = new EchartsData.Series();

        Map<String, String> titleMap = new HashMap<>(2);
        titleMap.put("text", name);
        pieData.setTitle(titleMap);

        series.setName(name + "比例");
        series.setType("pie");
        series.setRadius("55%");

        List<Object> objects = new ArrayList<>();
        List<Object> legendList = new ArrayList<>();
        for (String key : dataMap.keySet()) {
            Double value = dataMap.get(key);
            objects.add(new JSONObject().putOpt("name", key).putOpt("value", value));
            legendList.add(key);
        }
        series.setData(objects);

        pieData.setSeries(Collections.singletonList(series));
        Map<String, Boolean> map = new HashMap<>();
        map.put("show", true);
        pieData.setTooltip(map);

        Map<String, Object> legendMap = new HashMap<>(4);
        legendMap.put("orient", "vertical");
        legendMap.put("x", "left");
        legendMap.put("y", "center");
        legendMap.put("data", legendList);
        pieData.setLegend(legendMap);

        pieList.add(pieData);
    }

    private void getBarData(String name, List<EchartsData> barList, Map<String, Double> dataMap) {
        EchartsData barData = new EchartsData();
        EchartsData.Series series = new EchartsData.Series();

        List<Object> seriesObjs = new ArrayList<>();
        List<Object> xAxisObjs = new ArrayList<>();
        for (String key : dataMap.keySet()) {
            Double value = dataMap.get(key);
            xAxisObjs.add(key);
            seriesObjs.add(value);
        }

        series.setType("bar");
        series.setName(name);
        series.setData(seriesObjs);
        barData.setSeries(Collections.singletonList(series));

        Map<String, Object> xAxisMap = new HashMap<>(1);
        xAxisMap.put("data", xAxisObjs);
        barData.setxAxis(xAxisMap);

        barData.setyAxis(new HashMap<>());

        Map<String, Object> legendMap = new HashMap<>(1);
        legendMap.put("data", Collections.singletonList(name));
        barData.setLegend(legendMap);

        Map<String, Boolean> map = new HashMap<>(1);
        map.put("show", true);
        barData.setTooltip(map);

        Map<String, String> titleMap = new HashMap<>(1);
        titleMap.put("text", name);
        barData.setTitle(titleMap);

        barList.add(barData);
    }
}

八、论文参考

九、源码获取

大家点赞、收藏、关注、评论啦 、查看👇🏻获取联系方式👇🏻

精彩专栏推荐订阅下方专栏👇🏻👇🏻👇🏻👇🏻

Java项目精品实战案例(300套)

Java微信小程序项目实战(200套)

Python项目精品实战案例(100套)

  • 2
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值