基于微信小程序便捷记账系统

便捷记账系统用户端是基于微信小程序端,后端管理员是基于java编程语言,mysql数据库,idea开发工具,ssm框架开发,本系统分为用户和管理员两个角色,用户微信端可以注册登陆系统,在线添加收入,支出信息,查看收入支出的记录,在线论坛交流,联系客服信息。管理员可以对用户信息,支出,收入信息,论坛信息,客服信息等进行管理。本系统功能齐全,带论文和答辩ppt,适合作为微信小程序毕业设计参考和学习。


一.技术环境

jdk版本:1.8 及以上
ide工具:IDEA ,微信小程序开发工具
数据库: mysql5.7 (必须5.7)
编程语言: Java
tomcat: 8.0 及以上
java框架:SSM
maven: 3.6.1
前端:layui ,微信
详细技术:HTML+CSS+JS+JSP+JAVA+SSM+MYSQL+JQUERY+MAVEN+微信开发工具


二.项目文件(项目获取请看文末官网)


三.系统功能


四.代码示例

package com.lmu.controller;
/*** 和登陆有关的都在这里*/import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.lmu.model.Role;
import com.lmu.model.User;
import com.lmu.service.RoleService;
import com.lmu.service.UserService;
import com.lmu.utils.JsonUtils;
import com.lmu.utils.UserUtils;import org.apache.commons.collections.map.HashedMap;
import org.apache.struts2.ServletActionContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;import java.io.IOException;
import java.util.HashMap;
import java.util.Map;@Controller("loginController")
@Scope("prototype")
public class LoginController extends ActionSupport {@Autowiredprivate UserService userService;@Autowiredprivate RoleService roleService;private User user;private Map<String, Object> map = new HashMap();public User getUser() {return user;}public void setUser(User user) {this.user = user;}public UserService getUserService() {return userService;}public void setUserService(UserService userService) {this.userService = userService;}/*** 用户登陆* @return*/public void index() throws IOException {User user1 = userService.getUser(user);if (user1 != null){if (user1.getIsSh() == 1){if (user1.getRole().getEnName().equals("admin")){ActionContext.getContext().getSession().put("user", user1);}if (user1.getRole().getEnName().equals("js")){ActionContext.getContext().getSession().put("user1", user1);}if (user1.getRole().getEnName().equals("xs")){ActionContext.getContext().getSession().put("user2", user1);}map.put("flag", 1);map.put("url", "login_indexs.do");map.put("id", user1.getId());JsonUtils.toJson(map);} else {map.put("flag", 2);JsonUtils.toJson(map);}} else {map.put("flag", 3);JsonUtils.toJson(map);}}public String indexs() throws IOException {User u = UserUtils.getUser();if (u != null){ActionContext.getContext().put("user", u);String ss = u.getRole().getEnName();ActionContext.getContext().put("role", u.getRole().getEnName());}return SUCCESS;}//登陆页面public String login() {return SUCCESS;}//退出public String tuichu() {ActionContext ac = ActionContext.getContext();Map session = ac.getSession();session.remove("userName");session.remove("userId");ServletActionContext.getRequest().getSession().invalidate();return "login";}}
package com.lmu.controller;/*** 用户新增*/import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
import com.lmu.model.Role;
import com.lmu.model.User;
import com.lmu.service.RoleService;
import com.lmu.service.UserService;
import com.lmu.utils.JsonUtils;
import com.lmu.utils.Pager;
import com.lmu.utils.UserUtils;import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;import java.awt.event.FocusEvent;
import java.io.IOException;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;@Controller("userController")
@Scope("prototype")
public class UserController extends ActionSupport implements ModelDriven<User> {@Autowiredprivate UserService userService;@Autowiredprivate RoleService roleService;private User user;private Integer userId;private Map<String, Object> map = new HashMap();/*** list** @return*/public String list() throws IOException {User user1 = UserUtils.getUser();if (user1 == null || user1.getId() == null){ActionContext.getContext().put("login", 1);return SUCCESS;}Pager<User> pagers = null;Role role = user1.getRole();if (role.getEnName().equals("admin")) {pagers = userService.getList(user);ActionContext.getContext().put("pagers", pagers);ActionContext.getContext().put("user", user1);ActionContext.getContext().put("role", role);ActionContext.getContext().put("bean", user);return SUCCESS;} else if (role.getEnName().equals("xs") || role.getEnName().equals("js")) {pagers = userService.getList(user1);ActionContext.getContext().put("pagers", pagers);ActionContext.getContext().put("bean", user);return SUCCESS;}return null;}/*** 跳转add** @return*/public String add() {Pager<Role> pagers = roleService.pagers();ActionContext.getContext().put("pagers", pagers);return SUCCESS;}/*** 查询修改** @return*/public String edit() {User bean = userService.findById(userId);Pager<Role> pagers = roleService.pagers();ActionContext.getContext().put("bean", bean);ActionContext.getContext().put("pagers", pagers);return SUCCESS;}/*** 审核** @return*/public void updateSh() throws IOException {user.setIsSh(1);userService.updates(user);map.put("flag", true);map.put("url", "user_list.do");JsonUtils.toJson(map);}/*** 更新** @return*/public String update() throws IOException {if (user.getPass().equals("")){user.setPass(null);}userService.updates(user);map.put("flag", true);map.put("url", "user_list.do");JsonUtils.toJson(map);return SUCCESS;}/*** 保存** @return*/public void save() throws IOException {if (userService.getUser(user) != null){map.put("flag", false);map.put("url", "login_login.do");JsonUtils.toJson(map);} else {user.setTime(new Date());userService.save(user);map.put("flag", true);map.put("url", "login_login.do");JsonUtils.toJson(map);}}public void delete() throws IOException {User user1 = userService.findById(userId);user1.setIsDelete(1);userService.update(user1);map.put("flag", true);map.put("url", "user_list.do");JsonUtils.toJson(map);}@Overridepublic User getModel() {if (user == null) {user = new User();}return user;}public Integer getUserId() {return userId;}public void setUserId(Integer userId) {this.userId = userId;}public User getUser() {return user;}public void setUser(User user) {this.user = user;}
}

五.项目截图








项目获取

(微信小程序毕业设计)基于微信小程序便捷记账系统相关推荐

