??博主介紹:?擅長Java、微信小程序、Python、Android等,專注于Java技術(shù)領(lǐng)域和畢業(yè)項(xiàng)目實(shí)戰(zhàn)?
??文末獲取源碼聯(lián)系??
?????精彩專欄推薦訂閱?????不然下次找不到喲
Java項(xiàng)目精品實(shí)戰(zhàn)案例(300套)
Java微信小程序項(xiàng)目實(shí)戰(zhàn)(200套)Python項(xiàng)目精品實(shí)戰(zhàn)案例(100套)文章來源地址http://www.zghlxwxcb.cn/news/detail-562240.html
目錄
一、效果演示
二、前言介紹
三、主要技術(shù)
四、系統(tǒng)設(shè)計(jì)
4.1、主要功能模塊設(shè)計(jì)?????????
五、功能截圖
5.1、后臺(tái)登錄頁面
5.2、管理員信息
5.3、財(cái)務(wù)人員信息
5.4、資產(chǎn)負(fù)債
5.5、稅收管理
六、數(shù)據(jù)庫設(shè)計(jì)(部分)
七、關(guān)鍵代碼
八、論文參考
九、源碼獲取
一、效果演示
二、前言介紹
自改革開放一來,我國的經(jīng)濟(jì)發(fā)展進(jìn)入到了快速發(fā)展時(shí)期,大城市的經(jīng)濟(jì)水平不斷提高,吸引了很多的人不愿千里來大城市奮斗。一個(gè)企業(yè)的發(fā)展離不開相關(guān)的規(guī)定流程。信息化到來的今天在我們的生活當(dāng)中。離不開各種信息化的支持。比如釘釘會(huì)議預(yù)約、美團(tuán)買菜、掃碼簽到等各種信息化軟件。他們涉及我們生活中的方方面面給我們的生活提供了更大的便利性。大到政府、企業(yè)辦公小到人們的衣食住行都離不開信息化的多樣支持。各種旅游軟件指南也應(yīng)運(yùn)而生。甚至于連百姓的菜籃子也可以通過軟件來做到足不出戶送菜到家。隨著現(xiàn)代化的企業(yè)越來越多,越來越多有實(shí)力的企業(yè)正在通過信息化的手段來提升企業(yè)的軟件實(shí)力。在企業(yè)的生活、生產(chǎn)當(dāng)中最能夠規(guī)范和約束的就是企業(yè)的規(guī)章制度以及工作流程。隨著近些年來企業(yè)的業(yè)務(wù)不斷擴(kuò)張,那么企業(yè)、單位的財(cái)務(wù)管理也成為員工在工作過程當(dāng)中的一部分。傳統(tǒng)的員工財(cái)務(wù)管理,對(duì)于單位來說不能夠及時(shí)進(jìn)行線上的預(yù)算審批以及財(cái)務(wù)管理,只能夠通過事后線下進(jìn)行計(jì)算。這樣一來也存在著一定的真實(shí)性,同時(shí)對(duì)于員工來說還要進(jìn)行核算等等。如果能夠利用信息化的手段解決當(dāng)下所遇到的問題,那么不論是對(duì)于員工還是對(duì)于企業(yè)的管理者來說,都是非常有重要意義的。
三、主要技術(shù)
技術(shù)名 | 作用 |
---|---|
SpringBoot | 后端框架 |
Vue | 前端框架 |
MySQL | 數(shù)據(jù)庫 |
四、系統(tǒng)設(shè)計(jì)
4.1、主要功能模塊設(shè)計(jì)?????????
五、功能截圖
5.1、后臺(tái)登錄頁面
美麗動(dòng)人的畫面能夠讓我們的系統(tǒng)增加幾分動(dòng)人的畫面清新感,這樣一來在視覺方面就能更加深動(dòng)的拿捏住每一位用戶的心理。在系統(tǒng)的首頁布局方面我還在系統(tǒng)設(shè)計(jì)時(shí)參考了許多當(dāng)下火熱的系統(tǒng),在他們的元素上我又對(duì)我們的系統(tǒng)本身進(jìn)行了些融合。頁面如下所示:
5.2、管理員信息
列表元素是一個(gè)網(wǎng)站展現(xiàn)整齊,美觀布局的體現(xiàn),一個(gè)整齊的列表能夠清晰地讓用戶看到所需要的信息。通過表格加搜索條件的形式,將素用戶所需要的信息都羅列出來,同時(shí),為了防止數(shù)據(jù)量太大而導(dǎo)致的數(shù)據(jù)查詢慢。本系統(tǒng)在設(shè)計(jì)時(shí)還特意將后臺(tái)所取到的數(shù)據(jù)進(jìn)行了分頁處理。這樣一來,可以很方便快捷地避免了由于數(shù)據(jù)量大而導(dǎo)致的頁面顯示不全問題,同時(shí),在用戶輸入條件進(jìn)行查找的時(shí)候也可以做出快速響應(yīng)。
5.3、財(cái)務(wù)人員信息
財(cái)務(wù)人員的信息可以根據(jù)其它的屬性進(jìn)行一些展示:
5.4、資產(chǎn)負(fù)債
為了能讓管理者更加清楚的看到資產(chǎn)負(fù)債的信息,特別在這兒塊做了打印的功能如下圖所示。
5.5、稅收管理
可以通過稅收的方式將其每個(gè)月份的信息進(jìn)行展示。
這里功能太多,就不一一展示啦~
六、數(shù)據(jù)庫設(shè)計(jì)(部分)
數(shù)據(jù)庫設(shè)計(jì)如下表所示:
七、關(guān)鍵代碼
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)) {
// 處理一下空數(shù)據(jù)
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工號(hào)");
row.put("mima", "A密碼");
row.put("xingming", "A姓名");
row.put("xingbie", "A性別");
row.put("shouji", "A手機(jī)");
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工號(hào)");
row.put("mima", "A密碼");
row.put("xingming", "A姓名");
row.put("xingbie", "A性別");
row.put("shouji", "A手機(jī)");
row.put("shenfenzheng", "A身份證");
row.put("zhaopian", "A照片");
row.put("beizhu", "A備注");
row.put("status", "是");
row.put("level", "權(quán)限");
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);
}
}
八、論文參考
九、源碼獲取
大家點(diǎn)贊、收藏、關(guān)注、評(píng)論啦 、查看????獲取聯(lián)系方式????
精彩專欄推薦訂閱:在下方專欄????????????????
Java項(xiàng)目精品實(shí)戰(zhàn)案例(300套)
Java微信小程序項(xiàng)目實(shí)戰(zhàn)(200套)文章來源:http://www.zghlxwxcb.cn/news/detail-562240.html
Python項(xiàng)目精品實(shí)戰(zhàn)案例(100套)
到了這里,關(guān)于基于Java+SpringBoot+Vue的中小企業(yè)財(cái)務(wù)管理系統(tǒng)設(shè)計(jì)與實(shí)現(xiàn)的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!