基于javaweb+jsp的企业财务记账管理系统(JavaWeb MySQL JSP Bootstrap Servlet SSM SpringBoot)
JavaWeb JavaBean JSP MVC MySQL Tomcat JavaScript Bootstrap.
基础JSP+Servlet或JSP+SSM(Spring、SpringMVC、MyBatis)框架或JSP+SSM+Maven(pom.xml)框架或SpringBoot…均可
开发工具:eclipse/idea/myeclipse/sts等均可配置运行
适用
课程设计,大作业,毕业设计,项目练习,学习演示等
@RequestMapping("zicanDelete")
public void delete(HttpServletResponse response, HttpServletRequest request) throws IOException {
Serializable id = Util.decode(request, "id");
zicanService.delete(Arrays.asList(id));
this.redirectList(request, response);
}
@RequestMapping("zicanEdit")
public void edit(HttpServletResponse response, HttpServletRequest request) throws IOException {
#{noticeText}, #{noticeType}, #{createDate} DELETE FROM `t_notice` WHERe `id` IN #{id} UPDATE `t_notice` `id` = #{id}, `notice_name` = #{noticeName},
DELETE FROM `t_user` WHERe `id` IN
#{id}
UPDATE `t_user`
`id` = #{id},
`username` = #{username},
`password` = #{password},
`real_name` = #{realName},
`user_sex` = #{userSex},
`user_phone` = #{userPhone},
`user_text` = #{userText},
`user_type` = #{userType}
public void edit(HttpServletResponse response, HttpServletRequest request) throws IOException {
Salary vo = new Salary();
vo.setId(Long.valueOf(Util.decode(request, "id")));
vo.setSalaryName(Util.decode(request, "salaryName"));
vo.setSalaryNo(Util.decode(request, "salaryNo"));
vo.setSalaryDept(Util.decode(request, "salaryDept"));
vo.setSalaryMoney(Util.decode(request, "salaryMoney"));
vo.setSalaryText(Util.decode(request, "salaryText"));
salaryService.update(vo);
this.redirectList(request, response);
}
@RequestMapping({"salaryGet", "salaryEditPre"})
public void get(HttpServletResponse response, HttpServletRequest request) throws IOException {
Serializable id = Util.decode(request, "id");//取出主键id
Salary vo = salaryService.get(id);
request.getSession().setAttribute("vo", vo);
| 项目名称: | |
| 时间: | |
| 投入(万元): | |
| 收入(万元): | |
| 利润(万元): | |
| 盈亏: | 盈利 亏损 |
| 备注: |
response.sendRedirect("login.jsp");
return false;
}
return true;
}
//@Override
public void postHandle(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Object o, ModelAndView modelAndView) throws Exception {
}
//@Override
public void afterCompletion(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Object o, Exception e) throws Exception {
}
}
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
Map params = new HashMap();
params.put("searchColumn", "username");//使用`username`字段进行模糊查询
params.put("keyword", username);
List list = (List) userService.list(params).get("list");
for (User user : list) {
if (user.getUsername().equals(username) && user.getPassword().equals(password)) {//找到这个管理员了
request.getSession().setAttribute("loginUser", user);
request.getRequestDispatcher("userList").forward(request, response);
return;
}
}
request.getSession().setAttribute("alert_msg", "错误:用户名或密码错误!");
request.getRequestDispatcher("login.jsp").forward(request, response);
}
@RequestMapping("authRegister")
public void register(HttpServletResponse response, HttpServletRequest request) throws IOException, ServletException {
* @throws IOException
*/
@RequestMapping("jingyinDelete")
public void delete(HttpServletResponse response, HttpServletRequest request) throws IOException {
Serializable id = Util.decode(request, "id");
jingyinService.delete(Arrays.asList(id));
this.redirectList(request, response);
}
/**
* 编辑项目经营
*
* @param response
* @param request
* @throws IOException
`jingyin_name` = #{jingyinName}, `jingyin_date` = #{jingyinDate}, `jingyin_tou` = #{jingyinTou}, `jingyin_shou` = #{jingyinShou}, `jingyin_lirun` = #{jingyinLirun}, `jingyin_status` = #{jingyinStatus}, `jingyin_text` = #{jingyinText} WHERe `id` = #{id}
SELECtFROM `t_user` WHERe `id` = #{id} SELECT FROM `t_user` ORDER BY id ASC ${searchColumn} LIKE CONCAt('%',#{keyword},'%') AND 1=1LIMIT #{startIndex},#{pageSize};
运行环境
Java≥6、Tomcat≥7.0、MySQL≥5.5
开发工具
eclipse/idea/myeclipse/sts等均可配置运行
技术框架
JavaWeb JavaBean JSP MVC MySQL Tomcat JavaScript Bootstrap.
基础JSP+Servlet或JSP+SSM(Spring、SpringMVC、MyBatis)框架或JSP+SSM+Maven(pom.xml)框架或SpringBoot…均可
适用
课程设计,大作业,毕业设计,项目练习,学习演示等
功能说明
登录、注册、退出、用户模块、公告模块、职工工资模块、企业资产模块、项目经营模块的增删改查管理



