Advertisement

计算机毕业设计-基于Java+springboot架构的银行管理系统项目开发实战(附源码+论文)

阅读量:

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

💞当前专栏:Java毕业设计

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

🎀 该列表以Python项目学位设计为主要内容,并提供详细信息页。

🌎 此外,在微信小程序平台上的学位设计展示。

开发运行环境

  • 开发语言为Java
  • 框架使用Spring Boot
  • JDK版本为JDK 1.8
  • Tomcat服务器版本是Tomcat 7
  • 数据库类型是MySQL 5.7
  • 数据库管理工具采用Navicat Pro 12
  • 开发软件包括Eclipse、MyEclipse以及IntelliJ IDEA
  • Maven版本设定为Maven 3.3(Pro版)
  • 浏览器设置使用Google Chrome

论文目录

【如需全文或源码请按文末获取联系】

在这里插入图片描述
在这里插入图片描述

一、项目简介

该系统主要包含以下功能模块:支持客户服务对话(客服聊天)、数据字典表维护(字典表)、信息发布与通知处理(公告信息)、金融产品配置与服务(金融工具)、投资理财收藏记录(金融工具收藏)、投资理财卡绑定配置(金融工具银行卡)、借款申请处理与额度控制(借款)、理财产品配置及持有记录维护(理财产品)、理财投资组合记录存档(理财产品收藏)、理财账户资金查询绑定配置及卡片关联(理财产品银行卡)、理财账户信息查询与维护(理财银行卡信息)、客户账户服务及资金调度(银行卡)以及存款产品配置及状态监控(存款)。此外还包括客户交易流水查询与历史记录检索功能(银行卡记录),客户账户资金查询及支取请求处理(取款)以及AWS 转账支持等基础金融服务模块。

二、系统设计

2.1软件功能模块设计

系统整体架构设计如图所示。

在这里插入图片描述

2.2数据库设计

(2)下图是取款实体和其具备的属性。

在这里插入图片描述

(5)下图是员工实体和其具备的属性。

在这里插入图片描述

(7)下图是银行卡实体和其具备的属性。

在这里插入图片描述

(11)下图是理财产品实体和其具备的属性。

在这里插入图片描述

(15)下图是银行卡记录实体和其具备的属性。

在这里插入图片描述

三、系统项目部分截图

3.1管理员登录模块

程序中的登录功能是每个系统都不可或缺的重要组成部分,在登录界面必须填写的项目有两个:一个是用户名(账号),另一个则是口令(密码)。当管理员准确输入用户名和口令并提交后,随后即可进入后台管理模块进行操作。如图所示为管理员的登录界面。

在这里插入图片描述

3.2银行卡管理模块

进入银行卡列表后,管理员可执行查看银行卡信息及实施模糊搜索等操作;此外还具备浏览并查询相关信息的维护功能

在这里插入图片描述

3.3理财产品管理

如图5.5所示的是理财产品管理页面,管理员能够执行浏览列表,并实现模糊搜索及相关的日常维护工作

在这里插入图片描述

3.4产品类型管理

如图5.6所示的是一个产品类型管理页面,在该页面上管理员能够完成新产品的录入、现有产品的更新以及旧产品的移除操作。

在这里插入图片描述

四、部分核心代码

