一、环境信息
开发语言:JAVA
JDK版本:JDK8及以上
数据库:MySql5.6及以上
Maven版本:任意版本
操作系统:Windows、macOS
开发工具:Idea、Eclipse、MyEclipse
开发框架:Springboot+HTML+jQuery+Mysql
二、所有选题列表
三、功能介绍
安徽银行客户信息管理系统功能介绍,系统中分为两个角色,分别是管理员和客户
管理员操作端
(1)登录
(2)管理员管理,超级管理员新增其他管理员,查询,密码修改
(3)客户管理,管理客户信息,可查询,修改登录密码,销户
(4)银行卡管理,查询,开卡,挂失,取消挂失
(5)余额管理,查询所有客户余额信息
(6)业务管理,查询所有客户存款记录,转账记录,取款记录
客户操作端
(1)登录
(2)个人信息管理,修改个人信息,修改登录密码
(3)业务办理,可以存款,取款,给他人某银行卡转账
(4)我的银行卡,管理我的银行卡信息、修改银行卡的交易密码
java
package com.base.entity;
import com.base.config.Global;
import com.base.config.annotation.EntityProperty;
import com.base.config.base.BaseEntity;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;
@Entity
@EntityProperty(entityName = "银行卡")
@Table(name = Global.tableSuff+"card")
public class Card extends BaseEntity {
@EntityProperty(fieldName = "卡号",search = true,searchType = Global.SEARCH_LIKE)
private String cardNo;
@EntityProperty(fieldName = "交易密码")
private String password;
@EntityProperty(fieldName = "持有人",selectObj = "User",selectObjField = "userName",columnShow = false)
private Long userId;
@EntityProperty(fieldName = "持有人")
private String userName;
@EntityProperty(fieldName = "身份证号")
private String idNo;
@EntityProperty(fieldName = "联系方式")
private String userPhone;
@EntityProperty(fieldName = "余额")
private BigDecimal money;
@EntityProperty(fieldName = "状态",selectArrays = {"未开卡","使用中","已挂失"})
private String cardStatus;
@EntityProperty(fieldName = "卡图片")
private String img;
public String getIdNo() {
return idNo;
}
public void setIdNo(String idNo) {
this.idNo = idNo;
}
public String getUserPhone() {
return userPhone;
}
public void setUserPhone(String userPhone) {
this.userPhone = userPhone;
}
public String getImg() {
return img;
}
public void setImg(String img) {
this.img = img;
}
public String getCardStatus() {
return cardStatus;
}
public void setCardStatus(String cardStatus) {
this.cardStatus = cardStatus;
}
public String getCardNo() {
return cardNo;
}
public void setCardNo(String cardNo) {
this.cardNo = cardNo;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public Long getUserId() {
return userId;
}
public void setUserId(Long userId) {
this.userId = userId;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public BigDecimal getMoney() {
return money;
}
public void setMoney(BigDecimal money) {
this.money = money;
}
}
java
package com.base.action.ucenter;
import com.base.config.Global;
import com.base.entity.*;
import com.base.service.*;
import com.base.entity.Card;
import com.base.config.base.PageQuery;
import com.base.service.ICardService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.util.StringUtils;
import com.base.util.CommUtil;
import com.base.service.IUserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest;
import java.util.Arrays;
import java.util.Optional;
import com.base.config.exception.*;
/**
* 功能位置:用户中心
* 模块说明:银行卡管理控制器,包含 银行卡 菜单里面的所有功能
*/
@RequestMapping("/ucenter/card")
@Controller
public class UCCardController {
private String modelPath = Global.ucenter;
@Autowired
private ICardService cardService;
@Autowired
private IUserService userService;
/**
* 添加或者编辑页面的跳转
* 当id为null时是添加的跳转,当id不为null时是编辑的跳转
* @return
*/
@RequestMapping(value = "/add")
public ModelAndView add(ModelAndView mv, String id) {
mv.addObject("obj", new Card());
mv.setViewName(modelPath + "cardAdd");
if (id != null) {//编辑
Card obj = this.cardService.getOne(Long.parseLong(id));
mv.addObject("obj", obj);
}
mv.addObject("selectUserList",this.userService.getList(null));
return mv;
}
/**
* 银行卡 的新增或者更新,
* 当 id为null时是新增插入数据库的操作,当id不为null时是编辑保存的操作
*
* @param obj
* @return
*/
@RequestMapping(value = "/save")
public ModelAndView save(HttpServletRequest request, ModelAndView mv, Card obj) {
this.cardService.save(obj);
mv.setViewName("redirect:/"+modelPath+"card/pageList");
return mv;
}
/**
* 银行卡 的删除功能
*
* @param ids
* @return
*/
@RequestMapping(value = "/delete")
public ModelAndView delete(String ids, ModelAndView mv) {
Arrays.asList(ids.split(",")).stream().forEach((item) -> {
if (!StringUtils.isEmpty(item)){
this.cardService.delete(Long.parseLong(item));
}
});
mv.setViewName("redirect:/"+modelPath+"card/pageList");
return mv;
}
/**
* 银行卡 分页查询功能
*
* @param mv
* @param currentPage
* @return
*/
@RequestMapping(value = "/pageList")
public ModelAndView pageList(HttpServletRequest request,ModelAndView mv, String currentPage,Card obj) {
//当前用户,一般用在用户中心查询自己的数据
User user =(User) request.getSession().getAttribute("user");
obj.setUserId(user.getId());
mv.setViewName(modelPath + "cardList");
//按照字段排序
// PageQuery pageQuery = new PageQuery(10,"add_time","desc");
PageInfo pageInfo = this.cardService.pageList(currentPage, obj,null);
mv.addObject("pageInfo", pageInfo);
mv.addObject("search",obj);
return mv;
}
/**
* 银行卡 查看详情功能
*
* @param mv
* @param id
* @return
*/
@RequestMapping(value = "/detail")
public ModelAndView detail(ModelAndView mv, String id) {
Card obj = this.cardService.getOne(Long.parseLong(id));
Optional.ofNullable(obj).orElseThrow(() -> new MyException("数据不存在",modelPath+"card/pageList"));
mv.addObject("obj", obj);
mv.setViewName(modelPath + "cardDetail");
return mv;
}
}
源码获取
✌💗项目源码全部自研,绝对独此一家,全网找不到一样的源码,不用担心会有重复✌💗
✌💗项目语言为java,使用框架包括springboot,vue,html5,jsp,小程序,项目完整可正常运行,提供运行手册及所有环境软件!✌💗
✌💗可按需求来做,您提需求我来做✌💗
👇🏻获取联系方式👇🏻
有需要的小伙伴可以点击下方卡片咨询我哦!!!