基于springboot智能鲜花商店销售系统

一、项目介绍

  智能鲜花商店销售系统网站是一个为鲜花销售提供全面、准确、及时智能鲜花商店销售系统的在线平台。它汇聚了各地的鲜花相关信息,帮助鲜花销售更好地规划鲜花体验。
该网站通过丰富的图片形式展示鲜花目的地的美丽风光和独特魅力,让鲜花者提前感受到鲜花的乐趣。同时,它还提供了详细的鲜花攻略和实用建议,帮助鲜花者避免鲜花中的陷阱和误区,确保销售顺利。
本智能鲜花商店销售系统网站使用最新目前比较火热和流行的SpringBoot框架,他可以用来简化Spring应用的初始化搭建以及开发过程。数据库方面选择的是免费、性能服务稳定的MySql数据库。缓存方面使用到的是非关系型数据库Redis。
本智能鲜花商店销售系统网站后台管理员模块使用了能够快速上手和使用的vue前端框架,vue的浏览器兼容性极高,界面也比较美观,其完整的官方文档可以使后端开发人员也能通过vue完成前端的开发。
关键词:智能鲜花商店销售系统;网站管理系统;B/S模式;软件架构

二、开发环境

开发语言:Java
框架:ssm
JDK版本:JDK1.8
服务器:tomcat7
数据库:mysql
数据库工具:Navicat11
开发软件:eclipse/myeclipse/idea
Maven包:Maven
————————————————

三、功能介绍

本系统设计时,确定详细功能,这些功能主要通过需求阶段的调研分析得来的,具体功能模块如下图,如图4-2,4-3所示。

请添加图片描述

图4-2 智能鲜花商店销售系统网站管理员功能结构设计
请添加图片描述

图4-3智能鲜花商店销售系统网站用户功能结构设计

四、核心代码

部分代码:

package com.example.controller;

import cn.hutool.core.util.StrUtil;
import cn.hutool.crypto.SecureUtil;
import com.example.common.Result;
import com.example.common.ResultCode;
import com.example.entity.Caiwu;
import com.example.exception.CustomException;
import com.example.service.CaiwuService;
import com.example.utils.MapWrapperUtils;
import com.example.utils.jwt.JwtUtil;
import com.example.vo.CaiwuVo;
import org.springframework.beans.BeanUtils;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping(value = "/caiwu")
public class CaiwuController {

    @Resource
    private CaiwuService caiwuService;

    @PostMapping
    public Result<Caiwu> add(@RequestBody CaiwuVo caiwu) {
        caiwuService.add(caiwu);
           return Result.success(caiwu);
    }
	
	

    @PostMapping("/deleteList")
    public Result<Caiwu> deleteList(@RequestBody CaiwuVo caiwu) {
        caiwuService.deleteList(caiwu.getList());
        return Result.success();
    }

    @DeleteMapping("/{id}")
    public Result delete(@PathVariable Long id) {
        caiwuService.delete(id);
        return Result.success();
    }

    @PutMapping
    public Result update(@RequestBody CaiwuVo caiwu) {
        caiwuService.update(caiwu);
        return Result.success();
    }

    @GetMapping("/{id}")
    public Result<Caiwu> detail(@PathVariable Integer id) {
        Caiwu caiwu = caiwuService.findById(id);
        return Result.success(caiwu);
    }

    @GetMapping
    public Result<List<Caiwu>> all() {
        return Result.success(caiwuService.list());
    }

    @PostMapping("/page")
    public Result<CaiwuVo> page(@RequestBody CaiwuVo caiwuVo) {
        return Result.success(caiwuService.findPage(caiwuVo));
    }
	    @PostMapping("/login")
    public Result login(@RequestBody Caiwu caiwu, HttpServletRequest request) {
        if (StrUtil.isBlank(caiwu.getZhanghao()) || StrUtil.isBlank(caiwu.getMima())) {
            throw new CustomException(ResultCode.PARAM_LOST_ERROR);
        }
        Caiwu login = caiwuService.login(caiwu);
//        if(!login.getStatus()){
//            return Result.error("1001","状态限制,无法登录系统");
//        }
        if(login != null) {
            HashMap hashMap = new HashMap();
            hashMap.put("user", login);
            Map<String, Object> map = MapWrapperUtils.builder(MapWrapperUtils.KEY_USER_ID,caiwu.getId());
            String token = JwtUtil.creatToken(map);
            hashMap.put("token", token);
            return Result.success(hashMap);
        }else {
            return Result.error();
        }
    }
    @PutMapping("/updatePassword")
    public Result updatePassword(@RequestBody Caiwu info, HttpServletRequest request) {
        Caiwu caiwu = caiwuService.findById(info.getId());
        String oldPassword = SecureUtil.md5(info.getMima());
        if (!oldPassword.equals(caiwu.getMima())) {
            return Result.error(ResultCode.PARAM_PASSWORD_ERROR.code, ResultCode.PARAM_PASSWORD_ERROR.msg);
        }
        info.setMima(SecureUtil.md5(info.getNewPassword()));
        Caiwu caiwu1 = new Caiwu();
        BeanUtils.copyProperties(info, caiwu1);
        caiwuService.update(caiwu1);
        return Result.success();
    }
}

五、效果图

请添加图片描述

请添加图片描述
请添加图片描述
请添加图片描述
请添加图片描述

六、文章目录

目  录

摘 要 1
Abstract 2
第1章 绪论 3
1.1 项目研究的背景 3
1.2开发目的和意义 3
1.3国内外研究现状 4
第2章 系统开发工具 4
2.1 SpringBoot编程语言 4
2.2 B/S模式 5
2.3 MySQL数据库 5
2.4 SpringBoot框架介绍 6
2.5 HTML技术技术 6
2.6 web框架介绍 7
第3章 系统分析 9
3.1 概述 9
3.2 功能需求 9
3.3 非功能性需求 11
3.4 系统特色 12
3.5 可行性研究 12
3.5.1经济上的可行性 12
3.5.2技术上的可行性 12
3.5.3操作的可能性 12
第4章 系统总体设计 13
4.1 系统架构设计 13
4.1.1体系结构 13
4.1.2 系统功能结构设计 13
4.2 系统数据库设计 16
4.2.1 数据库设计概述 16
4.2.2 数据库表的设计 17
第5章 系统功能实现 23
5.1登录模块的实现 23
5.2管理员管理模块 23
5.3用户管理模块 24
5.4鲜花鲜花销售管理管理模块 24
5.5酒店信息管理管理模块 25
5.6鲜花路线管理模块 25
第6章 系统测试 27
6.1 测试定义 27
6.2 测试目的 27
6.3 测试方案 27
6.4 系统分析 29
第7章 总结 30
参考文献 31
致谢 32

  • 18
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

毕业程序员

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值