• 基于springboot+vue的大学生智能消费记账系统


    博主主页猫头鹰源码

    博主简介:Java领域优质创作者、CSDN博客专家、公司架构师、全网粉丝5万+、专注Java技术领域和毕业设计项目实战

    主要内容:毕业设计(Javaweb项目|小程序等)、简历模板、学习资料、面试题库、技术咨询

    文末联系获取

    项目介绍: 

    本系统适合选题:大学生、智能消费、消费记账、记账管理、消费、账本等。系统采用springboot+vue整合开发,前端框架主要使用了element-ui框架、数据层采用mybatis,功能齐全,界面美观。

    大学生智能消费记账系统系统在进行系统中功能模块的划分时,采用层次图来进行表示。层次图具有树形结构,它能使用矩形框来描绘数据信息。顶层代表的数据结构很完整,顶层下面的矩形框表示的数据就是子集数据,当然处于最下面的矩形框就是不能再进行细分的数据元素了,使用层次方框图描述系统功能能让用户一目了然,能够明白系统的功能,以及对应功能板块下面的子功能都可以清楚领会。大学生智能消费记账系统分为管理员和用户两部分操作角色。

    功能介绍:

    系统包含技术:

    后端:springboot,mybatis
    前端:element-ui、js、css等
    开发工具:idea/vscode
    数据库:mysql 5.7
    JDK版本:jdk1.8

    部分截图说明:

    下面是登录页面

    用户管理

    预算类型管理

    预算管理

    收入类型管理

    收入管理

    部分代码:

    1. /**
    2. * 后端列表
    3. */
    4. @RequestMapping("/page")
    5. @IgnoreAuth
    6. public R page(@RequestParam Map<String, Object> params, HttpServletRequest request){
    7. logger.debug("page方法:,,Controller:{},,params:{}",this.getClass().getName(),JSONObject.toJSONString(params));
    8. if(params.get("orderBy")==null || params.get("orderBy")==""){
    9. params.put("orderBy","id");
    10. }
    11. PageUtils page = dictionaryService.queryPage(params);
    12. //字典表数据转换
    13. List<DictionaryView> list =(List<DictionaryView>)page.getList();
    14. for(DictionaryView c:list){
    15. //修改对应字典表字段
    16. dictionaryService.dictionaryConvert(c, request);
    17. }
    18. return R.ok().put("data", page);
    19. }
    20. /**
    21. * 后端详情
    22. */
    23. @RequestMapping("/info/{id}")
    24. public R info(@PathVariable("id") Long id, HttpServletRequest request){
    25. logger.debug("info方法:,,Controller:{},,id:{}",this.getClass().getName(),id);
    26. DictionaryEntity dictionary = dictionaryService.selectById(id);
    27. if(dictionary !=null){
    28. //entity转view
    29. DictionaryView view = new DictionaryView();
    30. BeanUtils.copyProperties( dictionary , view );//把实体数据重构到view中
    31. //修改对应字典表字段
    32. dictionaryService.dictionaryConvert(view, request);
    33. return R.ok().put("data", view);
    34. }else {
    35. return R.error(511,"查不到数据");
    36. }
    37. }
    38. /**
    39. * 后端保存
    40. */
    41. @RequestMapping("/save")
    42. public R save(@RequestBody DictionaryEntity dictionary, HttpServletRequest request){
    43. logger.debug("save方法:,,Controller:{},,dictionary:{}",this.getClass().getName(),dictionary.toString());
    44. String role = String.valueOf(request.getSession().getAttribute("role"));
    45. if(false)
    46. return R.error(511,"永远不会进入");
    47. Wrapper<DictionaryEntity> queryWrapper = new EntityWrapper<DictionaryEntity>()
    48. .eq("dic_code", dictionary.getDicCode())
    49. .eq("index_name", dictionary.getIndexName())
    50. ;
    51. if(dictionary.getDicCode().contains("_erji_types")){
    52. queryWrapper.eq("super_id",dictionary.getSuperId());
    53. }
    54. logger.info("sql语句:"+queryWrapper.getSqlSegment());
    55. DictionaryEntity dictionaryEntity = dictionaryService.selectOne(queryWrapper);
    56. if(dictionaryEntity==null){
    57. dictionary.setCreateTime(new Date());
    58. dictionaryService.insert(dictionary);
    59. //字典表新增数据,把数据再重新查出,放入监听器中
    60. List<DictionaryEntity> dictionaryEntities = dictionaryService.selectList(new EntityWrapper<DictionaryEntity>());
    61. ServletContext servletContext = request.getServletContext();
    62. Map<String, Map<Integer,String>> map = new HashMap<>();
    63. for(DictionaryEntity d :dictionaryEntities){
    64. Map<Integer, String> m = map.get(d.getDicCode());
    65. if(m ==null || m.isEmpty()){
    66. m = new HashMap<>();
    67. }
    68. m.put(d.getCodeIndex(),d.getIndexName());
    69. map.put(d.getDicCode(),m);
    70. }
    71. servletContext.setAttribute("dictionaryMap",map);
    72. return R.ok();
    73. }else {
    74. return R.error(511,"表中有相同数据");
    75. }
    76. }

    以上就是部分功能展示,从整体上来看,本系统功能是十分完整的,界面设计简洁大方,交互友好,数据库设计也很合理,规模适中,代码工整,清晰,适合学习使用。

    好了,今天就到这儿吧,小伙伴们点赞、收藏、评论,一键三连走起呀,下期见~~

  • 相关阅读:
    读《信息传》总结——决定我们未来发展的方法论
    ADG dataguard ALL_LOGFILES,ALL_ROLES
    云开发中关于Container与虚拟机之间的比较
    腾讯云:腾讯自研业务上云,对于腾讯云意味着什么?
    数据结构之二叉查找树Java泛型版
    算法题: 数组topK问题-总结
    万星开源项目强势回归「GitHub 热点速览 v.22.38」
    AOP结合注解实现项目中接口调用情况监控
    基于javaweb的教务信息查询系统(java+ssm+bootstrap+c3p0+mysql)
    数字探秘:用神经网络解密MNIST数据集中的数字!
  • 原文地址:https://blog.csdn.net/mtyedu/article/details/132912676