  1. 微信小程序毕业设计 基于微信图书馆借阅小程序系统开题报告功能参考

    微信小程序毕业设计 基于微信图书馆借阅小程序系统开题报告功能参考 下面是功能实现效果图:大家可以参考

  2. 微信小程序毕业设计 基于微信校园二手交易信息小程序系统开题报告

    (1)登录功能:注册普通账号登录:也可以直接使用微信登录:登录后可以修改用户的基本信息,也可以退出. (2)资讯功能:后台录入资讯,在微信小程序同城交易信息系统的资讯模板展示,用户可以任意浏览资讯列表 ...

  3. 微信小程序毕业设计 基于微信小程序在线电子书阅读系统开题报告

    (1)登录功能:注册普通账号登录:也可以直接使用微信登录:登录后可以修改用户的基本信息,也可以退出. (2)资讯功能:后台录入资讯,在微信小程序在线电子书阅读系统的资讯模板展示,用户可以任意浏览资讯列 ...

  4. 微信小程序毕业设计 基于微信会议室预约小程序系统开题报告

    (1)注册登录功能:注册普通账号登录:也可以直接使用微信登录:登录后可以修改用户的基本信息,也可以退出. (2)资讯功能:后台录入资讯,在微信小程序会议室系统的资讯模板展示,用户可以任意浏览资讯列表和 ...

  5. 微信小程序毕业设计 基于微信美食介绍点评小程序系统开题报告

    用户注册登录:注册普通账号,然后使用注册的账号登录登录 微信授权登录:直接使用微信作为账号,授权后登录 资讯功能:用户可以任意浏览资讯列表和详细信息 美食库:点击所有美食菜单,支持查看所有的美食信息美 ...

