• 基于SSM+Vue的网上花店系统


    末尾获取源码
    开发语言:Java
    Java开发工具:JDK1.8
    后端框架:SSM
    前端:采用Vue技术开发
    数据库:MySQL5.7和Navicat管理工具结合
    服务器:Tomcat8.5
    开发软件:IDEA / Eclipse
    是否Maven项目:是


    目录

    一、项目简介

    二、论文截图

    三、系统项目截图

    3.1管理员功能实现

    3.2用户功能实现

    四、核心代码

    4.1登录相关

    4.2文件上传

    4.3封装

    4.4sql语句


    一、项目简介

    网络技术和计算机技术发展至今,已经拥有了深厚的理论基础,并在现实中进行了充分运用,尤其是基于计算机运行的软件更是受到各界的关注。加上现在人们已经步入信息时代,所以对于信息的宣传和管理就很关键。因此鲜花销售信息的管理计算机化,系统化是必要的。设计开发网上花店不仅会节约人力和管理成本,还会安全保存庞大的数据量,对于鲜花销售信息的维护和检索也不需要花费很多时间,非常的便利。

    网上花店是在MySQL中建立数据表保存信息,运用SSM+Vue框架和Java语言编写。并按照软件设计开发流程进行设计实现。系统具备友好性且功能完善。管理员登录进入本人后台之后,主要完成花材选择管理,用户管理,鲜花管理,鲜花出入库管理,鲜花订单管理等。用户联系客服咨询问题,查看鲜花,可以收藏,购买,评论鲜花,支付订单,管理个人订单等。

    网上花店在让鲜花销售信息规范化的同时,也能及时通过数据输入的有效性规则检测出错误数据,让数据的录入达到准确性的目的,进而提升网上花店提供的数据的可靠性,让系统数据的错误率降至最低。


    二、论文截图



    三、系统项目截图

    3.1管理员功能实现

    管理员权限中的花材选择管理,其运行效果见下图。花材选择管理需要管理员登记花材,删除,修改花材,查询花材等。

    管理员权限中的鲜花信息管理,其运行效果见下图。管理员在本模块登记鲜花信息,修改,删除鲜花信息,对鲜花进行出入库管理,查看鲜花评论等。

     

    管理员权限中的鲜花入库管理,其运行效果见下图。已经入库的鲜花信息,管理员可以管理,也能查看,其中的管理包括对入库的鲜花修改,删除,查询等。

     

    管理员权限中的鲜花出库管理,其运行效果见下图。已经出库的鲜花信息,管理员可以管理,也能查看,其中的管理包括对出库的鲜花修改,删除,查询等。

     

    管理员权限中的已完成订单,其运行效果见下图。已完成订单只是订单管理的一部分功能,订单管理包括了已支付订单,未支付订单,取消的订单,已发货订单,已退款订单的管理。在已完成订单页面上,管理员能够直接查看订单详细,查询订单。

     

    3.2用户功能实现

    用户权限中的联系客服,其运行效果见下图。用户在操作过程中,可以联系客服咨询鲜花相关信息,客服会指引用户购买鲜花,解答用户疑问。

    用户权限中的鲜花信息,其运行效果见下图。用户在本页面可以操作的功能比较多,可以购买,收藏,评论鲜花,可以添加鲜花至购物车。

     

    用户权限中的购买鲜花,其运行效果见下图。用户直接购买鲜花,就会进入下面的操作页面,用户选择地址,进行支付即可。

     

    用户权限中的我的订单,其运行效果见下图。用户已支付订单,可以在我的订单模块中,在已支付栏下面查看订单,也能进行订单退款。

     


    四、核心代码

    4.1登录相关

    1. package com.controller;
    2. import java.util.Arrays;
    3. import java.util.Calendar;
    4. import java.util.Date;
    5. import java.util.Map;
    6. import javax.servlet.http.HttpServletRequest;
    7. import org.springframework.beans.factory.annotation.Autowired;
    8. import org.springframework.stereotype.Controller;
    9. import org.springframework.web.bind.annotation.GetMapping;
    10. import org.springframework.web.bind.annotation.PathVariable;
    11. import org.springframework.web.bind.annotation.PostMapping;
    12. import org.springframework.web.bind.annotation.RequestBody;
    13. import org.springframework.web.bind.annotation.RequestMapping;
    14. import org.springframework.web.bind.annotation.RequestParam;
    15. import org.springframework.web.bind.annotation.ResponseBody;
    16. import org.springframework.web.bind.annotation.RestController;
    17. import com.annotation.IgnoreAuth;
    18. import com.baomidou.mybatisplus.mapper.EntityWrapper;
    19. import com.entity.TokenEntity;
    20. import com.entity.UserEntity;
    21. import com.service.TokenService;
    22. import com.service.UserService;
    23. import com.utils.CommonUtil;
    24. import com.utils.MD5Util;
    25. import com.utils.MPUtil;
    26. import com.utils.PageUtils;
    27. import com.utils.R;
    28. import com.utils.ValidatorUtils;
    29. /**
    30. * 登录相关
    31. */
    32. @RequestMapping("users")
    33. @RestController
    34. public class UserController{
    35. @Autowired
    36. private UserService userService;
    37. @Autowired
    38. private TokenService tokenService;
    39. /**
    40. * 登录
    41. */
    42. @IgnoreAuth
    43. @PostMapping(value = "/login")
    44. public R login(String username, String password, String captcha, HttpServletRequest request) {
    45. UserEntity user = userService.selectOne(new EntityWrapper().eq("username", username));
    46. if(user==null || !user.getPassword().equals(password)) {
    47. return R.error("账号或密码不正确");
    48. }
    49. String token = tokenService.generateToken(user.getId(),username, "users", user.getRole());
    50. return R.ok().put("token", token);
    51. }
    52. /**
    53. * 注册
    54. */
    55. @IgnoreAuth
    56. @PostMapping(value = "/register")
    57. public R register(@RequestBody UserEntity user){
    58. // ValidatorUtils.validateEntity(user);
    59. if(userService.selectOne(new EntityWrapper().eq("username", user.getUsername())) !=null) {
    60. return R.error("用户已存在");
    61. }
    62. userService.insert(user);
    63. return R.ok();
    64. }
    65. /**
    66. * 退出
    67. */
    68. @GetMapping(value = "logout")
    69. public R logout(HttpServletRequest request) {
    70. request.getSession().invalidate();
    71. return R.ok("退出成功");
    72. }
    73. /**
    74. * 密码重置
    75. */
    76. @IgnoreAuth
    77. @RequestMapping(value = "/resetPass")
    78. public R resetPass(String username, HttpServletRequest request){
    79. UserEntity user = userService.selectOne(new EntityWrapper().eq("username", username));
    80. if(user==null) {
    81. return R.error("账号不存在");
    82. }
    83. user.setPassword("123456");
    84. userService.update(user,null);
    85. return R.ok("密码已重置为:123456");
    86. }
    87. /**
    88. * 列表
    89. */
    90. @RequestMapping("/page")
    91. public R page(@RequestParam Map params,UserEntity user){
    92. EntityWrapper ew = new EntityWrapper();
    93. PageUtils page = userService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.allLike(ew, user), params), params));
    94. return R.ok().put("data", page);
    95. }
    96. /**
    97. * 列表
    98. */
    99. @RequestMapping("/list")
    100. public R list( UserEntity user){
    101. EntityWrapper ew = new EntityWrapper();
    102. ew.allEq(MPUtil.allEQMapPre( user, "user"));
    103. return R.ok().put("data", userService.selectListView(ew));
    104. }
    105. /**
    106. * 信息
    107. */
    108. @RequestMapping("/info/{id}")
    109. public R info(@PathVariable("id") String id){
    110. UserEntity user = userService.selectById(id);
    111. return R.ok().put("data", user);
    112. }
    113. /**
    114. * 获取用户的session用户信息
    115. */
    116. @RequestMapping("/session")
    117. public R getCurrUser(HttpServletRequest request){
    118. Long id = (Long)request.getSession().getAttribute("userId");
    119. UserEntity user = userService.selectById(id);
    120. return R.ok().put("data", user);
    121. }
    122. /**
    123. * 保存
    124. */
    125. @PostMapping("/save")
    126. public R save(@RequestBody UserEntity user){
    127. // ValidatorUtils.validateEntity(user);
    128. if(userService.selectOne(new EntityWrapper().eq("username", user.getUsername())) !=null) {
    129. return R.error("用户已存在");
    130. }
    131. userService.insert(user);
    132. return R.ok();
    133. }
    134. /**
    135. * 修改
    136. */
    137. @RequestMapping("/update")
    138. public R update(@RequestBody UserEntity user){
    139. // ValidatorUtils.validateEntity(user);
    140. userService.updateById(user);//全部更新
    141. return R.ok();
    142. }
    143. /**
    144. * 删除
    145. */
    146. @RequestMapping("/delete")
    147. public R delete(@RequestBody Long[] ids){
    148. userService.deleteBatchIds(Arrays.asList(ids));
    149. return R.ok();
    150. }
    151. }

    4.2文件上传

    1. package com.controller;
    2. import java.io.File;
    3. import java.io.FileNotFoundException;
    4. import java.io.IOException;
    5. import java.util.Arrays;
    6. import java.util.Date;
    7. import java.util.HashMap;
    8. import java.util.List;
    9. import java.util.Map;
    10. import java.util.Random;
    11. import java.util.UUID;
    12. import org.apache.commons.io.FileUtils;
    13. import org.apache.commons.lang3.StringUtils;
    14. import org.springframework.beans.factory.annotation.Autowired;
    15. import org.springframework.http.HttpHeaders;
    16. import org.springframework.http.HttpStatus;
    17. import org.springframework.http.MediaType;
    18. import org.springframework.http.ResponseEntity;
    19. import org.springframework.util.ResourceUtils;
    20. import org.springframework.web.bind.annotation.PathVariable;
    21. import org.springframework.web.bind.annotation.RequestBody;
    22. import org.springframework.web.bind.annotation.RequestMapping;
    23. import org.springframework.web.bind.annotation.RequestParam;
    24. import org.springframework.web.bind.annotation.RestController;
    25. import org.springframework.web.multipart.MultipartFile;
    26. import com.annotation.IgnoreAuth;
    27. import com.baomidou.mybatisplus.mapper.EntityWrapper;
    28. import com.entity.ConfigEntity;
    29. import com.entity.EIException;
    30. import com.service.ConfigService;
    31. import com.utils.R;
    32. /**
    33. * 上传文件映射表
    34. */
    35. @RestController
    36. @RequestMapping("file")
    37. @SuppressWarnings({"unchecked","rawtypes"})
    38. public class FileController{
    39. @Autowired
    40. private ConfigService configService;
    41. /**
    42. * 上传文件
    43. */
    44. @RequestMapping("/upload")
    45. public R upload(@RequestParam("file") MultipartFile file,String type) throws Exception {
    46. if (file.isEmpty()) {
    47. throw new EIException("上传文件不能为空");
    48. }
    49. String fileExt = file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(".")+1);
    50. File path = new File(ResourceUtils.getURL("classpath:static").getPath());
    51. if(!path.exists()) {
    52. path = new File("");
    53. }
    54. File upload = new File(path.getAbsolutePath(),"/upload/");
    55. if(!upload.exists()) {
    56. upload.mkdirs();
    57. }
    58. String fileName = new Date().getTime()+"."+fileExt;
    59. File dest = new File(upload.getAbsolutePath()+"/"+fileName);
    60. file.transferTo(dest);
    61. FileUtils.copyFile(dest, new File("C:\\Users\\Desktop\\jiadian\\springbootl7own\\src\\main\\resources\\static\\upload"+"/"+fileName));
    62. if(StringUtils.isNotBlank(type) && type.equals("1")) {
    63. ConfigEntity configEntity = configService.selectOne(new EntityWrapper().eq("name", "faceFile"));
    64. if(configEntity==null) {
    65. configEntity = new ConfigEntity();
    66. configEntity.setName("faceFile");
    67. configEntity.setValue(fileName);
    68. } else {
    69. configEntity.setValue(fileName);
    70. }
    71. configService.insertOrUpdate(configEntity);
    72. }
    73. return R.ok().put("file", fileName);
    74. }
    75. /**
    76. * 下载文件
    77. */
    78. @IgnoreAuth
    79. @RequestMapping("/download")
    80. public ResponseEntity<byte[]> download(@RequestParam String fileName) {
    81. try {
    82. File path = new File(ResourceUtils.getURL("classpath:static").getPath());
    83. if(!path.exists()) {
    84. path = new File("");
    85. }
    86. File upload = new File(path.getAbsolutePath(),"/upload/");
    87. if(!upload.exists()) {
    88. upload.mkdirs();
    89. }
    90. File file = new File(upload.getAbsolutePath()+"/"+fileName);
    91. if(file.exists()){
    92. /*if(!fileService.canRead(file, SessionManager.getSessionUser())){
    93. getResponse().sendError(403);
    94. }*/
    95. HttpHeaders headers = new HttpHeaders();
    96. headers.setContentType(MediaType.APPLICATION_OCTET_STREAM);
    97. headers.setContentDispositionFormData("attachment", fileName);
    98. return new ResponseEntity<byte[]>(FileUtils.readFileToByteArray(file),headers, HttpStatus.CREATED);
    99. }
    100. } catch (IOException e) {
    101. e.printStackTrace();
    102. }
    103. return new ResponseEntity<byte[]>(HttpStatus.INTERNAL_SERVER_ERROR);
    104. }
    105. }

    4.3封装

    1. package com.utils;
    2. import java.util.HashMap;
    3. import java.util.Map;
    4. /**
    5. * 返回数据
    6. */
    7. public class R extends HashMap {
    8. private static final long serialVersionUID = 1L;
    9. public R() {
    10. put("code", 0);
    11. }
    12. public static R error() {
    13. return error(500, "未知异常,请联系管理员");
    14. }
    15. public static R error(String msg) {
    16. return error(500, msg);
    17. }
    18. public static R error(int code, String msg) {
    19. R r = new R();
    20. r.put("code", code);
    21. r.put("msg", msg);
    22. return r;
    23. }
    24. public static R ok(String msg) {
    25. R r = new R();
    26. r.put("msg", msg);
    27. return r;
    28. }
    29. public static R ok(Map map) {
    30. R r = new R();
    31. r.putAll(map);
    32. return r;
    33. }
    34. public static R ok() {
    35. return new R();
    36. }
    37. public R put(String key, Object value) {
    38. super.put(key, value);
    39. return this;
    40. }
    41. }

    4.4sql语句

    1. /*
    2. SQLyog Ultimate v11.3 (64 bit)
    3. MySQL - 5.7.32-log : Database - ssm5n2mk
    4. *********************************************************************
    5. */
    6. /*!40101 SET NAMES utf8 */;
    7. /*!40101 SET SQL_MODE=''*/;
    8. /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
    9. /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
    10. /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
    11. /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
    12. CREATE DATABASE /*!32312 IF NOT EXISTS*/`ssm5n2mk` /*!40100 DEFAULT CHARACTER SET utf8 */;
    13. USE `ssm5n2mk`;
    14. /*Table structure for table `address` */
    15. DROP TABLE IF EXISTS `address`;
    16. CREATE TABLE `address` (
    17. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
    18. `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
    19. `userid` bigint(20) NOT NULL COMMENT '用户id',
    20. `address` varchar(200) NOT NULL COMMENT '地址',
    21. `name` varchar(200) NOT NULL COMMENT '收货人',
    22. `phone` varchar(200) NOT NULL COMMENT '电话',
    23. `isdefault` varchar(200) NOT NULL COMMENT '是否默认地址[是/否]',
    24. PRIMARY KEY (`id`)
    25. ) ENGINE=InnoDB AUTO_INCREMENT=1611546786897 DEFAULT CHARSET=utf8 COMMENT='地址';
    26. /*Data for the table `address` */
    27. insert into `address`(`id`,`addtime`,`userid`,`address`,`name`,`phone`,`isdefault`) values (1,'2021-01-25 11:42:19',1,'宇宙银河系金星1号','金某','13823888881','是'),(2,'2021-01-25 11:42:19',2,'宇宙银河系木星1号','木某','13823888882','是'),(3,'2021-01-25 11:42:19',3,'宇宙银河系水星1号','水某','13823888883','是'),(4,'2021-01-25 11:42:19',4,'宇宙银河系火星1号','火某','13823888884','是'),(5,'2021-01-25 11:42:19',5,'宇宙银河系土星1号','土某','13823888885','是'),(6,'2021-01-25 11:42:19',6,'宇宙银河系月球1号','月某','13823888886','是'),(1611546786896,'2021-01-25 11:53:06',1611546730956,'广东省梅州市梅县区新城街道丽景湾(嘉应西二巷)','1','12312312312','是');
    28. /*Table structure for table `cart` */
    29. DROP TABLE IF EXISTS `cart`;
    30. CREATE TABLE `cart` (
    31. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
    32. `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
    33. `tablename` varchar(200) DEFAULT 'xianhuaxinxi' COMMENT '商品表名',
    34. `userid` bigint(20) NOT NULL COMMENT '用户id',
    35. `goodid` bigint(20) NOT NULL COMMENT '商品id',
    36. `goodname` varchar(200) DEFAULT NULL COMMENT '商品名称',
    37. `picture` varchar(200) DEFAULT NULL COMMENT '图片',
    38. `buynumber` int(11) NOT NULL COMMENT '购买数量',
    39. `price` float DEFAULT NULL COMMENT '单价',
    40. `discountprice` float DEFAULT NULL COMMENT '会员价',
    41. PRIMARY KEY (`id`)
    42. ) ENGINE=InnoDB AUTO_INCREMENT=1611546903462 DEFAULT CHARSET=utf8 COMMENT='购物车表';
    43. /*Data for the table `cart` */
    44. /*Table structure for table `chat` */
    45. DROP TABLE IF EXISTS `chat`;
    46. CREATE TABLE `chat` (
    47. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
    48. `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
    49. `userid` bigint(20) NOT NULL COMMENT '用户id',
    50. `adminid` bigint(20) DEFAULT NULL COMMENT '管理员id',
    51. `ask` longtext COMMENT '提问',
    52. `reply` longtext COMMENT '回复',
    53. `isreply` int(11) DEFAULT NULL COMMENT '是否回复',
    54. PRIMARY KEY (`id`)
    55. ) ENGINE=InnoDB AUTO_INCREMENT=1611547021005 DEFAULT CHARSET=utf8 COMMENT='客服聊天表';
    56. /*Data for the table `chat` */
    57. insert into `chat`(`id`,`addtime`,`userid`,`adminid`,`ask`,`reply`,`isreply`) values (61,'2021-01-25 11:42:19',1,1,'提问1','回复1',1),(62,'2021-01-25 11:42:19',2,2,'提问2','回复2',2),(63,'2021-01-25 11:42:19',3,3,'提问3','回复3',3),(64,'2021-01-25 11:42:19',4,4,'提问4','回复4',4),(65,'2021-01-25 11:42:19',5,5,'提问5','回复5',5),(66,'2021-01-25 11:42:19',6,6,'提问6','回复6',6),(1611546951493,'2021-01-25 11:55:51',1611546730956,NULL,'在吗',NULL,0),(1611546961573,'2021-01-25 11:56:01',1611546730956,NULL,'优惠券怎么领',NULL,0),(1611547021004,'2021-01-25 11:57:00',1611546730956,1,NULL,'HJRTRY',NULL);
    58. /*Table structure for table `config` */
    59. DROP TABLE IF EXISTS `config`;
    60. CREATE TABLE `config` (
    61. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
    62. `name` varchar(100) NOT NULL COMMENT '配置参数名称',
    63. `value` varchar(100) DEFAULT NULL COMMENT '配置参数值',
    64. PRIMARY KEY (`id`)
    65. ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COMMENT='配置文件';
    66. /*Data for the table `config` */
    67. insert into `config`(`id`,`name`,`value`) values (1,'picture1','http://localhost:8080/ssm5n2mk/upload/1611546428898.jpg'),(2,'picture2','http://localhost:8080/ssm5n2mk/upload/1611546438599.jpg'),(3,'picture3','http://localhost:8080/ssm5n2mk/upload/1611546701884.jpg'),(6,'homepage',NULL);
    68. /*Table structure for table `discussxianhuaxinxi` */
    69. DROP TABLE IF EXISTS `discussxianhuaxinxi`;
    70. CREATE TABLE `discussxianhuaxinxi` (
    71. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
    72. `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
    73. `refid` bigint(20) NOT NULL COMMENT '关联表id',
    74. `userid` bigint(20) NOT NULL COMMENT '用户id',
    75. `content` longtext NOT NULL COMMENT '评论内容',
    76. `reply` longtext COMMENT '回复内容',
    77. PRIMARY KEY (`id`)
    78. ) ENGINE=InnoDB AUTO_INCREMENT=1611547054321 DEFAULT CHARSET=utf8 COMMENT='鲜花信息评论表';
    79. /*Data for the table `discussxianhuaxinxi` */
    80. insert into `discussxianhuaxinxi`(`id`,`addtime`,`refid`,`userid`,`content`,`reply`) values (121,'2021-01-25 11:42:20',1,1,'评论内容1','回复内容1'),(122,'2021-01-25 11:42:20',2,2,'评论内容2','回复内容2'),(123,'2021-01-25 11:42:20',3,3,'评论内容3','回复内容3'),(124,'2021-01-25 11:42:20',4,4,'评论内容4','回复内容4'),(125,'2021-01-25 11:42:20',5,5,'评论内容5','回复内容5'),(126,'2021-01-25 11:42:20',6,6,'评论内容6','回复内容6'),(1611547054320,'2021-01-25 11:57:34',1611546568410,1611546730956,'很不错的花',NULL);
    81. /*Table structure for table `huacaixuanze` */
    82. DROP TABLE IF EXISTS `huacaixuanze`;
    83. CREATE TABLE `huacaixuanze` (
    84. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
    85. `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
    86. `huacaixuanze` varchar(200) NOT NULL COMMENT '花材选择',
    87. PRIMARY KEY (`id`),
    88. UNIQUE KEY `huacaixuanze` (`huacaixuanze`)
    89. ) ENGINE=InnoDB AUTO_INCREMENT=1611546509818 DEFAULT CHARSET=utf8 COMMENT='花材选择';
    90. /*Data for the table `huacaixuanze` */
    91. insert into `huacaixuanze`(`id`,`addtime`,`huacaixuanze`) values (21,'2021-01-25 11:42:19','花材选择1'),(22,'2021-01-25 11:42:19','花材选择2'),(23,'2021-01-25 11:42:19','花材选择3'),(24,'2021-01-25 11:42:19','花材选择4'),(26,'2021-01-25 11:42:19','蓝色妖姬'),(1611546509817,'2021-01-25 11:48:28','白玫瑰');
    92. /*Table structure for table `news` */
    93. DROP TABLE IF EXISTS `news`;
    94. CREATE TABLE `news` (
    95. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
    96. `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
    97. `title` varchar(200) NOT NULL COMMENT '标题',
    98. `introduction` longtext COMMENT '简介',
    99. `picture` varchar(200) NOT NULL COMMENT '图片',
    100. `content` longtext NOT NULL COMMENT '内容',
    101. PRIMARY KEY (`id`)
    102. ) ENGINE=InnoDB AUTO_INCREMENT=1611546692085 DEFAULT CHARSET=utf8 COMMENT='鲜花资讯';
    103. /*Data for the table `news` */
    104. insert into `news`(`id`,`addtime`,`title`,`introduction`,`picture`,`content`) values (111,'2021-01-25 11:42:19','标题1','简介1','http://localhost:8080/ssm5n2mk/upload/1611546379920.jpg','

      内容1

      '
      ),(112,'2021-01-25 11:42:19','标题2','简介2','http://localhost:8080/ssm5n2mk/upload/1611546390190.jpg','

      内容2

      '
      ),(113,'2021-01-25 11:42:19','标题3','简介3','http://localhost:8080/ssm5n2mk/upload/news_picture3.jpg','内容3'),(114,'2021-01-25 11:42:19','标题4','简介4','http://localhost:8080/ssm5n2mk/upload/1611546402088.jpg','

      内容4

      '
      ),(115,'2021-01-25 11:42:19','标题5','简介5','http://localhost:8080/ssm5n2mk/upload/1611546418617.jpg','

      内容5

      '
      ),(116,'2021-01-25 11:42:19','标题6','简介6','http://localhost:8080/ssm5n2mk/upload/news_picture6.jpg','内容6'),(1611546692084,'2021-01-25 11:51:31','优惠资讯','优惠活动','http://localhost:8080/ssm5n2mk/upload/1611546678641.jpg','

      活动内容

      '
      );
    105. /*Table structure for table `orders` */
    106. DROP TABLE IF EXISTS `orders`;
    107. CREATE TABLE `orders` (
    108. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
    109. `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
    110. `orderid` varchar(200) NOT NULL COMMENT '订单编号',
    111. `tablename` varchar(200) DEFAULT 'xianhuaxinxi' COMMENT '商品表名',
    112. `userid` bigint(20) NOT NULL COMMENT '用户id',
    113. `goodid` bigint(20) NOT NULL COMMENT '商品id',
    114. `goodname` varchar(200) DEFAULT NULL COMMENT '商品名称',
    115. `picture` varchar(200) DEFAULT NULL COMMENT '商品图片',
    116. `buynumber` int(11) NOT NULL COMMENT '购买数量',
    117. `price` float NOT NULL DEFAULT '0' COMMENT '价格/积分',
    118. `discountprice` float DEFAULT '0' COMMENT '折扣价格',
    119. `total` float NOT NULL DEFAULT '0' COMMENT '总价格/总积分',
    120. `discounttotal` float DEFAULT '0' COMMENT '折扣总价格',
    121. `type` int(11) DEFAULT '1' COMMENT '支付类型',
    122. `status` varchar(200) DEFAULT NULL COMMENT '状态',
    123. `address` varchar(200) DEFAULT NULL COMMENT '地址',
    124. PRIMARY KEY (`id`),
    125. UNIQUE KEY `orderid` (`orderid`)
    126. ) ENGINE=InnoDB AUTO_INCREMENT=1611546932996 DEFAULT CHARSET=utf8 COMMENT='订单';
    127. /*Data for the table `orders` */
    128. insert into `orders`(`id`,`addtime`,`orderid`,`tablename`,`userid`,`goodid`,`goodname`,`picture`,`buynumber`,`price`,`discountprice`,`total`,`discounttotal`,`type`,`status`,`address`) values (1611546932995,'2021-01-25 11:55:32','20211251155275163926','xianhuaxinxi',1611546730956,1611546568410,'白玫瑰花束','http://localhost:8080/ssm5n2mk/upload/1611546536278.jpg',1,520,520,520,520,1,'已完成','广东省梅州市梅县区新城街道丽景湾(嘉应西二巷)');
    129. /*Table structure for table `storeup` */
    130. DROP TABLE IF EXISTS `storeup`;
    131. CREATE TABLE `storeup` (
    132. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
    133. `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
    134. `userid` bigint(20) NOT NULL COMMENT '用户id',
    135. `refid` bigint(20) DEFAULT NULL COMMENT '收藏id',
    136. `tablename` varchar(200) DEFAULT NULL COMMENT '表名',
    137. `name` varchar(200) NOT NULL COMMENT '收藏名称',
    138. `picture` varchar(200) NOT NULL COMMENT '收藏图片',
    139. PRIMARY KEY (`id`)
    140. ) ENGINE=InnoDB AUTO_INCREMENT=1611546915119 DEFAULT CHARSET=utf8 COMMENT='收藏表';
    141. /*Data for the table `storeup` */
    142. insert into `storeup`(`id`,`addtime`,`userid`,`refid`,`tablename`,`name`,`picture`) values (1611546871926,'2021-01-25 11:54:31',1611546730956,1611546568410,'xianhuaxinxi','白玫瑰花束','http://localhost:8080/ssm5n2mk/upload/1611546536278.jpg'),(1611546915118,'2021-01-25 11:55:14',1611546730956,36,'xianhuaxinxi','鲜花名称6','http://localhost:8080/ssm5n2mk/upload/1611546364108.jpg');
    143. /*Table structure for table `token` */
    144. DROP TABLE IF EXISTS `token`;
    145. CREATE TABLE `token` (
    146. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
    147. `userid` bigint(20) NOT NULL COMMENT '用户id',
    148. `username` varchar(100) NOT NULL COMMENT '用户名',
    149. `tablename` varchar(100) DEFAULT NULL COMMENT '表名',
    150. `role` varchar(100) DEFAULT NULL COMMENT '角色',
    151. `token` varchar(200) NOT NULL COMMENT '密码',
    152. `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',
    153. `expiratedtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '过期时间',
    154. PRIMARY KEY (`id`)
    155. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='token表';
    156. /*Data for the table `token` */
    157. insert into `token`(`id`,`userid`,`username`,`tablename`,`role`,`token`,`addtime`,`expiratedtime`) values (1,1,'abo','users','管理员','28d1e6lymklwwdglv7r3rgckkormj6c2','2021-01-25 11:44:06','2021-01-25 12:56:13'),(2,1611546730956,'1','yonghu','用户','ccbp71gdyn9y2unb0yj8338zspj3duqk','2021-01-25 11:52:16','2021-01-25 12:57:10');
    158. /*Table structure for table `users` */
    159. DROP TABLE IF EXISTS `users`;
    160. CREATE TABLE `users` (
    161. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
    162. `username` varchar(100) NOT NULL COMMENT '用户名',
    163. `password` varchar(100) NOT NULL COMMENT '密码',
    164. `role` varchar(100) DEFAULT '管理员' COMMENT '角色',
    165. `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',
    166. PRIMARY KEY (`id`)
    167. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='用户表';
    168. /*Data for the table `users` */
    169. insert into `users`(`id`,`username`,`password`,`role`,`addtime`) values (1,'abo','aboo','管理员','2021-01-25 11:42:20');
    170. /*Table structure for table `xianhuachuku` */
    171. DROP TABLE IF EXISTS `xianhuachuku`;
    172. CREATE TABLE `xianhuachuku` (
    173. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
    174. `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
    175. `xianhuamingcheng` varchar(200) DEFAULT NULL COMMENT '鲜花名称',
    176. `huacaixuanze` varchar(200) DEFAULT NULL COMMENT '花材选择',
    177. `shuliang` int(11) DEFAULT NULL COMMENT '数量',
    178. `dengjishijian` date DEFAULT NULL COMMENT '登记时间',
    179. `beizhu` varchar(200) DEFAULT NULL COMMENT '备注',
    180. PRIMARY KEY (`id`)
    181. ) ENGINE=InnoDB AUTO_INCREMENT=1611546996676 DEFAULT CHARSET=utf8 COMMENT='鲜花出库';
    182. /*Data for the table `xianhuachuku` */
    183. insert into `xianhuachuku`(`id`,`addtime`,`xianhuamingcheng`,`huacaixuanze`,`shuliang`,`dengjishijian`,`beizhu`) values (51,'2021-01-25 11:42:19','鲜花名称1','花材选择1',1,'2021-01-25','备注1'),(52,'2021-01-25 11:42:19','鲜花名称2','花材选择2',2,'2021-01-25','备注2'),(53,'2021-01-25 11:42:19','鲜花名称3','花材选择3',3,'2021-01-25','备注3'),(54,'2021-01-25 11:42:19','鲜花名称4','花材选择4',4,'2021-01-25','备注4'),(55,'2021-01-25 11:42:19','鲜花名称5','花材选择5',5,'2021-01-25','备注5'),(56,'2021-01-25 11:42:19','鲜花名称6','花材选择6',6,'2021-01-25','备注6'),(1611546590764,'2021-01-25 11:49:50','白玫瑰花束','白玫瑰',2,'2021-01-25','销售出库gfr'),(1611546996675,'2021-01-25 11:56:36','白玫瑰花束','白玫瑰',1,'2021-01-30','');
    184. /*Table structure for table `xianhuaruku` */
    185. DROP TABLE IF EXISTS `xianhuaruku`;
    186. CREATE TABLE `xianhuaruku` (
    187. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
    188. `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
    189. `xianhuamingcheng` varchar(200) DEFAULT NULL COMMENT '鲜花名称',
    190. `huacaixuanze` varchar(200) DEFAULT NULL COMMENT '花材选择',
    191. `shuliang` int(11) DEFAULT NULL COMMENT '数量',
    192. `dengjishijian` date DEFAULT NULL COMMENT '登记时间',
    193. `beizhu` varchar(200) DEFAULT NULL COMMENT '备注',
    194. PRIMARY KEY (`id`)
    195. ) ENGINE=InnoDB AUTO_INCREMENT=1611546579672 DEFAULT CHARSET=utf8 COMMENT='鲜花入库';
    196. /*Data for the table `xianhuaruku` */
    197. insert into `xianhuaruku`(`id`,`addtime`,`xianhuamingcheng`,`huacaixuanze`,`shuliang`,`dengjishijian`,`beizhu`) values (41,'2021-01-25 11:42:19','鲜花名称1','花材选择1',1,'2021-01-25','备注1'),(42,'2021-01-25 11:42:19','鲜花名称2','花材选择2',2,'2021-01-25','备注2'),(43,'2021-01-25 11:42:19','鲜花名称3','花材选择3',3,'2021-01-25','备注3'),(44,'2021-01-25 11:42:19','鲜花名称4','花材选择4',4,'2021-01-25','备注4'),(45,'2021-01-25 11:42:19','鲜花名称5','花材选择5',5,'2021-01-25','备注5'),(46,'2021-01-25 11:42:19','鲜花名称6','花材选择6',6,'2021-01-25','备注6'),(1611546579671,'2021-01-25 11:49:38','白玫瑰花束','白玫瑰',50,'2021-01-25','');
    198. /*Table structure for table `xianhuaxinxi` */
    199. DROP TABLE IF EXISTS `xianhuaxinxi`;
    200. CREATE TABLE `xianhuaxinxi` (
    201. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
    202. `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
    203. `xianhuamingcheng` varchar(200) NOT NULL COMMENT '鲜花名称',
    204. `huacaixuanze` varchar(200) NOT NULL COMMENT '花材选择',
    205. `tupian` varchar(200) DEFAULT NULL COMMENT '图片',
    206. `cailiao` varchar(200) DEFAULT NULL COMMENT '材料',
    207. `huayu` varchar(200) DEFAULT NULL COMMENT '花语',
    208. `xianhuayongtu` varchar(200) DEFAULT NULL COMMENT '鲜花用途',
    209. `zengsongduixiang` varchar(200) DEFAULT NULL COMMENT '赠送对象',
    210. `shuliang` int(11) DEFAULT NULL COMMENT '数量',
    211. `xianhuaxiangqing` longtext COMMENT '鲜花详情',
    212. `clicktime` datetime DEFAULT NULL COMMENT '最近点击时间',
    213. `clicknum` int(11) DEFAULT '0' COMMENT '点击次数',
    214. `price` float NOT NULL COMMENT '价格',
    215. PRIMARY KEY (`id`)
    216. ) ENGINE=InnoDB AUTO_INCREMENT=1611546568411 DEFAULT CHARSET=utf8 COMMENT='鲜花信息';
    217. /*Data for the table `xianhuaxinxi` */
    218. insert into `xianhuaxinxi`(`id`,`addtime`,`xianhuamingcheng`,`huacaixuanze`,`tupian`,`cailiao`,`huayu`,`xianhuayongtu`,`zengsongduixiang`,`shuliang`,`xianhuaxiangqing`,`clicktime`,`clicknum`,`price`) values (31,'2021-01-25 11:42:19','鲜花名称1','花材选择1','http://localhost:8080/ssm5n2mk/upload/xianhuaxinxi_tupian1.jpg','材料1','花语1','爱情','恋人',1,'鲜花详情1','2021-01-25 11:44:11',2,99.9),(32,'2021-01-25 11:42:19','鲜花名称2','花材选择2','http://localhost:8080/ssm5n2mk/upload/1611546319379.jpg','材料2','花语2','爱情','恋人',2,'

      鲜花详情2

      '
      ,'2021-01-25 11:47:40',4,99.9),(33,'2021-01-25 11:42:19','鲜花名称3','花材选择3','http://localhost:8080/ssm5n2mk/upload/1611546329249.jpg','材料3','花语3','爱情','恋人',3,'

      鲜花详情3

      '
      ,'2021-01-25 11:45:23',4,99.9),(34,'2021-01-25 11:42:19','鲜花名称4','花材选择4','http://localhost:8080/ssm5n2mk/upload/1611546340405.jpg','材料4','花语4','爱情','恋人',4,'

      鲜花详情4

      '
      ,'2021-01-25 11:45:34',5,99.9),(35,'2021-01-25 11:42:19','鲜花名称5','花材选择5','http://localhost:8080/ssm5n2mk/upload/1611546351657.jpg','材料5','花语5','爱情','恋人',5,'

      鲜花详情5

      '
      ,'2021-01-25 11:53:47',10,99.9),(36,'2021-01-25 11:42:19','鲜花名称6','花材选择6','http://localhost:8080/ssm5n2mk/upload/1611546364108.jpg','材料6','花语6','爱情','恋人',6,'

      鲜花详情6

      '
      ,'2021-01-25 11:55:13',9,99.9),(1611546568410,'2021-01-25 11:49:28','白玫瑰花束','白玫瑰','http://localhost:8080/ssm5n2mk/upload/1611546536278.jpg','白玫瑰33支,尤加利点缀','相恋一生','爱情','恋人',147,'

      鲜花详情

      '
      ,'2021-01-25 13:14:48',6,520);
    219. /*Table structure for table `yonghu` */
    220. DROP TABLE IF EXISTS `yonghu`;
    221. CREATE TABLE `yonghu` (
    222. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
    223. `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
    224. `yonghuming` varchar(200) NOT NULL COMMENT '用户名',
    225. `mima` varchar(200) NOT NULL COMMENT '密码',
    226. `xingming` varchar(200) DEFAULT NULL COMMENT '姓名',
    227. `xingbie` varchar(200) DEFAULT NULL COMMENT '性别',
    228. `touxiang` varchar(200) DEFAULT NULL COMMENT '头像',
    229. `lianxidianhua` varchar(200) DEFAULT NULL COMMENT '联系电话',
    230. `dizhi` varchar(200) DEFAULT NULL COMMENT '地址',
    231. `money` float DEFAULT '0' COMMENT '余额',
    232. PRIMARY KEY (`id`),
    233. UNIQUE KEY `yonghuming` (`yonghuming`)
    234. ) ENGINE=InnoDB AUTO_INCREMENT=1611546730957 DEFAULT CHARSET=utf8 COMMENT='用户';
    235. /*Data for the table `yonghu` */
    236. insert into `yonghu`(`id`,`addtime`,`yonghuming`,`mima`,`xingming`,`xingbie`,`touxiang`,`lianxidianhua`,`dizhi`,`money`) values (11,'2021-01-25 11:42:19','用户1','123456','姓名1','男','http://localhost:8080/ssm5n2mk/upload/yonghu_touxiang1.jpg','13823888881','地址1',100),(12,'2021-01-25 11:42:19','用户2','123456','姓名2','男','http://localhost:8080/ssm5n2mk/upload/yonghu_touxiang2.jpg','13823888882','地址2',100),(13,'2021-01-25 11:42:19','用户3','123456','姓名3','男','http://localhost:8080/ssm5n2mk/upload/yonghu_touxiang3.jpg','13823888883','地址3',100),(14,'2021-01-25 11:42:19','用户4','123456','姓名4','男','http://localhost:8080/ssm5n2mk/upload/yonghu_touxiang4.jpg','13823888884','地址4',100),(15,'2021-01-25 11:42:19','用户5','123456','姓名5','男','http://localhost:8080/ssm5n2mk/upload/yonghu_touxiang5.jpg','13823888885','地址5',100),(16,'2021-01-25 11:42:19','用户6','123456','姓名6','男','http://localhost:8080/ssm5n2mk/upload/yonghu_touxiang6.jpg','13823888886','地址6',100),(1611546730956,'2021-01-25 11:52:10','1','1','陈一','男','http://localhost:8080/ssm5n2mk/upload/1611546753317.jpg','12312312312','HJFHDJTFYG',1480);
    237. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
    238. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
    239. /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
    240. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

  • 相关阅读:
    【干货】Vue3 组件通信方式详解
    C# 如何读取dxf档案
    DSGC:双空间图对比学习
    加密与解密笔记-4.1
    Git提交代码.gitignore的模版
    模块化设计瞎谈
    【大魔王送书第二期】搞懂大模型的智能基因,RLHF系统设计关键问答
    rabbit使用动态队列
    楼盘vr虚拟样板间,为售楼中心带来财气
    Vue中的数据绑定
  • 原文地址:https://blog.csdn.net/weixin_52721608/article/details/132724978