复制代码
    package com.controller;
    
    import java.io.File;
    import java.math.BigDecimal;
    import java.net.URL;
    import java.text.SimpleDateFormat;
    import com.alibaba.fastjson.JSONObject;
    import java.util.*;
    import org.springframework.beans.BeanUtils;
    import javax.servlet.http.HttpServletRequest;
    import org.springframework.web.context.ContextLoader;
    import javax.servlet.ServletContext;
    import com.service.TokenService;
    import com.utils.*;
    import java.lang.reflect.InvocationTargetException;
    
    import com.service.DictionaryService;
    import org.apache.commons.lang3.StringUtils;
    import com.annotation.IgnoreAuth;
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    import org.springframework.beans.factory.annotation.Autowired;
    import org.springframework.stereotype.Controller;
    import org.springframework.web.bind.annotation.*;
    import com.baomidou.mybatisplus.mapper.EntityWrapper;
    import com.baomidou.mybatisplus.mapper.Wrapper;
    import com.entity.*;
    import com.entity.view.*;
    import com.service.*;
    import com.utils.PageUtils;
    import com.utils.R;
    import com.alibaba.fastjson.*;
    
    /** * 金融工具评价
     * 后端接口
     * @author
     * @email
    */
    @RestController
    @Controller
    @RequestMapping("/jinronggongjuCommentback")
    public class JinronggongjuCommentbackController {
    private static final Logger logger = LoggerFactory.getLogger(JinronggongjuCommentbackController.class);
    
    private static final String TABLE_NAME = "jinronggongjuCommentback";
    
    @Autowired
    private JinronggongjuCommentbackService jinronggongjuCommentbackService;
    
    
    @Autowired
    private TokenService tokenService;
    
    @Autowired
    private ChatService chatService;//客服聊天
    @Autowired
    private DictionaryService dictionaryService;//字典表
    @Autowired
    private GonggaoService gonggaoService;//公告信息
    @Autowired
    private JinronggongjuService jinronggongjuService;//金融工具
    @Autowired
    private JinronggongjuCollectionService jinronggongjuCollectionService;//金融工具收藏
    @Autowired
    private JinronggongjuOrderService jinronggongjuOrderService;//借款
    @Autowired
    private LicaichanpinService licaichanpinService;//理财产品
    @Autowired
    private LicaichanpinCollectionService licaichanpinCollectionService;//理财产品收藏
    @Autowired
    private LicaichanpinCommentbackService licaichanpinCommentbackService;//理财产品评价
    @Autowired
    private LicaichanpinOrderService licaichanpinOrderService;//理财产品订单
    @Autowired
    private YinhangkaService yinhangkaService;//银行卡
    @Autowired
    private YinhangkaCunkuanService yinhangkaCunkuanService;//存款
    @Autowired
    private YinhangkaJiluService yinhangkaJiluService;//银行卡记录
    @Autowired
    private YinhangkaQukuanService yinhangkaQukuanService;//取款
    @Autowired
    private YinhangkaZhuanzhangService yinhangkaZhuanzhangService;//转账
    @Autowired
    private YonghuService yonghuService;//用户
    @Autowired
    private YuangongService yuangongService;//员工
    @Autowired
    private UsersService usersService;//管理员
    
    
    /** * 后端列表
    */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> params, HttpServletRequest request){
        logger.debug("page方法:,,Controller:{},,params:{}",this.getClass().getName(),JSONObject.toJSONString(params));
        String role = String.valueOf(request.getSession().getAttribute("role"));
        if(false)
            return R.error(511,"永不会进入");
        else if("用户".equals(role))
            params.put("yonghuId",request.getSession().getAttribute("userId"));
        else if("员工".equals(role))
            params.put("yuangongId",request.getSession().getAttribute("userId"));
        CommonUtil.checkMap(params);
        PageUtils page = jinronggongjuCommentbackService.queryPage(params);
    
        //字典表数据转换
        List<JinronggongjuCommentbackView> list =(List<JinronggongjuCommentbackView>)page.getList();
        for(JinronggongjuCommentbackView c:list){
            //修改对应字典表字段
            dictionaryService.dictionaryConvert(c, request);
        }
        return R.ok().put("data", page);
    }
    
    /** * 后端详情
    */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id, HttpServletRequest request){
        logger.debug("info方法:,,Controller:{},,id:{}",this.getClass().getName(),id);
        JinronggongjuCommentbackEntity jinronggongjuCommentback = jinronggongjuCommentbackService.selectById(id);
        if(jinronggongjuCommentback !=null){
            //entity转view
            JinronggongjuCommentbackView view = new JinronggongjuCommentbackView();
            BeanUtils.copyProperties( jinronggongjuCommentback , view );//把实体数据重构到view中
            //级联表 金融工具
            //级联表
            JinronggongjuEntity jinronggongju = jinronggongjuService.selectById(jinronggongjuCommentback.getJinronggongjuId());
            if(jinronggongju != null){
            BeanUtils.copyProperties( jinronggongju , view ,new String[]{ "id", "createTime", "insertTime", "updateTime", "username", "password", "newMoney", "yonghuId"});//把级联的数据添加到view中,并排除id和创建时间字段,当前表的级联注册表
            view.setJinronggongjuId(jinronggongju.getId());
            }
            //级联表 用户
            //级联表
            YonghuEntity yonghu = yonghuService.selectById(jinronggongjuCommentback.getYonghuId());
            if(yonghu != null){
            BeanUtils.copyProperties( yonghu , view ,new String[]{ "id", "createTime", "insertTime", "updateTime", "username", "password", "newMoney", "yonghuId"});//把级联的数据添加到view中,并排除id和创建时间字段,当前表的级联注册表
            view.setYonghuId(yonghu.getId());
            }
            //修改对应字典表字段
            dictionaryService.dictionaryConvert(view, request);
            return R.ok().put("data", view);
        }else {
            return R.error(511,"查不到数据");
        }
    
    }
    
    /** * 后端保存
    */
    @RequestMapping("/save")
    public R save(@RequestBody JinronggongjuCommentbackEntity jinronggongjuCommentback, HttpServletRequest request){
        logger.debug("save方法:,,Controller:{},,jinronggongjuCommentback:{}",this.getClass().getName(),jinronggongjuCommentback.toString());
    
        String role = String.valueOf(request.getSession().getAttribute("role"));
        if(false)
            return R.error(511,"永远不会进入");
        else if("用户".equals(role))
            jinronggongjuCommentback.setYonghuId(Integer.valueOf(String.valueOf(request.getSession().getAttribute("userId"))));
    
        jinronggongjuCommentback.setCreateTime(new Date());
        jinronggongjuCommentback.setInsertTime(new Date());
        jinronggongjuCommentbackService.insert(jinronggongjuCommentback);
    
        return R.ok();
    }
    
    /** * 后端修改
    */
    @RequestMapping("/update")
    public R update(@RequestBody JinronggongjuCommentbackEntity jinronggongjuCommentback, HttpServletRequest request) throws NoSuchFieldException, ClassNotFoundException, IllegalAccessException, InstantiationException {
        logger.debug("update方法:,,Controller:{},,jinronggongjuCommentback:{}",this.getClass().getName(),jinronggongjuCommentback.toString());
        JinronggongjuCommentbackEntity oldJinronggongjuCommentbackEntity = jinronggongjuCommentbackService.selectById(jinronggongjuCommentback.getId());//查询原先数据
    
        String role = String.valueOf(request.getSession().getAttribute("role"));
    //        if(false)
    //            return R.error(511,"永远不会进入");
    //        else if("用户".equals(role))
    //            jinronggongjuCommentback.setYonghuId(Integer.valueOf(String.valueOf(request.getSession().getAttribute("userId"))));
        if("".equals(jinronggongjuCommentback.getJinronggongjuCommentbackText()) || "null".equals(jinronggongjuCommentback.getJinronggongjuCommentbackText())){
                jinronggongjuCommentback.setJinronggongjuCommentbackText(null);
        }
        if("".equals(jinronggongjuCommentback.getReplyText()) || "null".equals(jinronggongjuCommentback.getReplyText())){
                jinronggongjuCommentback.setReplyText(null);
        }
        jinronggongjuCommentback.setUpdateTime(new Date());
    
            jinronggongjuCommentbackService.updateById(jinronggongjuCommentback);//根据id更新
            return R.ok();
    }
    
    
    
    /** * 删除
    */
    @RequestMapping("/delete")
    public R delete(@RequestBody Integer[] ids, HttpServletRequest request){
        logger.debug("delete:,,Controller:{},,ids:{}",this.getClass().getName(),ids.toString());
        List<JinronggongjuCommentbackEntity> oldJinronggongjuCommentbackList =jinronggongjuCommentbackService.selectBatchIds(Arrays.asList(ids));//要删除的数据
        jinronggongjuCommentbackService.deleteBatchIds(Arrays.asList(ids));
    
        return R.ok();
    }
    
    
    /** * 批量上传
     */
    @RequestMapping("/batchInsert")
    public R save( String fileName, HttpServletRequest request){
        logger.debug("batchInsert方法:,,Controller:{},,fileName:{}",this.getClass().getName(),fileName);
        Integer yonghuId = Integer.valueOf(String.valueOf(request.getSession().getAttribute("userId")));
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        //.eq("time", new SimpleDateFormat("yyyy-MM-dd").format(new Date()))
        try {
            List<JinronggongjuCommentbackEntity> jinronggongjuCommentbackList = new ArrayList<>();//上传的东西
            Map<String, List<String>> seachFields= new HashMap<>();//要查询的字段
            Date date = new Date();
            int lastIndexOf = fileName.lastIndexOf(".");
            if(lastIndexOf == -1){
                return R.error(511,"该文件没有后缀");
            }else{
                String suffix = fileName.substring(lastIndexOf);
                if(!".xls".equals(suffix)){
                    return R.error(511,"只支持后缀为xls的excel文件");
                }else{
                    URL resource = this.getClass().getClassLoader().getResource("static/upload/" + fileName);//获取文件路径
                    File file = new File(resource.getFile());
                    if(!file.exists()){
                        return R.error(511,"找不到上传文件,请联系管理员");
                    }else{
                        List<List<String>> dataList = PoiUtil.poiImport(file.getPath());//读取xls文件
                        dataList.remove(0);//删除第一行,因为第一行是提示
                        for(List<String> data:dataList){
                            //循环
                            JinronggongjuCommentbackEntity jinronggongjuCommentbackEntity = new JinronggongjuCommentbackEntity();
    //                            jinronggongjuCommentbackEntity.setJinronggongjuId(Integer.valueOf(data.get(0)));   //金融工具 要改的
    //                            jinronggongjuCommentbackEntity.setYonghuId(Integer.valueOf(data.get(0)));   //用户 要改的
    //                            jinronggongjuCommentbackEntity.setJinronggongjuCommentbackText(data.get(0));                    //评价内容 要改的
    //                            jinronggongjuCommentbackEntity.setInsertTime(date);//时间
    //                            jinronggongjuCommentbackEntity.setReplyText(data.get(0));                    //回复内容 要改的
    //                            jinronggongjuCommentbackEntity.setUpdateTime(sdf.parse(data.get(0)));          //回复时间 要改的
    //                            jinronggongjuCommentbackEntity.setCreateTime(date);//时间
                            jinronggongjuCommentbackList.add(jinronggongjuCommentbackEntity);
    
    
                            //把要查询是否重复的字段放入map中
                        }
    
                        //查询是否重复
                        jinronggongjuCommentbackService.insertBatch(jinronggongjuCommentbackList);
                        return R.ok();
                    }
                }
            }
        }catch (Exception e){
            e.printStackTrace();
            return R.error(511,"批量插入数据异常,请联系管理员");
        }
    }
    
    
    
    
    /** * 前端列表
    */
    @IgnoreAuth
    @RequestMapping("/list")
    public R list(@RequestParam Map<String, Object> params, HttpServletRequest request){
        logger.debug("list方法:,,Controller:{},,params:{}",this.getClass().getName(),JSONObject.toJSONString(params));
    
        CommonUtil.checkMap(params);
        PageUtils page = jinronggongjuCommentbackService.queryPage(params);
    
        //字典表数据转换
        List<JinronggongjuCommentbackView> list =(List<JinronggongjuCommentbackView>)page.getList();
        for(JinronggongjuCommentbackView c:list)
            dictionaryService.dictionaryConvert(c, request); //修改对应字典表字段
    
        return R.ok().put("data", page);
    }
    
    /** * 前端详情
    */
    @RequestMapping("/detail/{id}")
    public R detail(@PathVariable("id") Integer id, HttpServletRequest request){
        logger.debug("detail方法:,,Controller:{},,id:{}",this.getClass().getName(),id);
        JinronggongjuCommentbackEntity jinronggongjuCommentback = jinronggongjuCommentbackService.selectById(id);
            if(jinronggongjuCommentback !=null){
    
    
                //entity转view
                JinronggongjuCommentbackView view = new JinronggongjuCommentbackView();
                BeanUtils.copyProperties( jinronggongjuCommentback , view );//把实体数据重构到view中
    
                //级联表
                    JinronggongjuEntity jinronggongju = jinronggongjuService.selectById(jinronggongjuCommentback.getJinronggongjuId());
                if(jinronggongju != null){
                    BeanUtils.copyProperties( jinronggongju , view ,new String[]{ "id", "createTime", "insertTime", "updateTime", "username", "password", "newMoney", "yonghuId"});//把级联的数据添加到view中,并排除id和创建时间字段
                    view.setJinronggongjuId(jinronggongju.getId());
                }
                //级联表
                    YonghuEntity yonghu = yonghuService.selectById(jinronggongjuCommentback.getYonghuId());
                if(yonghu != null){
                    BeanUtils.copyProperties( yonghu , view ,new String[]{ "id", "createTime", "insertTime", "updateTime", "username", "password", "newMoney", "yonghuId"});//把级联的数据添加到view中,并排除id和创建时间字段
                    view.setYonghuId(yonghu.getId());
                }
                //修改对应字典表字段
                dictionaryService.dictionaryConvert(view, request);
                return R.ok().put("data", view);
            }else {
                return R.error(511,"查不到数据");
            }
    }
    
    
    /** * 前端保存
    */
    @RequestMapping("/add")
    public R add(@RequestBody JinronggongjuCommentbackEntity jinronggongjuCommentback, HttpServletRequest request){
        logger.debug("add方法:,,Controller:{},,jinronggongjuCommentback:{}",this.getClass().getName(),jinronggongjuCommentback.toString());
        jinronggongjuCommentback.setCreateTime(new Date());
        jinronggongjuCommentback.setInsertTime(new Date());
        jinronggongjuCommentbackService.insert(jinronggongjuCommentback);
    
            return R.ok();
        }
    
    }

获取源码或论文

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

全部评论 (0)

还没有任何评论哟~