资源简介

银行储蓄系统 有mysql代码 整个项目包 以及课程设计文档。主要用Layui,bootsatrap写前端页面,整个项目用maven管理,以及数据库用mysql来进行管理存储数据,后端用servlet写。主要实现的功能有注册与登录,定期存钱取钱,活期存钱取钱。以及明细表。

资源截图

代码片段和文件信息

package controller;

import java.io.IOException;
import java.nio.channels.SelectableChannel;
import java.util.ArrayList;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import pojo.DetailTable;
import pojo.UserInfo;
import service.DetailTableServiceImp;
import service.IDetailTableService;

@WebServlet(“/DetailServlet“)
public class DetailServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
 
IDetailTableService detailTableService=new DetailTableServiceImp();

UserInfo  userInfo=new UserInfo();
DetailTable detailTable =new DetailTable();
    public DetailServlet() {
        super();
      
    }


protected void doGet(HttpServletRequest request HttpServletResponse response) throws ServletException IOException {

request.setCharacterEncoding(“utf-8“);
response.setContentType(“text/html;chatset=utf-8“);
ArrayList detailList=new ArrayList();
String m=request.getParameter(“m“);
String select=request.getParameter(“select“);
if(select==null||select.equals(““)) {
m=“list“;

}
HttpSession session2 = request.getSession();
userInfo=(UserInfo) session2.getAttribute(“userInfo“);
String userId=userInfo.getUserId();
switch(m) {
case “list“://增加
detailList=getAllList(userId);
request.setAttribute(“detailList“ detailList);
request.getRequestDispatcher(“/jsp/Detail.jsp“).forward(requestresponse);
break;
case “del“://删除
String dDate=request.getParameter(“dDate“);
int n=delByDate(dDate);
if(n>0) {
request.getRequestDispatcher(“/DetailServlet?m=list“).forward(request response);
}
break;
case “select“:
//根据取款或存款来查询

detailList=selectByOp(userIdselect);
request.setAttribute(“detailList“ detailList);
request.setAttribute(“select“select );
request.getRequestDispatcher(“/jsp/Detail.jsp“).forward(requestresponse);
break;


}

}





private ArrayList selectByOp(String userId String select) {

return detailTableService.selectByOp(userId  select);
}


private int delByDate(String dDate) {

return detailTableService.delByDate(dDate);
}


private ArrayList getAllList(String userId) {

return detailTableService.getAllListById(userId);
}


protected void doPost(HttpServletRequest request HttpServletResponse response) throws ServletException IOException {
doGet(request response);
}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-07-01 21:09  3120160901431 黄琼\
     文件       22016  2019-07-01 21:00  3120160901431 黄琼\3120160901431 黄琼-任务书.doc
     文件      854828  2019-07-01 20:59  3120160901431 黄琼\3120160901431 黄琼-说明书.doc
     目录           0  2019-07-01 21:09  3120160901431 黄琼\BankSaveSystem\
     文件        1766  2019-06-24 11:48  3120160901431 黄琼\BankSaveSystem\.classpath
     文件        1090  2019-06-20 08:35  3120160901431 黄琼\BankSaveSystem\.project
     目录           0  2019-07-01 21:09  3120160901431 黄琼\BankSaveSystem\.settings\
     文件         639  2019-06-20 08:35  3120160901431 黄琼\BankSaveSystem\.settings\.jsdtscope
     文件         478  2019-06-20 08:35  3120160901431 黄琼\BankSaveSystem\.settings\org.eclipse.jdt.core.prefs
     文件          90  2019-06-20 08:35  3120160901431 黄琼\BankSaveSystem\.settings\org.eclipse.m2e.core.prefs
     文件         787  2019-06-20 08:37  3120160901431 黄琼\BankSaveSystem\.settings\org.eclipse.wst.common.component
     文件         252  2019-06-20 08:37  3120160901431 黄琼\BankSaveSystem\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2019-06-20 08:35  3120160901431 黄琼\BankSaveSystem\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2019-06-20 08:35  3120160901431 黄琼\BankSaveSystem\.settings\org.eclipse.wst.jsdt.ui.superType.name
     文件          50  2019-06-20 08:35  3120160901431 黄琼\BankSaveSystem\.settings\org.eclipse.wst.validation.prefs
     文件        2122  2019-06-24 11:44  3120160901431 黄琼\BankSaveSystem\pom.xml
     目录           0  2019-07-01 21:09  3120160901431 黄琼\BankSaveSystem\src\
     目录           0  2019-07-01 21:09  3120160901431 黄琼\BankSaveSystem\src\main\
     目录           0  2019-07-01 21:09  3120160901431 黄琼\BankSaveSystem\src\main\java\
     目录           0  2019-07-01 21:09  3120160901431 黄琼\BankSaveSystem\src\main\java\controller\
     文件        2730  2019-07-01 18:16  3120160901431 黄琼\BankSaveSystem\src\main\java\controller\DetailServlet.java
     文件        4759  2019-06-26 18:37  3120160901431 黄琼\BankSaveSystem\src\main\java\controller\DrawMoneyServlet.java
     文件        4072  2019-07-01 17:17  3120160901431 黄琼\BankSaveSystem\src\main\java\controller\OperateServlet.java
     文件        3522  2019-06-26 16:59  3120160901431 黄琼\BankSaveSystem\src\main\java\controller\SaveMoneyServlet.java
     文件        3138  2019-06-25 23:29  3120160901431 黄琼\BankSaveSystem\src\main\java\controller\UserLoginServlet.java
     文件        3600  2019-06-26 13:12  3120160901431 黄琼\BankSaveSystem\src\main\java\controller\UserRegisterServlet.java
     目录           0  2019-07-01 21:09  3120160901431 黄琼\BankSaveSystem\src\main\java\dao\
     文件        3411  2019-07-01 16:17  3120160901431 黄琼\BankSaveSystem\src\main\java\dao\DetailTableDaoImp.java
     文件         367  2019-07-01 16:12  3120160901431 黄琼\BankSaveSystem\src\main\java\dao\IDetailTableDao.java
     文件         234  2019-06-26 12:19  3120160901431 黄琼\BankSaveSystem\src\main\java\dao\ILiveAccessDao.java
     文件         245  2019-06-26 11:38  3120160901431 黄琼\BankSaveSystem\src\main\java\dao\IRegularAccessDao.java
............此处省略255个文件信息

评论

共有 条评论