  6. 微信小程序毕业设计 基于微信体育馆场地预约小程序系统开题报告

    用户注册登录:注册普通账号,然后使用注册的账号登录登录 微信授权登录:直接使用微信作为账号,授权后登录 资讯功能:用户可以任意浏览资讯列表和详细信息 体育馆库:点击底部体育馆,支持查看所有的体育馆 附 ...

  7. 微信小程序毕业设计 基于微信校园跑腿小程序系统开题报告

    用户注册登录:注册普通账号,然后使用注册的账号登录登录 微信授权登录:直接使用微信作为账号,授权后登录 资讯功能:用户可以任意浏览资讯列表和详细信息 跑腿任务列表:查看所有用户发布的跑腿任务列表 查询 ...

  8. 微信小程序毕业设计 基于微信化妆品商城小程序系统开题报告

    用户注册登录:注册普通账号,然后使用注册的账号登录登录 微信授权登录:直接使用微信作为账号,授权后登录 资讯功能:用户可以任意浏览资讯列表和详细信息 化妆品库:后台录入的所有化妆品信息列表:支持通过查 ...

  9. 微信小程序毕业设计 基于微信校园失物招领小程序系统开题报告

    (1)登录功能:注册普通账号登录:也可以直接使用微信登录:登录后可以修改用户的基本信息,也可以退出. (2)资讯功能:后台录入资讯,在微信小程序失物招领系统的资讯模板展示,用户可以任意浏览资讯列表和详 ...

  10. 微信小程序毕业设计 基于微信药店药品商城小程序开题报告

    用户注册登录:注册普通账号,然后使用注册的账号登录登录 微信授权登录:直接使用微信作为账号,授权后登录 资讯功能:用户可以任意浏览资讯列表和详细信息 药品库:后台录入的所有药品信息列表:支持通过查询来 ...

最新文章

  1. React Native之ViewPagerAndroid跳转页面问题
  2. sonar的次要问题_次要GC,主要GC与完整GC
  3. BufferedReader
  4. PHP-代码审计-代码执行
  5. 记一次 .NET WPF布草管理系统 挂死分析
  6. Qt工作笔记-以配置文件的方式动态获取Mysql数据库中的数据
  7. LeetCode 26. Remove Duplicates from Sorted Array
  8. Ubuntu:高效工作环境搭建
  9. 深度学习 --- 随机神经网络详解(玻尔兹曼机学习算法、运行算法)
  10. 微信公众号之接入微信公众号服务器开发(二)
  11. 创新设计思维---自学报告
  12. 阿里云因发现Log4j2漏洞未及时上报,被工信部处罚!
  13. 计算机无法完成评估,window_Windows Vista下系统评分无法完成的问题,不知道大家有没有遇到过这样 - phpStudy...
  14. MATLAB/simulink仿真 光伏蓄电池恒流恒压充电 系统启动运行在恒流充电模式
  15. Egret 2d 实现黑暗下光照效果
  16. Hdoj 2190.悼念512汶川大地震遇难同胞——重建希望小学 题解
  17. SRM587 (div2)
  18. Android Genymotion使用中文输入法
  19. 电脑被黑客远程入侵了,该怎么办啊
  20. echarts修改横轴/xAxis的样式

热门文章

  1. 【设置】Win10如何更改C:\Users\下的用户名
  2. 上海企业邮箱哪个好,深圳企业邮箱哪个好,北京企业邮箱注册哪个好?
  3. 免费电话会议的盈利模式
  4. scrapy mysql 词云_利用Scrapy爬取姓名大全作词云分析
  5. 波若波罗蜜心经学习心得
  6. nvm 1.1.6百度网盘下载
  7. config是什么?
  8. thinkpad笔记本键盘有些按键连按会嘟嘟响
  9. 用mysql设计一个KTV点歌系统_java swing mysql实现的ktv点歌系统项目源码附带视频教程...
  10. Cocos2d-x 2.0 变速动画深入分析