1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

后端创建订单接口完成;删除service层interface

This commit is contained in:
程序员小墨 2023-03-19 17:39:50 +08:00
parent 33ebe5a982
commit 90a17c926e
25 changed files with 1092 additions and 417 deletions

View File

@ -32,6 +32,13 @@ rathole.exe ../conf/client.toml
https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/userProfile.html
优点:
订单id使用 雪花id分布式
遇到的问题:
nacos CPU占满问题解决方案提issue多次测试找到问题HTTPDebug问题解决
-----
Nacos CPU 跑满问题 我提的 GitHub issue

View File

@ -0,0 +1,19 @@
package com.cxyxiaomo.epp.common.enums;
public enum OrderStatus {
PENDING("Pending"),
PROCESSING("Processing"),
SHIPPED("Shipped"),
DELIVERED("Delivered"),
CANCELLED("Cancelled");
private final String value;
private OrderStatus(String value) {
this.value = value;
}
public String getValue() {
return value;
}
}

View File

@ -15,6 +15,7 @@ public class Good {
String gallery;
String brief;
Boolean isOnSale;
Integer sortOrder;
String picUrl;
Integer type;
String unit;

View File

@ -0,0 +1,18 @@
package com.cxyxiaomo.epp.common.pojo;
import com.cxyxiaomo.epp.common.enums.OrderStatus;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.time.LocalDateTime;
@Data
@NoArgsConstructor
@Accessors(chain = true) // 链式写法
public class Order {
private Long id;
private Integer userId;
private LocalDateTime orderDate;
private OrderStatus orderStatus;
}

View File

@ -0,0 +1,16 @@
package com.cxyxiaomo.epp.common.pojo;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
@Data
@NoArgsConstructor
@Accessors(chain = true) // 链式写法
public class OrderDetail {
private Long id;
private Long orderId;
private Long goodId;
private Integer goodCount;
private Double unitPrice;
}

View File

@ -0,0 +1,85 @@
package com.cxyxiaomo.epp.common.utils;
import java.security.SecureRandom;
public class SnowflakeManager {
private static final long EPOCH_STAMP = 1262275200000L;
private static final long SEQUENCE_BIT = 12L;
private static final long MACHINE_BIT = 5L;
private static final long DATA_CENTER_BIT = 5L;
private static final long MAX_SEQUENCE_NUM = -1L ^ (-1L << SEQUENCE_BIT);
private static final long MAX_MACHINE_NUM = -1L ^ (-1L << MACHINE_BIT);
private static final long MAX_DATA_CENTER_NUM = -1L ^ (-1L << DATA_CENTER_BIT);
private static final long MACHINE_LEFT = SEQUENCE_BIT;
private static final long DATA_CENTER_LEFT = SEQUENCE_BIT + MACHINE_BIT;
private static final long TIMESTAMP_LEFT = SEQUENCE_BIT + MACHINE_BIT + DATA_CENTER_BIT;
private final long machineId;
private final long dataCenterId;
private long sequence = 0L;
private long lastTimestamp = -1L;
public SnowflakeManager(long machineId, long dataCenterId) {
if (machineId > MAX_MACHINE_NUM || machineId < 0) {
throw new IllegalArgumentException(String.format("machine id can't be greater than %d or less than 0", MAX_MACHINE_NUM));
}
if (dataCenterId > MAX_DATA_CENTER_NUM || dataCenterId < 0) {
throw new IllegalArgumentException(String.format("data center id can't be greater than %d or less than 0", MAX_DATA_CENTER_NUM));
}
this.machineId = machineId;
this.dataCenterId = dataCenterId;
}
public synchronized long nextValue() throws Exception {
String os = System.getProperty("os.name");
SecureRandom secureRandom;
if (os.toLowerCase().startsWith("win")) {
// windows机器用
secureRandom = new SecureRandom(); // SecureRandom.getInstanceStrong();
} else {
// linux机器用
secureRandom = SecureRandom.getInstance("NativePRNGNonBlocking");
}
//SecureRandom secureRandom = SecureRandom.getInstanceStrong();
long currentTimeMillis = this.currentTimeMillis();
if(currentTimeMillis < this.lastTimestamp) {
throw new Exception(String.format("Clock moved backwards. Refusing to generate id for %d milliseconds", (this.lastTimestamp-currentTimeMillis)));
}
if(this.lastTimestamp == currentTimeMillis) {
this.sequence = (this.sequence+1) & MAX_SEQUENCE_NUM;
if (this.sequence == 0) {
this.sequence = secureRandom.nextInt(Long.valueOf(SEQUENCE_BIT).intValue());
currentTimeMillis = this.tilNextMillis(this.lastTimestamp);
}
} else {
this.sequence = secureRandom.nextInt(Long.valueOf(SEQUENCE_BIT).intValue());
}
this.lastTimestamp = currentTimeMillis;
// 64 Bit ID (42(Millis)+5(Data Center ID)+5(Machine ID)+12(Repeat Sequence Summation))
long nextId = ((currentTimeMillis-EPOCH_STAMP) << TIMESTAMP_LEFT)
| (this.dataCenterId << DATA_CENTER_LEFT)
| (this.machineId << MACHINE_LEFT)
| this.sequence;
return nextId;
}
private long tilNextMillis(long lastTimestamp) {
long currentTimeMillis = this.currentTimeMillis();
while (currentTimeMillis <= lastTimestamp) {
currentTimeMillis = this.currentTimeMillis();
}
return currentTimeMillis;
}
private long currentTimeMillis() {
return System.currentTimeMillis();
}
public static void main(String[] args) throws Exception {
SnowflakeManager snowflakeManager = new SnowflakeManager(0L,0L);
long l = snowflakeManager.nextValue();
System.out.println(l);
}
}

View File

@ -24,6 +24,7 @@ public class GoodVO implements Serializable {
String gallery;
String brief;
Boolean isOnSale;
Integer sortOrder;
String picUrl;
Integer type;
String unit;

View File

@ -0,0 +1,40 @@
package com.cxyxiaomo.epp.common.vo;
import com.cxyxiaomo.epp.common.pojo.OrderDetail;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.List;
import java.util.stream.Collectors;
// 数据库关系映射
@Data
@NoArgsConstructor
@Accessors(chain = true) // 链式写法
// 微服务必须要实现Serializable
public class OrderDetailVO implements Serializable {
private Long id;
private Long orderId;
private Long goodId;
private Integer goodCount;
private Double unitPrice;
public static OrderDetailVO convertFrom(OrderDetail orderDetail) {
if (orderDetail == null) {
return null;
}
OrderDetailVO orderDetailVO = new OrderDetailVO();
// BeanUtils.copyProperties(orderDetail, orderDetailVO);
return orderDetailVO;
}
public static List<OrderDetailVO> convertFrom(List<OrderDetail> orderDetailList) {
if (orderDetailList == null) {
return null;
}
return orderDetailList.stream().map(OrderDetailVO::convertFrom).collect(Collectors.toList());
}
}

View File

@ -0,0 +1,44 @@
package com.cxyxiaomo.epp.common.vo;
import com.cxyxiaomo.epp.common.enums.OrderStatus;
import com.cxyxiaomo.epp.common.pojo.Order;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.beans.BeanUtils;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;
import java.util.stream.Collectors;
// 数据库关系映射
@Data
@NoArgsConstructor
@Accessors(chain = true) // 链式写法
// 微服务必须要实现Serializable
public class OrderVO implements Serializable {
private Long id;
private Integer userId;
private LocalDateTime orderDate;
private OrderStatus orderStatus;
public static OrderVO convertFrom(Order order) {
if (order == null) {
return null;
}
OrderVO orderVO = new OrderVO();
BeanUtils.copyProperties(order, orderVO);
return orderVO;
}
public static List<OrderVO> convertFrom(List<Order> orderList) {
if (orderList == null) {
return null;
}
List<OrderVO> goodsOrdersVOList = orderList.stream().map(OrderVO::convertFrom).collect(Collectors.toList());
return goodsOrdersVOList;
}
}

View File

@ -13,8 +13,8 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
<dependencies>

View File

@ -3,7 +3,7 @@ package com.cxyxiaomo.epp.shop.controller;
import com.cxyxiaomo.epp.common.response.Res;
import com.cxyxiaomo.epp.common.vo.GoodCategoryVO;
import com.cxyxiaomo.epp.common.vo.GoodVO;
import com.cxyxiaomo.epp.shop.service.GoodsServiceImpl;
import com.cxyxiaomo.epp.shop.service.GoodsService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
@ -17,7 +17,7 @@ import java.util.List;
public class GoodsController {
@Resource
GoodsServiceImpl goodsService;
GoodsService goodsService;
/**
* 小程序端商品列表

View File

@ -0,0 +1,72 @@
package com.cxyxiaomo.epp.shop.controller;
import com.alibaba.fastjson2.JSONArray;
import com.alibaba.fastjson2.JSONObject;
import com.cxyxiaomo.epp.common.pojo.OrderDetail;
import com.cxyxiaomo.epp.common.response.Res;
import com.cxyxiaomo.epp.shop.service.OrderService;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.LinkedList;
import java.util.Map;
@RestController
@RequestMapping("/shop/order")
public class OrderController {
@Resource
OrderService orderService;
/**
* 小程序端创建订单
*
* @param userId 下单用户
* @param orderList 下单商品 [ { goodId, count }, ... ]
* @param orderList 下单商品 [ { goodId, count }, ... ]
* @return
*/
@PostMapping("/miniprogram/createOrder")
@ResponseBody
public Res createOrder(@RequestBody JSONObject params) {
Integer userId = params.getInteger("userId");
JSONArray orderList = params.getJSONArray("orderList");
if (userId == null || orderList == null) {
return Res.error("参数错误");
}
LinkedList<OrderDetail> orderDetailList = new LinkedList<>();
for (Object o : orderList) {
if (o == null || o instanceof JSONObject) {
return Res.error("参数错误");
}
JSONObject order = new JSONObject((Map) o);
Long goodId = order.getLong("goodId");
Integer count = order.getInteger("count");
if (goodId == null || goodId < 1 || count == null || count < 1) {
return Res.error("参数错误");
}
OrderDetail orderDetail = new OrderDetail();
orderDetail.setGoodId(goodId);
orderDetail.setGoodCount(count);
orderDetailList.add(orderDetail);
}
if (orderDetailList.size() == 0) {
return Res.error("订单中不包含商品,不能创建空订单");
}
try {
long orderId = orderService.createOrder(userId, orderDetailList);
return Res.success(orderId);
} catch (Exception e) {
String message = e.getMessage();
if (message.contains("Exception")) {
// 内部异常不打印出去
return Res.error("创建订单失败,请重试");
} else {
return Res.error(message);
}
}
}
}

View File

@ -14,4 +14,12 @@ public interface GoodsDao {
List<Good> list(@Param("cateId") Integer cateId, @Param("searchText") String searchText);
Good getById(Long id);
Good selectById(Long id);
Integer insert(Good good);
Integer update(Good good);
Integer deleteById(Integer id);
}

View File

@ -0,0 +1,52 @@
package com.cxyxiaomo.epp.shop.dao;
import com.cxyxiaomo.epp.common.pojo.Order;
import com.cxyxiaomo.epp.common.pojo.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
@Mapper
@Repository
public interface OrderDao {
/**
* 根据订单 ID 查询订单信息
*
* @param orderId
* @return
*/
Order getOrderById(Integer orderId);
/**
* 根据用户 ID 查询订单列表
*
* @param userId
* @return
*/
List<Order> listOrdersByUserId(Integer userId);
/**
* 创建订单
*
* @param order
* @return
*/
int insertOrder(Order order);
/**
* 批量插入订单详情
*
* @param details
* @return
*/
int batchInsertOrderDetail(List<OrderDetail> details);
// 更新订单状态
int updateOrderStatus(@Param("orderId") Integer orderId, @Param("status") String status);
// 根据订单 ID 删除订单信息及订单详情信息
int deleteOrderById(Integer orderId);
}

View File

@ -1,15 +1,40 @@
package com.cxyxiaomo.epp.shop.service;
import com.cxyxiaomo.epp.common.pojo.Good;
import com.cxyxiaomo.epp.common.pojo.GoodCategory;
import com.cxyxiaomo.epp.common.vo.GoodCategoryVO;
import com.cxyxiaomo.epp.common.vo.GoodVO;
import com.cxyxiaomo.epp.shop.dao.GoodsCategoryDao;
import com.cxyxiaomo.epp.shop.dao.GoodsDao;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
public interface GoodsService {
@Service
public class GoodsService {
List<GoodVO> list(Integer cateId, String searchText);
@Resource
GoodsDao goodsDao;
GoodVO getById(Long id);
@Resource
GoodsCategoryDao goodsCategoryDao;
List<GoodCategoryVO> cateList();
public List<GoodVO> list(Integer cateId, String searchText) {
List<Good> list = goodsDao.list(cateId, searchText);
List<GoodVO> goodVOS = GoodVO.convertFrom(list);
return goodVOS;
}
public GoodVO getById(Long id) {
Good good = goodsDao.getById(id);
GoodVO goodVO = GoodVO.convertFrom(good);
return goodVO;
}
public List<GoodCategoryVO> cateList() {
List<GoodCategory> list = goodsCategoryDao.list();
List<GoodCategoryVO> goodCategoryVOList = GoodCategoryVO.convertFrom(list);
return goodCategoryVOList;
}
}

View File

@ -1,43 +0,0 @@
package com.cxyxiaomo.epp.shop.service;
import com.cxyxiaomo.epp.common.pojo.Good;
import com.cxyxiaomo.epp.common.pojo.GoodCategory;
import com.cxyxiaomo.epp.common.vo.GoodCategoryVO;
import com.cxyxiaomo.epp.common.vo.GoodVO;
import com.cxyxiaomo.epp.shop.dao.GoodsCategoryDao;
import com.cxyxiaomo.epp.shop.dao.GoodsDao;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
@Service
public class GoodsServiceImpl implements GoodsService {
@Resource
GoodsDao goodsDao;
@Resource
GoodsCategoryDao goodsCategoryDao;
@Override
public List<GoodVO> list(Integer cateId, String searchText) {
List<Good> list = goodsDao.list(cateId, searchText);
List<GoodVO> goodVOS = GoodVO.convertFrom(list);
return goodVOS;
}
@Override
public GoodVO getById(Long id) {
Good good = goodsDao.getById(id);
GoodVO goodVO = GoodVO.convertFrom(good);
return goodVO;
}
@Override
public List<GoodCategoryVO> cateList() {
List<GoodCategory> list = goodsCategoryDao.list();
List<GoodCategoryVO> goodCategoryVOList = GoodCategoryVO.convertFrom(list);
return goodCategoryVOList;
}
}

View File

@ -0,0 +1,71 @@
package com.cxyxiaomo.epp.shop.service;
import com.cxyxiaomo.epp.common.enums.OrderStatus;
import com.cxyxiaomo.epp.common.pojo.Good;
import com.cxyxiaomo.epp.common.pojo.Order;
import com.cxyxiaomo.epp.common.pojo.OrderDetail;
import com.cxyxiaomo.epp.common.utils.SnowflakeManager;
import com.cxyxiaomo.epp.shop.dao.GoodsDao;
import com.cxyxiaomo.epp.shop.dao.OrderDao;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.interceptor.TransactionAspectSupport;
import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.List;
@Service
public class OrderService {
@Resource
private GoodsDao goodsDao;
@Resource
private OrderDao orderDao;
/**
* 创建订单返回订单编号
*
* @param userId
* @param orderItemList
* @return
* @throws Exception
*/
@Transactional(rollbackFor = Exception.class)
public long createOrder(int userId, List<OrderDetail> orderItemList) throws Exception {
// 创建订单编号
SnowflakeManager snowflakeManager = new SnowflakeManager(1L, 1L);
long orderId = snowflakeManager.nextValue();
// 创建订单
Order order = new Order();
order.setId(orderId);
order.setUserId(userId);
order.setOrderDate(LocalDateTime.now());
order.setOrderStatus(OrderStatus.PENDING);
orderDao.insertOrder(order);
// 创建订单详情
for (OrderDetail orderItem : orderItemList) {
if (orderItem == null || orderItem.getGoodId() == null || orderItem.getGoodCount() == null) {
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
throw new IllegalArgumentException("商品不存在");
}
// 查询商品价格
Good good = goodsDao.selectById(orderItem.getGoodId());
if (good == null || good.getDeleted() || good.getRetailPrice() == null) {
throw new IllegalArgumentException("商品已删除或状态异常,无法下单");
}
Double retailPrice = good.getRetailPrice();
// 手动塞入信息
orderItem.setId(null);
orderItem.setOrderId(orderId);
orderItem.setUnitPrice(retailPrice);
}
orderDao.batchInsertOrderDetail(orderItemList);
return orderId;
}
}

View File

@ -21,3 +21,8 @@ spring:
url: jdbc:mysql://127.0.0.1:3306/epp?useUnicode=true&characterEncoding=utf8&useSSL=false
username: root
password: root
logging:
level:
org.mybatis.spring.SqlSessionFactoryBean: DEBUG
# org.mybatis.spring.SqlSessionFactoryBean: TRACE

View File

@ -3,6 +3,24 @@
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cxyxiaomo.epp.shop.dao.GoodsDao">
<resultMap id="GoodsResultMap" type="com.cxyxiaomo.epp.common.pojo.Good">
<id column="id" property="id" />
<result column="goods_name" property="goodsName" />
<result column="category_id" property="categoryId" />
<result column="brand" property="brand" />
<result column="gallery" property="gallery" />
<result column="brief" property="brief" />
<result column="is_on_sale" property="isOnSale" />
<result column="sort_order" property="sortOrder" />
<result column="pic_url" property="picUrl" />
<result column="type" property="type" />
<result column="unit" property="unit" />
<result column="counter_price" property="counterPrice" />
<result column="retail_price" property="retailPrice" />
<result column="detail" property="detail" />
<result column="deleted" property="deleted" />
</resultMap>
<!--<insert id="insert" parameterType="com.cxyxiaomo.epp.common.pojo.Good">-->
<!-- INSERT INTO report (`user_id`, `name`, `address`, `time`, `temperature`)-->
<!-- VALUES (#{userId}, #{name}, #{address}, #{time}, #{temperature})-->
@ -25,4 +43,50 @@
WHERE id = #{id}
order by `sort_order` asc
</select>
<select id="selectById" resultMap="GoodsResultMap">
SELECT *
FROM goods
WHERE id = #{id}
</select>
<!--<select id="selectByCategoryId" resultMap="GoodsResultMap">-->
<!-- SELECT *-->
<!-- FROM goods-->
<!-- WHERE category_id = #{categoryId}-->
<!--</select>-->
<!--<select id="selectAll" resultMap="GoodsResultMap">-->
<!-- SELECT *-->
<!-- FROM goods-->
<!--</select>-->
<insert id="insert" parameterType="com.cxyxiaomo.epp.common.pojo.Good" useGeneratedKeys="true" keyProperty="id">
INSERT INTO goods (goods_name, category_id, brand, gallery, brief, is_on_sale, sort_order, pic_url, type, unit, counter_price, retail_price, detail, deleted)
VALUES (#{goodsName}, #{categoryId}, #{brand}, #{gallery}, #{brief}, #{isOnSale}, #{sortOrder}, #{picUrl}, #{type}, #{unit}, #{counterPrice}, #{retailPrice}, #{detail}, #{deleted})
</insert>
<update id="update" parameterType="com.cxyxiaomo.epp.common.pojo.Good">
UPDATE goods
SET goods_name = #{goodsName},
category_id = #{categoryId},
brand = #{brand},
gallery = #{gallery},
brief = #{brief},
is_on_sale = #{isOnSale},
sort_order = #{sortOrder},
pic_url = #{picUrl},
type = #{type},
unit = #{unit},
counter_price = #{counterPrice},
retail_price = #{retailPrice},
detail = #{detail},
deleted = #{deleted}
WHERE id = #{id}
</update>
<delete id="deleteById">
DELETE FROM goods
WHERE id = #{id}
</delete>
</mapper>

View File

@ -0,0 +1,62 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cxyxiaomo.epp.shop.dao.OrderDao">
<resultMap id="OrderResultMap" type="com.cxyxiaomo.epp.common.pojo.Order">
<id column="id" property="id"/>
<result column="user_id" property="userId"/>
<result column="order_date" property="orderDate"/>
<result column="order_status" property="orderStatus"/>
</resultMap>
<resultMap id="OrderDetailResultMap" type="com.cxyxiaomo.epp.common.pojo.OrderDetail">
<id property="id" column="id" />
<result property="orderId" column="order_id" />
<result property="goodId" column="good_id" />
<result property="goodCount" column="good_count" />
<result property="unitPrice" column="unit_price" />
</resultMap>
<!-- 根据订单 ID 查询订单信息 -->
<select id="getOrderById" resultMap="OrderResultMap">
SELECT * FROM order WHERE order_id=#{orderId}
</select>
<!-- 根据用户 ID 查询订单列表 -->
<select id="listOrdersByUserId" resultType="com.cxyxiaomo.epp.common.pojo.Order">
SELECT *
FROM order
WHERE user_id = #{userId}
</select>
<!-- 创建订单 -->
<insert id="insertOrder" parameterType="com.cxyxiaomo.epp.common.pojo.Order" useGeneratedKeys="true" keyProperty="orderId">
INSERT INTO `order` (id, user_id, order_date, order_status) VALUES
(#{id}, #{userId}, #{orderDate,javaType=java.time.LocalDateTime,jdbcType=TIMESTAMP}, #{orderStatus})
</insert>
<!-- 批量插入订单详情 -->
<insert id="batchInsertOrderDetail" parameterType="java.util.List">
INSERT INTO order_detail (order_id, good_id, good_count, unit_price)
VALUES
<if test="list != null and list.size() > 0">
<foreach collection="list" item="detail" separator=",">
(#{detail.orderId}, #{detail.goodId}, #{detail.goodCount}, #{detail.unitPrice})
</foreach>
</if>
<if test="list == null or list.size() == 0">
()
</if>
</insert>
<update id="updateOrderStatus" parameterType="com.cxyxiaomo.epp.common.pojo.Order">
UPDATE order SET order_status=#{orderStatus} WHERE order_id=#{orderId}
</update>
<!-- 根据订单 ID 删除订单信息及订单详情信息 -->
<delete id="deleteOrderById" parameterType="java.lang.Integer">
DELETE FROM order WHERE order_id = #{orderId};
DELETE FROM goods_order_details WHERE order_id = #{orderId};
</delete>
</mapper>

View File

@ -9,5 +9,9 @@
<!--下划线转小驼峰-->
<setting name="mapUnderscoreToCamelCase" value="true"/>
<!-- 打印 SQL 日志 -->
<!-- 设置logImpl为STDOUT_LOGGING表示使用标准输出打印SQL日志 -->
<setting name="logImpl" value="STDOUT_LOGGING"/>
</settings>
</configuration>

View File

@ -1,366 +1,405 @@
/*
Navicat Premium Data Transfer
Source Server : localhost MySQL 8.0 123456
Source Server Type : MySQL
Source Server Version : 80012
Source Host : localhost:3306
Source Schema : epp
Target Server Type : MySQL
Target Server Version : 80012
File Encoding : 65001
Date: 19/03/2023 01:32:37
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for apply1
-- ----------------------------
DROP TABLE IF EXISTS `apply1`;
CREATE TABLE `apply1` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`stu_id` int(11) NULL DEFAULT NULL COMMENT '用户id',
`issue` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '申请事由',
`transport` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '出行方式',
`place` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '目的地',
`start_time` datetime NULL DEFAULT NULL COMMENT '开始时间',
`end_time` datetime NULL DEFAULT NULL COMMENT '结束时间',
`state` int(11) NULL DEFAULT 0 COMMENT '状态(0:审批中,1:通过,2:驳回)',
`reason` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '驳回原因',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 13 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of apply1
-- ----------------------------
INSERT INTO `apply1` VALUES (1, 1, '11', '飞机', '33', '2022-02-15 11:20:00', '2022-02-15 13:20:00', 2, '格式错误');
INSERT INTO `apply1` VALUES (2, 2, '333', '大巴', '333', '2022-02-15 11:51:00', '2022-02-15 13:51:00', 1, '');
INSERT INTO `apply1` VALUES (3, 2, '333', '大巴', '333', '2022-02-15 11:51:00', '2022-02-15 13:51:00', 2, '格式错误');
INSERT INTO `apply1` VALUES (4, 2, '1', '动车', '2', '2022-03-12 13:45:00', '2022-03-12 15:45:00', 1, '');
INSERT INTO `apply1` VALUES (5, 2, '11', '飞机', '22', '2022-03-12 20:29:00', '2022-03-12 22:29:00', 1, '');
INSERT INTO `apply1` VALUES (6, 1, '123', '飞机', '123', '2022-03-19 13:37:00', '2022-03-19 15:37:00', 1, '');
INSERT INTO `apply1` VALUES (9, 10, '1', '飞机', '1', '2022-06-15 10:41:00', '2022-06-15 12:41:00', 1, '');
INSERT INTO `apply1` VALUES (10, 12, '1', '飞机', '1', '2022-06-15 10:53:00', '2022-06-15 12:53:00', 2, '格式错误');
INSERT INTO `apply1` VALUES (11, 2, '1', '飞机', '1', '2022-10-23 16:17:00', '2022-10-23 18:17:00', 1, '');
INSERT INTO `apply1` VALUES (12, 13, '1', '飞机', '1', '2022-10-26 19:25:00', '2022-10-26 21:25:00', 1, '');
-- ----------------------------
-- Table structure for count1
-- ----------------------------
DROP TABLE IF EXISTS `count1`;
CREATE TABLE `count1` (
`date` date NOT NULL COMMENT '日期',
`time` datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '时间',
`in_num` int(11) NULL DEFAULT NULL COMMENT '入校人数',
`out_num` int(11) NULL DEFAULT NULL COMMENT '出校人数',
PRIMARY KEY (`date`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of count1
-- ----------------------------
-- ----------------------------
-- Table structure for feedback1
-- ----------------------------
DROP TABLE IF EXISTS `feedback1`;
CREATE TABLE `feedback1` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '反馈标题',
`content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '反馈内容',
`time` datetime NULL DEFAULT NULL COMMENT '反馈时间',
`user_id` int(11) NULL DEFAULT NULL COMMENT '反馈用户id',
`reply` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '回复',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of feedback1
-- ----------------------------
INSERT INTO `feedback1` VALUES (1, '111', '222', '2022-02-14 10:18:29', 1, '22');
INSERT INTO `feedback1` VALUES (2, '111', '222', '2022-02-14 10:20:05', 1, '33');
INSERT INTO `feedback1` VALUES (3, '22', '33', '2022-02-14 10:20:29', 1, 'no');
INSERT INTO `feedback1` VALUES (4, '``', '11', '2022-02-14 10:22:12', 1, '111');
INSERT INTO `feedback1` VALUES (5, '123', '123456', '2022-03-28 19:34:04', 2, NULL);
-- ----------------------------
-- Table structure for goods
-- ----------------------------
DROP TABLE IF EXISTS `goods`;
CREATE TABLE `goods` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`goods_name` varchar(127) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '商品名称',
`category_id` int(11) NULL DEFAULT 0 COMMENT '商品所属类目ID',
`brand` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '0' COMMENT '商品品牌',
`gallery` varchar(1023) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '[]' COMMENT '商品宣传图片列表采用JSON数组格式',
`brief` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '商品简介',
`is_on_sale` tinyint(1) NULL DEFAULT 1 COMMENT '是否上架 0为下架 1为上架',
`sort_order` smallint(4) NULL DEFAULT 100 COMMENT '排序',
`pic_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '商品页面商品图片',
`type` tinyint(1) NULL DEFAULT 0 COMMENT '商品类型',
`unit` varchar(31) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '商品单位,例如件、盒',
`counter_price` decimal(10, 2) NULL DEFAULT 0.00 COMMENT '专柜价格(原价 / 划线价)',
`retail_price` decimal(10, 2) NULL DEFAULT 100000.00 COMMENT '零售价格(售价 / 未划线价)',
`detail` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '商品详细介绍,是富文本格式',
`deleted` tinyint(1) NULL DEFAULT 0 COMMENT '逻辑删除 0为正常 1为删除',
PRIMARY KEY (`id`) USING BTREE,
INDEX `category_id`(`category_id`) USING BTREE,
INDEX `brand_id`(`brand`) USING BTREE,
INDEX `sort_order`(`sort_order`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 23 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '商品基本信息表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of goods
-- ----------------------------
INSERT INTO `goods` VALUES (1, '口罩', 4, '千驰医疗器械', '[]', '一次性口罩', 1, 80, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 0.99, 1.99, '这是一次性口罩,采用优质无纺布材料制作,轻薄透气,防护效果好。', 0);
INSERT INTO `goods` VALUES (2, '水银温度计', 4, '千驰医疗器械', '[]', '医用玻璃水银体温计腋下温度计家用成人儿童婴儿口腔发烧探热针', 1, 200, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 59.90, 66.90, '产品名称:\r\n玻璃体温计\r\n\r\n产品型号:\r\n三角型棒式口腔)、内标式(腋下)\r\n\r\n使用期限:\r\n2年\r\n\r\n适用范围:\r\n供测量人体体温用\r\n\r\n产品构成:\r\n本产品由贡(水银)、感温泡和玻璃管组成。其中贡要符合一号贡的要求\r\n\r\n注意事项:\r\n测温前避免剧烈运动饮热饮、冷饮和饮酒等影响实际体温的因素', 0);
INSERT INTO `goods` VALUES (3, '酒精', 4, '海氏海诺', '[]', '海氏海诺 75%酒精消毒液大桶2L乙醇伤口皮肤消毒家用清洁防疫酒精', 1, 300, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 10.00, 18.80, '海氏海诺 75%酒精消毒液大桶2L乙醇伤口皮肤消毒家用清洁防疫酒精', 0);
INSERT INTO `goods` VALUES (4, '红富士苹果', 1, '佳农', '[\"https://cdn.example.com/goods/apple.jpg\"]', '新鲜红富士苹果', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 5.99, 8.99, '新鲜红富士苹果,口感甜脆,营养丰富。适合作为水果零食或食用。', 0);
INSERT INTO `goods` VALUES (5, '牛奶', 7, '蒙牛', '[\"https://cdn.example.com/goods/milk.jpg\"]', '蒙牛纯牛奶', 1, 90, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 10.99, 12.99, '蒙牛纯牛奶,原味鲜香,营养均衡。适合早餐或饮用。', 0);
INSERT INTO `goods` VALUES (6, '口罩', 4, '0', '[\"https://cdn.example.com/goods/mask.jpg\"]', '医用口罩', 1, 80, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 0.99, 1.99, '医用口罩,防护效果好,适合日常出行或在公共场合佩戴。', 0);
INSERT INTO `goods` VALUES (7, '洗发水', 2, '清扬男士', '[\"https://cdn.example.com/goods/shampoo.jpg\"]', '清扬男士去屑洗发露', 1, 70, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 16.99, 19.99, '清扬男士去屑洗发露,深层清洁头皮,去除头屑。适合男性使用。', 0);
INSERT INTO `goods` VALUES (8, '泡腾片', 3, '德国DAS', '[\"https://cdn.example.com/goods/vitaminc.jpg\"]', '维生素C泡腾片', 1, 60, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 29.99, 39.99, '矫正维生素C泡腾片补充维生素C提高免疫力。适合日常补充。', 0);
INSERT INTO `goods` VALUES (9, '青菜', 1, '京鲜生', '[]', '新鲜有机蔬菜', 1, 200, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 3.50, 4.50, '青菜是一种十分常见的蔬菜,有很高的营养价值。它含有丰富的维生素、矿物质和膳食纤维等营养成分,对人体有很多好处。青菜不仅可以做菜吃,还可以榨汁喝,是一种很好的保健食品。', 0);
INSERT INTO `goods` VALUES (10, '橙子', 1, '京鲜生', '[]', '新鲜橙子,现摘现发', 1, 300, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 6.50, 8.50, '橙子是一种很常见的水果味道酸甜可口有很多好处。它含有丰富的维生素C和抗氧化物质能够增强免疫力、促进消化和排毒预防感冒和癌症等疾病。橙子可以直接食用或者榨汁喝也可以用来做饮料、糕点等食品。', 0);
INSERT INTO `goods` VALUES (11, '花牛苹果', 1, '佳农', '[]', '新鲜花牛苹果', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 3.50, 4.50, '这是一篮新鲜的花牛苹果,口感酸甜可口,非常适合作为水果零食食用。', 0);
INSERT INTO `goods` VALUES (12, '牛奶', 7, '伊利', '[]', '伊利纯牛奶', 1, 90, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 5.99, 7.99, '这是一盒纯牛奶,来源于天然放牧的奶牛,口感醇厚,营养丰富。', 0);
INSERT INTO `goods` VALUES (13, '酒精', 0, '利尔康', '[]', '30瓶装利尔康75%酒精消毒液大桶杀菌清洁500ml75度乙醇医疗伤口', 1, 300, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 10.00, 16.00, '医用口罩,防护效果好,适合日常出行或在公共场合佩戴。', 0);
INSERT INTO `goods` VALUES (14, '方便面', 5, '0', '[]', '康师傅牛肉面', 1, 70, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 2.50, 3.50, '这是一袋康师傅牛肉面,方便快捷,味道鲜美,非常适合作为零食食用。', 0);
INSERT INTO `goods` VALUES (15, '维生素C片', 3, 'ORIHIRO', '[]', 'VC维生素片', 1, 60, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 8.99, 10.99, '这是一瓶VC维生素片含有丰富的维生素C和其他营养成分能够增强免疫力改善皮肤质量。', 0);
INSERT INTO `goods` VALUES (16, '矿泉水', 7, '怡宝', '[]', '怡宝矿泉水', 1, 40, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 3.99, 5.99, '怡宝矿泉水', 0);
INSERT INTO `goods` VALUES (17, '牙刷', 2, '黑人', '[]', '舒适柔软的牙刷', 1, 60, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 8.99, 10.99, '这是一把舒适柔软的牙刷,能够很好地清洁牙齿,让口腔更健康。', 0);
INSERT INTO `goods` VALUES (18, '饼干', 5, '0', '[]', '酥脆的饼干', 1, 50, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 12.99, 15.99, '这是一盒酥脆的饼干,口感香脆,非常适合当零食食用。', 0);
INSERT INTO `goods` VALUES (19, '手洗液', 2, '舒肤佳', '[]', '抑菌洗手液', 1, 65, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 18.99, 21.99, '这是一瓶抑菌洗手液,能够有效地杀灭手部细菌,保持双手清洁卫生。', 0);
INSERT INTO `goods` VALUES (20, '口香糖', 5, '0', '[]', '清新口气口香糖', 1, 45, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 9.99, 12.99, '这是一盒清新口气口香糖,口感浓郁,能够有效地清除口腔异味。', 0);
INSERT INTO `goods` VALUES (21, '面膜', 2, '0', '[]', '补水保湿面膜', 1, 55, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 29.99, 35.99, '补水保湿面膜', 0);
INSERT INTO `goods` VALUES (22, '一次性医用口罩', 4, '医用口罩', '[]', '一次性医用口罩', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 5.99, 8.99, '一次性医用口罩,具有防护作用。适合在公共场所佩戴,能有效减少病毒传播。', 0);
INSERT INTO `goods` VALUES (23, '一次性手套', 4, '医用手套', '[]', '一次性医用手套', 1, 101, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 1.99, 3.99, '一次性医用手套,具有防护作用。适合在公共场所佩戴,能有效减少病毒传播。', 0);
INSERT INTO `goods` VALUES (24, '消毒液', 4, '莫雷夫', '[]', '消毒液', 1, 102, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 15.99, 18.99, '消毒液,能杀死细菌和病毒,具有杀菌消毒作用。适合在公共场所或家庭使用。', 0);
INSERT INTO `goods` VALUES (25, '体温计', 4, '博朗', '[]', '电子体温', 1, 103, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 35.99, 39.99, '电子体温计,能够准确测量体温。适合在家庭或医疗机构使用。', 0);
INSERT INTO `goods` VALUES (26, '消毒湿巾', 4, '医用湿巾', '[]', '消毒湿巾', 1, 104, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 6.99, 8.99, '消毒湿巾,能杀死细菌和病毒,具有杀菌消毒作用。适合在公共场所或家庭使用。', 0);
INSERT INTO `goods` VALUES (27, '医用隔离衣', 4, '医用', '[]', '医用隔离衣', 1, 90, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 149.99, 199.99, '医用隔离衣,用于医护人员在处理病人时的个人防护。可以有效隔离病原体和防止血液、液体的渗透,透气性好,舒适耐穿。', 0);
INSERT INTO `goods` VALUES (28, '紫外线消毒灯', 4, '普利司通', '[]', '紫外线消毒灯', 1, 80, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 249.99, 299.99, '紫外线消毒灯,可以杀死空气、表面、物品等处的细菌、病毒等微生物,达到消毒杀菌的效果。可以广泛应用于家庭、医院、学校、工厂等场所。', 0);
INSERT INTO `goods` VALUES (29, '防护面罩', 4, '防护', '[]', '防护面罩', 1, 70, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 39.99, 49.99, '防护面罩,用于工业生产中的防护、医疗卫生、防疫防护等场合。可以有效防护口鼻呼吸道受到外来飞沫、粉尘、液体等物品的侵袭,防止病毒等微生物的感染。', 0);
INSERT INTO `goods` VALUES (30, '橡胶手套', 4, '安全手套', '[]', '橡胶手套', 1, 60, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 12.99, 14.99, '橡胶手套,用于实验室、医院、化工、食品加工等场所。', 0);
INSERT INTO `goods` VALUES (31, '板蓝根颗粒', 3, '同仁堂', '[]', '板蓝根颗粒', 1, 70, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 15.99, 18.99, '板蓝根颗粒,清热解毒,适用于感冒发热等症状。每日三次,一次一袋,开水冲服。', 0);
INSERT INTO `goods` VALUES (32, '感冒灵颗粒', 3, '999', '[]', '感冒灵颗粒', 1, 80, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 25.99, 28.99, '感冒灵颗粒,缓解感冒症状,适用于感冒、咳嗽等症状。每日三次,一次一袋,开水冲服。', 0);
INSERT INTO `goods` VALUES (33, '蒲地蓝消炎片', 3, '同仁堂', '[]', '蒲地蓝消炎片', 1, 90, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 28.99, 33.99, '蒲地蓝消炎片,清热解毒,适用于上呼吸道感染等症状。每次两片,每日三次,饭前半小时服用。', 0);
INSERT INTO `goods` VALUES (34, '氯霉素眼药水', 3, '卫康', '[]', '氯霉素眼药水', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 19.99, 22.99, '氯霉素眼药水,治疗眼部感染等症状。每日三次,每次滴入一到两滴。', 0);
INSERT INTO `goods` VALUES (35, '感冒止咳糖浆', 3, '舒适达', '[]', '感冒止咳糖浆', 1, 110, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 29.99, 33.99, '感冒止咳糖浆,缓解咳嗽症状,适用于感冒、咳嗽等症状。', 0);
INSERT INTO `goods` VALUES (36, '牛排', 6, 'A牌', '[]', '精选优质牛肉', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 128.00, 98.00, '这是一道经典的西餐菜品,适合搭配蔬菜沙拉或烤蔬菜一起食用。精选优质牛肉,切成均匀的厚片,肉质鲜嫩多汁,口感十分美味。', 0);
INSERT INTO `goods` VALUES (37, '羊肉串', 6, 'B牌', '[]', '新鲜羊肉', 1, 90, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 25.00, 18.80, '这是一种很受欢迎的中式小吃,适合作为下酒菜或夜宵食用。新鲜羊肉切成均匀大小的块状,串在竹签上,经过炭火烤制,香味四溢,口感香嫩。', 0);
INSERT INTO `goods` VALUES (38, '烤鸭', 6, 'C牌', '[]', '北京烤鸭', 1, 80, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 188.00, 138.00, '这是一道北京传统名菜是中国餐饮文化的重要组成部分之一。选用饲养周期在60天以上的肥美鸭子采用传统技艺腌制经过炭火烤制外皮金黄酥脆肉质鲜嫩口感丰富。', 0);
INSERT INTO `goods` VALUES (39, '牛腩煲', 6, 'D牌', '[]', '牛肉小炒肉', 1, 70, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 58.00, 42.80, '这是一道香港地道的特色菜,非常适合在冬天享用。精选上等牛肉,切成小块,搭配多种香料和蔬菜,慢火炖制数小时,汤汁鲜美浓郁,肉质软烂易嚼。', 0);
INSERT INTO `goods` VALUES (40, '鸡肉卷', 6, 'E牌', '[]', '鸡胸肉盖饭', 1, 60, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 28.00, 19.90, '这是一道适合当做早餐或午餐的美食。选用鸡胸肉,切成薄片,搭配火腿、鲜菇、洋葱等多种食材,卷起来后煎烤,口感香嫩可口。', 0);
INSERT INTO `goods` VALUES (41, '黑椒牛柳', 6, '国贸牛肉', '[]', '国贸牛肉', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 138.00, 118.00, '这是一款以黑椒作为调味料的烤牛肉,口感香辣,肉质鲜嫩。适合烤肉或者烤箱烤制。', 0);
INSERT INTO `goods` VALUES (42, '红烧肉', 6, '泰山食品', '[]', '红烧肉', 1, 90, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 68.00, 58.00, '红烧肉是一道传统的中国菜品,选用优质的五花肉,慢火慢炖,酱汁入味,外焦里嫩,色香味俱佳。适合与米饭一起食用。', 0);
INSERT INTO `goods` VALUES (43, '蜜汁叉烧', 6, '三只松鼠', '[]', '蜜汁叉烧', 1, 80, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 38.00, 28.00, '蜜汁叉烧是一种广东传统的烤肉食品,精选猪肉,经过特殊的腌制和烤制工艺,表面呈现出一层诱人的红色。入口即化,外酥里嫩,咸香适口。适合作为下酒菜或者加入面条、炒饭等中餐中。', 0);
INSERT INTO `goods` VALUES (44, '香辣鸡翅', 6, '波司登鸡肉', '[]', '波司登鸡肉', 1, 70, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 25.00, 18.00, '选用肉质鲜嫩的鸡翅中段,搭配特制的香辣调料,烤制出来的鸡翅鲜香辣口,肉质紧实,外皮酥脆。', 0);
INSERT INTO `goods` VALUES (45, '嫩牛肉片', 6, '三元牛肉', '[]', '嫩牛肉片,口感鲜嫩,富含蛋白质', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 68.00, 59.00, '这是一款优质嫩牛肉片,富含优质蛋白质,口感极佳,适合煲汤、炒菜、火锅等多种烹饪方式', 0);
INSERT INTO `goods` VALUES (46, '鲜猪肉片', 6, '三元猪肉', '[]', '鲜猪肉片,鲜香味美,肉质细嫩', 1, 99, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 32.80, 29.90, '这是一款优质鲜猪肉片,经过严格挑选,新鲜出品,鲜香味美,肉质细嫩,是您炒菜、煲汤、烧烤的绝佳选择', 0);
INSERT INTO `goods` VALUES (47, '蒜泥白肉', 6, '三元猪肉', '[]', '鲜嫩白肉,配上酱料和蒜泥,口感鲜香', 1, 98, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 39.80, 34.90, '这是一款经典美食蒜泥白肉,选用新鲜优质猪肉,搭配上鲜美蒜泥和特制酱料,口感鲜香可口,回味无穷', 0);
INSERT INTO `goods` VALUES (48, '鸡腿肉', 6, '三元鸡肉', '[]', '鲜嫩多汁,肉质细嫩', 1, 97, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 16.80, 13.90, '这是一款新鲜的鸡腿肉,富含蛋白质,肉质细嫩,口感鲜美,适合烤着吃、烧着吃、炖着吃等多种烹饪方式', 0);
INSERT INTO `goods` VALUES (49, '碳酸饮料', 7, '可口可乐公司', '[]', '可口可乐', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 3.00, 2.50, '可口可乐是世界知名的碳酸饮料品牌,有着浓郁的可乐味,口感清爽,是人们喜欢的饮品之一。', 0);
INSERT INTO `goods` VALUES (50, '碳酸饮料', 7, '百事公司', '[]', '百事可乐', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 3.00, 2.50, '百事可乐是世界知名的碳酸饮料品牌,与可口可乐齐名,有着浓郁的可乐味,口感清爽,是人们喜欢的饮品之一。', 0);
INSERT INTO `goods` VALUES (51, '无糖碳酸饮料', 7, '可口可乐公司', '[]', '雪碧', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 3.50, 3.00, '雪碧是一种无糖碳酸饮料,口感清新,有着独特的柠檬味,深受人们的喜爱。', 0);
INSERT INTO `goods` VALUES (52, '功能性饮料', 7, '红牛公司', '[]', '红牛', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 5.00, 4.50, '红牛是一种功能性饮料,能够提供短期的能量补给,帮助人们在工作和学习中保持专注。', 0);
INSERT INTO `goods` VALUES (53, '咖啡饮品', 7, '星巴克公司', '[]', '咖啡', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 25.00, 20.00, '咖啡是一种饮用热饮,由磨碎的咖啡豆冲泡而成,具有提神醒脑、去除疲劳的作用,是人们在生活和工作中常饮用的饮品之一。', 0);
INSERT INTO `goods` VALUES (54, '可口可乐', 7, '可口可乐公司', '[]', '可口可乐Coca-Cola', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 5.00, 3.50, '可口可乐Coca-Cola是美国可口可乐公司生产的一种碳酸软饮料源自1886年由美国药剂师John Stith Pemberton发明的法国可卡因酒后于1888年更名为可口可乐。可口可乐是全球最具价值的品牌之一也是全球最畅销的碳酸软饮料之一。', 0);
INSERT INTO `goods` VALUES (55, '百事可乐', 7, '百事公司', '[]', '百事可乐Pepsi-Cola', 1, 99, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 5.00, 3.50, '百事可乐Pepsi-Cola是由美国百事公司生产的一种碳酸软饮料。百事可乐的味道类似于可口可乐但口感略微不同因此两种饮料在市场上形成了一种明显的竞争关系。', 0);
INSERT INTO `goods` VALUES (56, '康师傅冰红茶', 7, '康师傅集团', '[]', '康师傅冰红茶', 1, 98, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 4.00, 2.50, '康师傅冰红茶是一种深受广大消费者喜爱的茶饮料,口感香甜,清新解渴。康师傅是中国著名的食品生产企业,其产品包括方便面、速冻食品、饮料等。', 0);
INSERT INTO `goods` VALUES (57, '怡宝矿泉水', 7, '怡宝集团', '[]', '怡宝矿泉水', 1, 97, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 3.00, 2.00, '怡宝矿泉水是一种天然的矿泉水,口感清新,无任何添加剂,非常适合日常饮用。怡宝集团是中国知名的饮料生产企业,其产品包括矿泉水、纯净水、茶饮料等。', 0);
INSERT INTO `goods` VALUES (58, '沐浴露', 2, '施巴', '[]', '施巴舒缓滋润沐浴露', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 49.90, 39.90, '施巴舒缓滋润沐浴露,富含甘油和天然植物精华,能够滋润肌肤', 0);
INSERT INTO `goods` VALUES (59, '洗衣液', 2, '威露士', '[]', '威露士洗衣液', 1, 100, NULL, 0, '', 25.00, 29.90, '威露士洗衣液,洁净彻底,去除顽渍,衣物柔软舒适。适用于各种布料。', 0);
INSERT INTO `goods` VALUES (60, '洗碗布', 2, '无品牌', '[]', '柔软吸水,耐用不掉毛', 1, 100, NULL, 0, '', 3.00, 5.00, '适用于洗涤餐具、清洁厨房等', 0);
INSERT INTO `goods` VALUES (61, '一次性餐具套装', 2, '无品牌', '[]', '一次性餐具套装,方便卫生', 1, 99, NULL, 0, '', 8.00, 12.00, '包含一次性碗、盘、刀、叉、勺等,使用后方便清理,卫生方便', 0);
INSERT INTO `goods` VALUES (62, '剃须刀', 2, '飞利浦', '[]', '飞利浦电动剃须刀,充电式', 1, 80, NULL, 0, '', 199.00, 299.00, '适用于男性剃须,充电式方便携带,刀片锋利,剃须干净', 0);
INSERT INTO `goods` VALUES (63, '马桶刷', 2, '无品牌', '[]', '马桶清洁必备,柄部防滑设计', 1, 150, NULL, 0, '', 5.00, 9.90, '适用于马桶清洁,柄部采用防滑设计,方便操作', 0);
INSERT INTO `goods` VALUES (64, '抽纸', 2, '维达', '[]', '维达软抽3层130抽面纸', 1, 50, NULL, 0, '', 14.50, 18.00, '适用于日常生活,柔软舒适,吸水性好,可重复使用', 0);
INSERT INTO `goods` VALUES (65, '剪刀', 2, '晨光', '[]', '晨光不锈钢剪刀', 1, 120, NULL, 0, '', 9.90, 12.00, '适用于日常生活、办公等,剪刀锋利,手感舒适', 0);
INSERT INTO `goods` VALUES (66, '防晒霜', 2, '兰蔻', '[]', '兰蔻防晒霜SPF50+', 1, 60, NULL, 0, '', 299.00, 399.00, '适用于户外活动、日常生活等,有效防止紫外线伤害,清爽不油腻,易于吸收', 0);
INSERT INTO `goods` VALUES (67, '纸巾盒', 2, '普乐士', '[]', '普乐士魔法盒抽纸盒', 1, 100, NULL, 0, '', 12.50, 15.00, '', 0);
INSERT INTO `goods` VALUES (68, '洗洁精', 2, '威露士', '[]', '威露士洗洁精', 1, 100, NULL, 0, '', 9.99, 12.99, '威露士洗洁精,有效去除油渍和污垢,轻松清洁厨房餐具。', 0);
INSERT INTO `goods` VALUES (69, '洗手液', 2, '蜜芽', '[]', '蜜芽儿童无刺激洗手液', 1, 99, NULL, 0, '', 19.99, 22.99, '蜜芽儿童无刺激洗手液,温和配方,不刺激肌肤,适合儿童使用。', 0);
INSERT INTO `goods` VALUES (70, '电动牙刷', 2, '飞利浦', '[]', '飞利浦声波震动电动牙刷', 1, 98, NULL, 0, '', 299.00, 399.00, '飞利浦声波震动电动牙刷,高效清洁牙齿,深入去除牙渍,呵护牙齿健康。', 0);
INSERT INTO `goods` VALUES (71, '梳子', 2, '宝洁', '[]', '宝洁双面按摩梳', 1, 97, NULL, 0, '', 12.99, 15.99, '宝洁双面按摩梳,双面设计,可以按摩头皮,缓解疲劳,也可以梳理发丝,让发型更加完美。', 0);
INSERT INTO `goods` VALUES (72, '洗衣液', 2, '妙洁', '[]', '妙洁深层洁净洗衣液', 1, 96, NULL, 0, '', 29.99, 39.99, '妙洁深层洁净洗衣液,有效去除衣物污渍,保护衣物纤维,让衣服更柔软。', 0);
INSERT INTO `goods` VALUES (73, '纸巾', 2, '维达', '[]', '维达抽纸', 1, 95, NULL, 0, '', 19.99, 22.99, '维达抽纸,柔软舒适,吸水性好,不易破碎。', 0);
INSERT INTO `goods` VALUES (74, '剪刀', 2, '福尺', '[]', '福尺多功能剪刀', 1, 94, NULL, 0, '', 9.99, 12.99, '福尺多功能剪刀', 0);
INSERT INTO `goods` VALUES (75, '薯片', 5, '乐事', '[]', '薯片', 1, 100, NULL, 0, '', 8.00, 10.00, '美味薯片,酥脆可口,适合下午茶。', 0);
INSERT INTO `goods` VALUES (76, '巧克力', 5, '德芙', '[]', '德芙巧克力', 1, 100, NULL, 0, '', 20.00, 25.00, '德芙巧克力,甜美可口,适合送礼。', 0);
INSERT INTO `goods` VALUES (77, '蜜饯', 5, '三只松鼠', '[]', '三只松鼠夏威夷果', 1, 100, NULL, 0, '', 18.00, 20.00, '三只松鼠夏威夷果,口感香甜,健康零食。', 0);
INSERT INTO `goods` VALUES (78, '牛肉干', 5, '卫龙', '[]', '麻辣牛肉干', 1, 100, NULL, 0, '', 15.00, 20.00, '卫龙麻辣牛肉干,辣味十足,爽口不腻。', 0);
INSERT INTO `goods` VALUES (79, '薄荷糖', 5, '金丝猴', '[]', '金丝猴薄荷糖', 1, 100, NULL, 0, '', 10.00, 12.00, '金丝猴薄荷糖,口感清新,适合口气不佳的人。', 0);
INSERT INTO `goods` VALUES (80, '奥利奥饼干', 5, 'Oreo', '[]', '经典口味奥利奥饼干', 1, 100, NULL, 0, '', 18.00, 16.99, '经典口味奥利奥饼干,酥脆可口,一口一个,让你停不下来。', 0);
INSERT INTO `goods` VALUES (81, '可口可乐', 7, 'Coca-Cola', '[]', '经典可口可乐', 1, 100, NULL, 0, '', 3.00, 2.50, '可口可乐,清爽解渴,适合任何场合。', 0);
INSERT INTO `goods` VALUES (82, '大白兔奶糖', 5, '大白兔', '[]', '经典奶香味道', 1, 100, NULL, 0, '', 5.00, 4.50, '大白兔奶糖,经典奶香味道,口感绵软。', 0);
INSERT INTO `goods` VALUES (83, '卫龙辣条', 5, '卫龙', '[]', '经典辣味', 1, 100, NULL, 0, '', 6.00, 5.50, '卫龙辣条,经典辣味,辣爽可口,不同于其他辣条。', 0);
INSERT INTO `goods` VALUES (84, '雀巢咖啡', 5, 'Nestle', '[]', '拿铁口味', 1, 100, NULL, 0, '', 20.00, 18.99, '雀巢咖啡,拿铁口味,浓郁香醇,唤醒你的味蕾。', 0);
INSERT INTO `goods` VALUES (85, '伊利纯牛奶', 7, '伊利', '[]', '高端纯牛奶', 1, 100, NULL, 0, '', 5.00, 4.80, '伊利纯牛奶,高端纯牛奶,口感绵密,适合慢慢品尝。', 0);
INSERT INTO `goods` VALUES (86, '太平梳打饼干', 5, '太平', '[]', '酥脆可口', 1, 100, NULL, 0, '', 10.00, 8.50, '太平梳打饼干,酥脆可口,咬一口,满口的香脆声。', 0);
INSERT INTO `goods` VALUES (87, '德芙巧克力', 5, 'Dove', '[]', '丝滑绵密', 1, 100, NULL, 0, '', 30.00, 28.50, '德芙巧克力,丝滑绵密,一口一个,舌尖上的享受。', 0);
-- ----------------------------
-- Table structure for goods_category
-- ----------------------------
DROP TABLE IF EXISTS `goods_category`;
CREATE TABLE `goods_category` (
`id` bigint(11) NOT NULL AUTO_INCREMENT,
`category_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '商品分类名',
`order` int(11) NULL DEFAULT NULL COMMENT '排序',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of goods_category
-- ----------------------------
INSERT INTO `goods_category` VALUES (1, '水果蔬菜', 1);
INSERT INTO `goods_category` VALUES (2, '日用品', 8);
INSERT INTO `goods_category` VALUES (3, '药品', 10);
INSERT INTO `goods_category` VALUES (4, '防疫物资', 0);
INSERT INTO `goods_category` VALUES (5, '零食', 3);
INSERT INTO `goods_category` VALUES (6, '肉类', 2);
INSERT INTO `goods_category` VALUES (7, '饮料酒水', 4);
-- ----------------------------
-- Table structure for notice1
-- ----------------------------
DROP TABLE IF EXISTS `notice1`;
CREATE TABLE `notice1` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标题',
`content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '内容',
`time` date NULL DEFAULT NULL COMMENT '时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of notice1
-- ----------------------------
INSERT INTO `notice1` VALUES (1, '请各位学生戴好口罩', NULL, '2022-03-15');
INSERT INTO `notice1` VALUES (2, '请各位学生不要随意出入校门', NULL, '2022-03-15');
INSERT INTO `notice1` VALUES (7, '11', '22', '2022-03-22');
INSERT INTO `notice1` VALUES (8, '22', '22', '2022-04-14');
INSERT INTO `notice1` VALUES (9, '33', '33', '2022-04-14');
-- ----------------------------
-- Table structure for report
-- ----------------------------
DROP TABLE IF EXISTS `report`;
CREATE TABLE `report` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NULL DEFAULT NULL COMMENT '用户id',
`name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '姓名',
`time` datetime NULL DEFAULT NULL COMMENT '填报时间',
`temperature` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '体温是否正常',
`address` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '地址',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 60 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of report
-- ----------------------------
INSERT INTO `report` VALUES (53, 1, '管理员 密码root', '2022-12-26 20:35:38', '1', '湖北省武汉市洪山区文治街南湖雅园(洪山区信访局对面)');
INSERT INTO `report` VALUES (55, 1, '管理员 密码root', '2022-12-27 21:03:24', '0', '湖北省武汉市洪山区文治街508号南湖雅园F栋2-104号');
INSERT INTO `report` VALUES (57, 1, '管理员 密码root', '2022-12-28 21:47:57', '0', '湖北省武汉市洪山区文治街南湖雅园(洪山区信访局对面)');
INSERT INTO `report` VALUES (58, 1, '管理员 密码root', '2022-12-29 18:20:00', '1', '湖北省武汉市洪山区鲁磨路209号');
INSERT INTO `report` VALUES (59, 1, '管理员 密码root', '2023-03-17 00:27:21', '0', '湖北省武汉市洪山区雄楚大道珞狮南路南湖雅园F-4-106');
-- ----------------------------
-- Table structure for setting
-- ----------------------------
DROP TABLE IF EXISTS `setting`;
CREATE TABLE `setting` (
`key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`time` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间或失效时间具体根据key来判断',
UNIQUE INDEX `key`(`key`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of setting
-- ----------------------------
INSERT INTO `setting` VALUES ('wechat_access_token', '66_sC2-1ygooBWjbLaEz2-or6IGqFs76UvUnRIpxXo_rJqw2BS45J_X128_xks1ekQPvF6LK22AcfA6d7OmcBWeulrRhUFNO3MPaog-_u-TqJxQ6XoRUPN9iUWR0Y8HQWiAGAUDJ', '2023-03-07 01:19:44');
-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户名',
`password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '密码',
`realname` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '真实姓名',
`id_number` varchar(18) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '身份证号',
`phone_number` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '手机号',
`role` int(11) NOT NULL COMMENT '角色 (0-超级管理员 1-工作人员 2-社区居民_房主 3-社区居民_家庭成员 4-社区居民_租客 5-访客)',
`building_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '门栋号+单元号',
`doorplate` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '门牌号',
`permission` int(11) NOT NULL DEFAULT 0 COMMENT '进出权限 (0-无 1-继承(普通居民) 2-永久 3-限时)',
`permission_time` datetime NULL DEFAULT NULL COMMENT '进出权限失效时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 22 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of user
-- ----------------------------
INSERT INTO `user` VALUES (1, 'root', '99adc231b045331e514a516b4b7680f588e3823213abe901738bc3ad67b2f6fcb3c64efb93d18002588d3ccc1a49efbae1ce20cb43df36b38651f11fa75678e8', '管理员 密码root', '420111111111111111', NULL, 2, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (2, 'lhz', 'lhz', '廖鸿志', NULL, NULL, 2, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (3, '21180000', '21180000', '', NULL, NULL, 2, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (4, '211', '211', '11', NULL, NULL, 2, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (5, '2111', '2111', '111', NULL, NULL, 1, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (6, '222', '222', '33', NULL, NULL, 2, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (7, '33', '33', '44', NULL, NULL, 2, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (8, 'test', '1', 'test', NULL, NULL, 3, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (9, '123456', '123456', '123456', NULL, NULL, 2, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (10, '211806336', '211806336', '211806336', NULL, NULL, 2, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (11, '001', '001', '老师', NULL, NULL, 1, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (12, '002', '002', '刘鸿宇', NULL, NULL, 2, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (13, 'z', 'zz', 'z', NULL, NULL, 2, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (14, '111', '222', '222', NULL, NULL, 222, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (15, '222', '222', '222', NULL, NULL, 222, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (16, '222', '222', '222', NULL, NULL, 222, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (17, '111111111111', '111111111111', '111111111111', NULL, NULL, 2, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (18, '12', '12', '12', NULL, NULL, 2, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (19, '210602212109', '210602212109', '曾子华', NULL, NULL, 2, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (20, 'undefined', 'undefined', '信息2121', NULL, NULL, 2, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (21, '2', '2', '', NULL, NULL, 2, NULL, NULL, 0, NULL);
-- ----------------------------
-- Table structure for visitor1
-- ----------------------------
DROP TABLE IF EXISTS `visitor1`;
CREATE TABLE `visitor1` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`time` datetime NULL DEFAULT NULL COMMENT '预约时间',
`phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '预约用户id',
`issue` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '预约事由',
`meet_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '会见人姓名',
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
`state` int(11) NULL DEFAULT 0 COMMENT '状态0审批中1成功2驳回',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 15 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of visitor1
-- ----------------------------
INSERT INTO `visitor1` VALUES (1, '2022-03-09 09:46:50', '136', NULL, NULL, NULL, 1);
INSERT INTO `visitor1` VALUES (2, '2022-03-09 00:00:00', '1', '2', '王老师', NULL, 1);
INSERT INTO `visitor1` VALUES (3, '2022-03-13 00:00:00', '123', '123', '123', NULL, 1);
INSERT INTO `visitor1` VALUES (4, '2022-03-17 00:00:00', '183', '11', '1111', NULL, 1);
INSERT INTO `visitor1` VALUES (5, '2022-03-20 07:00:00', '15555150781', '测试', '王德发', NULL, 1);
INSERT INTO `visitor1` VALUES (6, '2022-03-20 07:00:00', '15555150782', '测试', '王德发', NULL, 1);
INSERT INTO `visitor1` VALUES (7, '2022-03-20 00:00:00', '12345', '返校', '自己', NULL, 1);
INSERT INTO `visitor1` VALUES (8, '2022-03-21 00:00:00', '1', '1', '1', NULL, 1);
INSERT INTO `visitor1` VALUES (9, '2022-03-22 00:00:00', '11', '11', '1', NULL, 1);
INSERT INTO `visitor1` VALUES (10, '2022-03-22 00:00:00', '183', '1', '123', NULL, 1);
INSERT INTO `visitor1` VALUES (11, '2022-04-20 00:00:00', '19851691582', '看吧', '哈哈', NULL, 0);
INSERT INTO `visitor1` VALUES (12, '2022-04-26 00:00:00', '18835381168', 'jin', 'zhang ', NULL, 0);
INSERT INTO `visitor1` VALUES (13, '2022-06-15 00:00:00', '18250314786', '1', '1', NULL, 1);
INSERT INTO `visitor1` VALUES (14, '2022-10-08 00:00:00', '151000', '入校', '王龙', NULL, 0);
SET FOREIGN_KEY_CHECKS = 1;
/*
Navicat Premium Data Transfer
Source Server : localhost MySQL 8.0 123456
Source Server Type : MySQL
Source Server Version : 80012
Source Host : localhost:3306
Source Schema : epp
Target Server Type : MySQL
Target Server Version : 80012
File Encoding : 65001
Date: 19/03/2023 17:36:14
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for apply1
-- ----------------------------
DROP TABLE IF EXISTS `apply1`;
CREATE TABLE `apply1` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`stu_id` int(11) NULL DEFAULT NULL COMMENT '用户id',
`issue` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '申请事由',
`transport` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '出行方式',
`place` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '目的地',
`start_time` datetime NULL DEFAULT NULL COMMENT '开始时间',
`end_time` datetime NULL DEFAULT NULL COMMENT '结束时间',
`state` int(11) NULL DEFAULT 0 COMMENT '状态(0:审批中,1:通过,2:驳回)',
`reason` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '驳回原因',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 13 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of apply1
-- ----------------------------
INSERT INTO `apply1` VALUES (1, 1, '11', '飞机', '33', '2022-02-15 11:20:00', '2022-02-15 13:20:00', 2, '格式错误');
INSERT INTO `apply1` VALUES (2, 2, '333', '大巴', '333', '2022-02-15 11:51:00', '2022-02-15 13:51:00', 1, '');
INSERT INTO `apply1` VALUES (3, 2, '333', '大巴', '333', '2022-02-15 11:51:00', '2022-02-15 13:51:00', 2, '格式错误');
INSERT INTO `apply1` VALUES (4, 2, '1', '动车', '2', '2022-03-12 13:45:00', '2022-03-12 15:45:00', 1, '');
INSERT INTO `apply1` VALUES (5, 2, '11', '飞机', '22', '2022-03-12 20:29:00', '2022-03-12 22:29:00', 1, '');
INSERT INTO `apply1` VALUES (6, 1, '123', '飞机', '123', '2022-03-19 13:37:00', '2022-03-19 15:37:00', 1, '');
INSERT INTO `apply1` VALUES (9, 10, '1', '飞机', '1', '2022-06-15 10:41:00', '2022-06-15 12:41:00', 1, '');
INSERT INTO `apply1` VALUES (10, 12, '1', '飞机', '1', '2022-06-15 10:53:00', '2022-06-15 12:53:00', 2, '格式错误');
INSERT INTO `apply1` VALUES (11, 2, '1', '飞机', '1', '2022-10-23 16:17:00', '2022-10-23 18:17:00', 1, '');
INSERT INTO `apply1` VALUES (12, 13, '1', '飞机', '1', '2022-10-26 19:25:00', '2022-10-26 21:25:00', 1, '');
-- ----------------------------
-- Table structure for count1
-- ----------------------------
DROP TABLE IF EXISTS `count1`;
CREATE TABLE `count1` (
`date` date NOT NULL COMMENT '日期',
`time` datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '时间',
`in_num` int(11) NULL DEFAULT NULL COMMENT '入校人数',
`out_num` int(11) NULL DEFAULT NULL COMMENT '出校人数',
PRIMARY KEY (`date`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of count1
-- ----------------------------
-- ----------------------------
-- Table structure for feedback1
-- ----------------------------
DROP TABLE IF EXISTS `feedback1`;
CREATE TABLE `feedback1` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '反馈标题',
`content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '反馈内容',
`time` datetime NULL DEFAULT NULL COMMENT '反馈时间',
`user_id` int(11) NULL DEFAULT NULL COMMENT '反馈用户id',
`reply` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '回复',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of feedback1
-- ----------------------------
INSERT INTO `feedback1` VALUES (1, '111', '222', '2022-02-14 10:18:29', 1, '22');
INSERT INTO `feedback1` VALUES (2, '111', '222', '2022-02-14 10:20:05', 1, '33');
INSERT INTO `feedback1` VALUES (3, '22', '33', '2022-02-14 10:20:29', 1, 'no');
INSERT INTO `feedback1` VALUES (4, '``', '11', '2022-02-14 10:22:12', 1, '111');
INSERT INTO `feedback1` VALUES (5, '123', '123456', '2022-03-28 19:34:04', 2, NULL);
-- ----------------------------
-- Table structure for goods
-- ----------------------------
DROP TABLE IF EXISTS `goods`;
CREATE TABLE `goods` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`goods_name` varchar(127) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '商品名称',
`category_id` int(11) NULL DEFAULT 0 COMMENT '商品所属类目ID',
`brand` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '0' COMMENT '商品品牌',
`gallery` varchar(1023) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '[]' COMMENT '商品宣传图片列表采用JSON数组格式',
`brief` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '商品简介',
`is_on_sale` tinyint(1) NULL DEFAULT 1 COMMENT '是否上架 0为下架 1为上架',
`sort_order` smallint(4) NULL DEFAULT 100 COMMENT '排序',
`pic_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '商品页面商品图片',
`type` tinyint(1) NULL DEFAULT 0 COMMENT '商品类型',
`unit` varchar(31) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '商品单位,例如件、盒',
`counter_price` decimal(10, 2) NULL DEFAULT 0.00 COMMENT '专柜价格(原价 / 划线价)',
`retail_price` decimal(10, 2) NULL DEFAULT 100000.00 COMMENT '零售价格(售价 / 未划线价)',
`detail` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '商品详细介绍,是富文本格式',
`deleted` tinyint(1) NULL DEFAULT 0 COMMENT '逻辑删除 0为正常 1为删除',
PRIMARY KEY (`id`) USING BTREE,
INDEX `category_id`(`category_id`) USING BTREE,
INDEX `brand_id`(`brand`) USING BTREE,
INDEX `sort_order`(`sort_order`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 23 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '商品基本信息表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of goods
-- ----------------------------
INSERT INTO `goods` VALUES (1, '口罩', 4, '千驰医疗器械', '[]', '一次性口罩', 1, 80, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 0.99, 1.99, '这是一次性口罩,采用优质无纺布材料制作,轻薄透气,防护效果好。', 0);
INSERT INTO `goods` VALUES (2, '水银温度计', 4, '千驰医疗器械', '[]', '医用玻璃水银体温计腋下温度计家用成人儿童婴儿口腔发烧探热针', 1, 200, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 59.90, 66.90, '产品名称:\r\n玻璃体温计\r\n\r\n产品型号:\r\n三角型棒式口腔)、内标式(腋下)\r\n\r\n使用期限:\r\n2年\r\n\r\n适用范围:\r\n供测量人体体温用\r\n\r\n产品构成:\r\n本产品由贡(水银)、感温泡和玻璃管组成。其中贡要符合一号贡的要求\r\n\r\n注意事项:\r\n测温前避免剧烈运动饮热饮、冷饮和饮酒等影响实际体温的因素', 0);
INSERT INTO `goods` VALUES (3, '酒精', 4, '海氏海诺', '[]', '海氏海诺 75%酒精消毒液大桶2L乙醇伤口皮肤消毒家用清洁防疫酒精', 1, 300, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 10.00, 18.80, '海氏海诺 75%酒精消毒液大桶2L乙醇伤口皮肤消毒家用清洁防疫酒精', 0);
INSERT INTO `goods` VALUES (4, '红富士苹果', 1, '佳农', '[\"https://cdn.example.com/goods/apple.jpg\"]', '新鲜红富士苹果', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 5.99, 8.99, '新鲜红富士苹果,口感甜脆,营养丰富。适合作为水果零食或食用。', 0);
INSERT INTO `goods` VALUES (5, '牛奶', 7, '蒙牛', '[\"https://cdn.example.com/goods/milk.jpg\"]', '蒙牛纯牛奶', 1, 90, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 10.99, 12.99, '蒙牛纯牛奶,原味鲜香,营养均衡。适合早餐或饮用。', 0);
INSERT INTO `goods` VALUES (6, '口罩', 4, '0', '[\"https://cdn.example.com/goods/mask.jpg\"]', '医用口罩', 1, 80, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 0.99, 1.99, '医用口罩,防护效果好,适合日常出行或在公共场合佩戴。', 0);
INSERT INTO `goods` VALUES (7, '洗发水', 2, '清扬男士', '[\"https://cdn.example.com/goods/shampoo.jpg\"]', '清扬男士去屑洗发露', 1, 70, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 16.99, 19.99, '清扬男士去屑洗发露,深层清洁头皮,去除头屑。适合男性使用。', 0);
INSERT INTO `goods` VALUES (8, '泡腾片', 3, '德国DAS', '[\"https://cdn.example.com/goods/vitaminc.jpg\"]', '维生素C泡腾片', 1, 60, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 29.99, 39.99, '矫正维生素C泡腾片补充维生素C提高免疫力。适合日常补充。', 0);
INSERT INTO `goods` VALUES (9, '青菜', 1, '京鲜生', '[]', '新鲜有机蔬菜', 1, 200, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 3.50, 4.50, '青菜是一种十分常见的蔬菜,有很高的营养价值。它含有丰富的维生素、矿物质和膳食纤维等营养成分,对人体有很多好处。青菜不仅可以做菜吃,还可以榨汁喝,是一种很好的保健食品。', 0);
INSERT INTO `goods` VALUES (10, '橙子', 1, '京鲜生', '[]', '新鲜橙子,现摘现发', 1, 300, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 6.50, 8.50, '橙子是一种很常见的水果味道酸甜可口有很多好处。它含有丰富的维生素C和抗氧化物质能够增强免疫力、促进消化和排毒预防感冒和癌症等疾病。橙子可以直接食用或者榨汁喝也可以用来做饮料、糕点等食品。', 0);
INSERT INTO `goods` VALUES (11, '花牛苹果', 1, '佳农', '[]', '新鲜花牛苹果', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 3.50, 4.50, '这是一篮新鲜的花牛苹果,口感酸甜可口,非常适合作为水果零食食用。', 0);
INSERT INTO `goods` VALUES (12, '牛奶', 7, '伊利', '[]', '伊利纯牛奶', 1, 90, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 5.99, 7.99, '这是一盒纯牛奶,来源于天然放牧的奶牛,口感醇厚,营养丰富。', 0);
INSERT INTO `goods` VALUES (13, '酒精', 0, '利尔康', '[]', '30瓶装利尔康75%酒精消毒液大桶杀菌清洁500ml75度乙醇医疗伤口', 1, 300, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 10.00, 16.00, '医用口罩,防护效果好,适合日常出行或在公共场合佩戴。', 0);
INSERT INTO `goods` VALUES (14, '方便面', 5, '0', '[]', '康师傅牛肉面', 1, 70, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 2.50, 3.50, '这是一袋康师傅牛肉面,方便快捷,味道鲜美,非常适合作为零食食用。', 0);
INSERT INTO `goods` VALUES (15, '维生素C片', 3, 'ORIHIRO', '[]', 'VC维生素片', 1, 60, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 8.99, 10.99, '这是一瓶VC维生素片含有丰富的维生素C和其他营养成分能够增强免疫力改善皮肤质量。', 0);
INSERT INTO `goods` VALUES (16, '矿泉水', 7, '怡宝', '[]', '怡宝矿泉水', 1, 40, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 3.99, 5.99, '怡宝矿泉水', 0);
INSERT INTO `goods` VALUES (17, '牙刷', 2, '黑人', '[]', '舒适柔软的牙刷', 1, 60, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 8.99, 10.99, '这是一把舒适柔软的牙刷,能够很好地清洁牙齿,让口腔更健康。', 0);
INSERT INTO `goods` VALUES (18, '饼干', 5, '0', '[]', '酥脆的饼干', 1, 50, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 12.99, 15.99, '这是一盒酥脆的饼干,口感香脆,非常适合当零食食用。', 0);
INSERT INTO `goods` VALUES (19, '手洗液', 2, '舒肤佳', '[]', '抑菌洗手液', 1, 65, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 18.99, 21.99, '这是一瓶抑菌洗手液,能够有效地杀灭手部细菌,保持双手清洁卫生。', 0);
INSERT INTO `goods` VALUES (20, '口香糖', 5, '0', '[]', '清新口气口香糖', 1, 45, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 9.99, 12.99, '这是一盒清新口气口香糖,口感浓郁,能够有效地清除口腔异味。', 0);
INSERT INTO `goods` VALUES (21, '面膜', 2, '0', '[]', '补水保湿面膜', 1, 55, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 29.99, 35.99, '补水保湿面膜', 0);
INSERT INTO `goods` VALUES (22, '一次性医用口罩', 4, '医用口罩', '[]', '一次性医用口罩', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 5.99, 8.99, '一次性医用口罩,具有防护作用。适合在公共场所佩戴,能有效减少病毒传播。', 0);
INSERT INTO `goods` VALUES (23, '一次性手套', 4, '医用手套', '[]', '一次性医用手套', 1, 101, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 1.99, 3.99, '一次性医用手套,具有防护作用。适合在公共场所佩戴,能有效减少病毒传播。', 0);
INSERT INTO `goods` VALUES (24, '消毒液', 4, '莫雷夫', '[]', '消毒液', 1, 102, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 15.99, 18.99, '消毒液,能杀死细菌和病毒,具有杀菌消毒作用。适合在公共场所或家庭使用。', 0);
INSERT INTO `goods` VALUES (25, '体温计', 4, '博朗', '[]', '电子体温', 1, 103, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 35.99, 39.99, '电子体温计,能够准确测量体温。适合在家庭或医疗机构使用。', 0);
INSERT INTO `goods` VALUES (26, '消毒湿巾', 4, '医用湿巾', '[]', '消毒湿巾', 1, 104, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 6.99, 8.99, '消毒湿巾,能杀死细菌和病毒,具有杀菌消毒作用。适合在公共场所或家庭使用。', 0);
INSERT INTO `goods` VALUES (27, '医用隔离衣', 4, '医用', '[]', '医用隔离衣', 1, 90, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 149.99, 199.99, '医用隔离衣,用于医护人员在处理病人时的个人防护。可以有效隔离病原体和防止血液、液体的渗透,透气性好,舒适耐穿。', 0);
INSERT INTO `goods` VALUES (28, '紫外线消毒灯', 4, '普利司通', '[]', '紫外线消毒灯', 1, 80, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 249.99, 299.99, '紫外线消毒灯,可以杀死空气、表面、物品等处的细菌、病毒等微生物,达到消毒杀菌的效果。可以广泛应用于家庭、医院、学校、工厂等场所。', 0);
INSERT INTO `goods` VALUES (29, '防护面罩', 4, '防护', '[]', '防护面罩', 1, 70, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 39.99, 49.99, '防护面罩,用于工业生产中的防护、医疗卫生、防疫防护等场合。可以有效防护口鼻呼吸道受到外来飞沫、粉尘、液体等物品的侵袭,防止病毒等微生物的感染。', 0);
INSERT INTO `goods` VALUES (30, '橡胶手套', 4, '安全手套', '[]', '橡胶手套', 1, 60, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 12.99, 14.99, '橡胶手套,用于实验室、医院、化工、食品加工等场所。', 0);
INSERT INTO `goods` VALUES (31, '板蓝根颗粒', 3, '同仁堂', '[]', '板蓝根颗粒', 1, 70, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 15.99, 18.99, '板蓝根颗粒,清热解毒,适用于感冒发热等症状。每日三次,一次一袋,开水冲服。', 0);
INSERT INTO `goods` VALUES (32, '感冒灵颗粒', 3, '999', '[]', '感冒灵颗粒', 1, 80, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 25.99, 28.99, '感冒灵颗粒,缓解感冒症状,适用于感冒、咳嗽等症状。每日三次,一次一袋,开水冲服。', 0);
INSERT INTO `goods` VALUES (33, '蒲地蓝消炎片', 3, '同仁堂', '[]', '蒲地蓝消炎片', 1, 90, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 28.99, 33.99, '蒲地蓝消炎片,清热解毒,适用于上呼吸道感染等症状。每次两片,每日三次,饭前半小时服用。', 0);
INSERT INTO `goods` VALUES (34, '氯霉素眼药水', 3, '卫康', '[]', '氯霉素眼药水', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 19.99, 22.99, '氯霉素眼药水,治疗眼部感染等症状。每日三次,每次滴入一到两滴。', 0);
INSERT INTO `goods` VALUES (35, '感冒止咳糖浆', 3, '舒适达', '[]', '感冒止咳糖浆', 1, 110, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 29.99, 33.99, '感冒止咳糖浆,缓解咳嗽症状,适用于感冒、咳嗽等症状。', 0);
INSERT INTO `goods` VALUES (36, '牛排', 6, 'A牌', '[]', '精选优质牛肉', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 128.00, 98.00, '这是一道经典的西餐菜品,适合搭配蔬菜沙拉或烤蔬菜一起食用。精选优质牛肉,切成均匀的厚片,肉质鲜嫩多汁,口感十分美味。', 0);
INSERT INTO `goods` VALUES (37, '羊肉串', 6, 'B牌', '[]', '新鲜羊肉', 1, 90, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 25.00, 18.80, '这是一种很受欢迎的中式小吃,适合作为下酒菜或夜宵食用。新鲜羊肉切成均匀大小的块状,串在竹签上,经过炭火烤制,香味四溢,口感香嫩。', 0);
INSERT INTO `goods` VALUES (38, '烤鸭', 6, 'C牌', '[]', '北京烤鸭', 1, 80, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 188.00, 138.00, '这是一道北京传统名菜是中国餐饮文化的重要组成部分之一。选用饲养周期在60天以上的肥美鸭子采用传统技艺腌制经过炭火烤制外皮金黄酥脆肉质鲜嫩口感丰富。', 0);
INSERT INTO `goods` VALUES (39, '牛腩煲', 6, 'D牌', '[]', '牛肉小炒肉', 1, 70, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 58.00, 42.80, '这是一道香港地道的特色菜,非常适合在冬天享用。精选上等牛肉,切成小块,搭配多种香料和蔬菜,慢火炖制数小时,汤汁鲜美浓郁,肉质软烂易嚼。', 0);
INSERT INTO `goods` VALUES (40, '鸡肉卷', 6, 'E牌', '[]', '鸡胸肉盖饭', 1, 60, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 28.00, 19.90, '这是一道适合当做早餐或午餐的美食。选用鸡胸肉,切成薄片,搭配火腿、鲜菇、洋葱等多种食材,卷起来后煎烤,口感香嫩可口。', 0);
INSERT INTO `goods` VALUES (41, '黑椒牛柳', 6, '国贸牛肉', '[]', '国贸牛肉', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 138.00, 118.00, '这是一款以黑椒作为调味料的烤牛肉,口感香辣,肉质鲜嫩。适合烤肉或者烤箱烤制。', 0);
INSERT INTO `goods` VALUES (42, '红烧肉', 6, '泰山食品', '[]', '红烧肉', 1, 90, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 68.00, 58.00, '红烧肉是一道传统的中国菜品,选用优质的五花肉,慢火慢炖,酱汁入味,外焦里嫩,色香味俱佳。适合与米饭一起食用。', 0);
INSERT INTO `goods` VALUES (43, '蜜汁叉烧', 6, '三只松鼠', '[]', '蜜汁叉烧', 1, 80, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 38.00, 28.00, '蜜汁叉烧是一种广东传统的烤肉食品,精选猪肉,经过特殊的腌制和烤制工艺,表面呈现出一层诱人的红色。入口即化,外酥里嫩,咸香适口。适合作为下酒菜或者加入面条、炒饭等中餐中。', 0);
INSERT INTO `goods` VALUES (44, '香辣鸡翅', 6, '波司登鸡肉', '[]', '波司登鸡肉', 1, 70, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 25.00, 18.00, '选用肉质鲜嫩的鸡翅中段,搭配特制的香辣调料,烤制出来的鸡翅鲜香辣口,肉质紧实,外皮酥脆。', 0);
INSERT INTO `goods` VALUES (45, '嫩牛肉片', 6, '三元牛肉', '[]', '嫩牛肉片,口感鲜嫩,富含蛋白质', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 68.00, 59.00, '这是一款优质嫩牛肉片,富含优质蛋白质,口感极佳,适合煲汤、炒菜、火锅等多种烹饪方式', 0);
INSERT INTO `goods` VALUES (46, '鲜猪肉片', 6, '三元猪肉', '[]', '鲜猪肉片,鲜香味美,肉质细嫩', 1, 99, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 32.80, 29.90, '这是一款优质鲜猪肉片,经过严格挑选,新鲜出品,鲜香味美,肉质细嫩,是您炒菜、煲汤、烧烤的绝佳选择', 0);
INSERT INTO `goods` VALUES (47, '蒜泥白肉', 6, '三元猪肉', '[]', '鲜嫩白肉,配上酱料和蒜泥,口感鲜香', 1, 98, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 39.80, 34.90, '这是一款经典美食蒜泥白肉,选用新鲜优质猪肉,搭配上鲜美蒜泥和特制酱料,口感鲜香可口,回味无穷', 0);
INSERT INTO `goods` VALUES (48, '鸡腿肉', 6, '三元鸡肉', '[]', '鲜嫩多汁,肉质细嫩', 1, 97, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 16.80, 13.90, '这是一款新鲜的鸡腿肉,富含蛋白质,肉质细嫩,口感鲜美,适合烤着吃、烧着吃、炖着吃等多种烹饪方式', 0);
INSERT INTO `goods` VALUES (49, '碳酸饮料', 7, '可口可乐公司', '[]', '可口可乐', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 3.00, 2.50, '可口可乐是世界知名的碳酸饮料品牌,有着浓郁的可乐味,口感清爽,是人们喜欢的饮品之一。', 0);
INSERT INTO `goods` VALUES (50, '碳酸饮料', 7, '百事公司', '[]', '百事可乐', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 3.00, 2.50, '百事可乐是世界知名的碳酸饮料品牌,与可口可乐齐名,有着浓郁的可乐味,口感清爽,是人们喜欢的饮品之一。', 0);
INSERT INTO `goods` VALUES (51, '无糖碳酸饮料', 7, '可口可乐公司', '[]', '雪碧', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 3.50, 3.00, '雪碧是一种无糖碳酸饮料,口感清新,有着独特的柠檬味,深受人们的喜爱。', 0);
INSERT INTO `goods` VALUES (52, '功能性饮料', 7, '红牛公司', '[]', '红牛', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 5.00, 4.50, '红牛是一种功能性饮料,能够提供短期的能量补给,帮助人们在工作和学习中保持专注。', 0);
INSERT INTO `goods` VALUES (53, '咖啡饮品', 7, '星巴克公司', '[]', '咖啡', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 25.00, 20.00, '咖啡是一种饮用热饮,由磨碎的咖啡豆冲泡而成,具有提神醒脑、去除疲劳的作用,是人们在生活和工作中常饮用的饮品之一。', 0);
INSERT INTO `goods` VALUES (54, '可口可乐', 7, '可口可乐公司', '[]', '可口可乐Coca-Cola', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 5.00, 3.50, '可口可乐Coca-Cola是美国可口可乐公司生产的一种碳酸软饮料源自1886年由美国药剂师John Stith Pemberton发明的法国可卡因酒后于1888年更名为可口可乐。可口可乐是全球最具价值的品牌之一也是全球最畅销的碳酸软饮料之一。', 0);
INSERT INTO `goods` VALUES (55, '百事可乐', 7, '百事公司', '[]', '百事可乐Pepsi-Cola', 1, 99, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 5.00, 3.50, '百事可乐Pepsi-Cola是由美国百事公司生产的一种碳酸软饮料。百事可乐的味道类似于可口可乐但口感略微不同因此两种饮料在市场上形成了一种明显的竞争关系。', 0);
INSERT INTO `goods` VALUES (56, '康师傅冰红茶', 7, '康师傅集团', '[]', '康师傅冰红茶', 1, 98, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 4.00, 2.50, '康师傅冰红茶是一种深受广大消费者喜爱的茶饮料,口感香甜,清新解渴。康师傅是中国著名的食品生产企业,其产品包括方便面、速冻食品、饮料等。', 0);
INSERT INTO `goods` VALUES (57, '怡宝矿泉水', 7, '怡宝集团', '[]', '怡宝矿泉水', 1, 97, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 3.00, 2.00, '怡宝矿泉水是一种天然的矿泉水,口感清新,无任何添加剂,非常适合日常饮用。怡宝集团是中国知名的饮料生产企业,其产品包括矿泉水、纯净水、茶饮料等。', 0);
INSERT INTO `goods` VALUES (58, '沐浴露', 2, '施巴', '[]', '施巴舒缓滋润沐浴露', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 49.90, 39.90, '施巴舒缓滋润沐浴露,富含甘油和天然植物精华,能够滋润肌肤', 0);
INSERT INTO `goods` VALUES (59, '洗衣液', 2, '威露士', '[]', '威露士洗衣液', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 25.00, 29.90, '威露士洗衣液,洁净彻底,去除顽渍,衣物柔软舒适。适用于各种布料。', 0);
INSERT INTO `goods` VALUES (60, '洗碗布', 2, '无品牌', '[]', '柔软吸水,耐用不掉毛', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 3.00, 5.00, '适用于洗涤餐具、清洁厨房等', 0);
INSERT INTO `goods` VALUES (61, '一次性餐具套装', 2, '无品牌', '[]', '一次性餐具套装,方便卫生', 1, 99, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 8.00, 12.00, '包含一次性碗、盘、刀、叉、勺等,使用后方便清理,卫生方便', 0);
INSERT INTO `goods` VALUES (62, '剃须刀', 2, '飞利浦', '[]', '飞利浦电动剃须刀,充电式', 1, 80, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 199.00, 299.00, '适用于男性剃须,充电式方便携带,刀片锋利,剃须干净', 0);
INSERT INTO `goods` VALUES (63, '马桶刷', 2, '无品牌', '[]', '马桶清洁必备,柄部防滑设计', 1, 150, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 5.00, 9.90, '适用于马桶清洁,柄部采用防滑设计,方便操作', 0);
INSERT INTO `goods` VALUES (64, '抽纸', 2, '维达', '[]', '维达软抽3层130抽面纸', 1, 50, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 14.50, 18.00, '适用于日常生活,柔软舒适,吸水性好,可重复使用', 0);
INSERT INTO `goods` VALUES (65, '剪刀', 2, '晨光', '[]', '晨光不锈钢剪刀', 1, 120, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 9.90, 12.00, '适用于日常生活、办公等,剪刀锋利,手感舒适', 0);
INSERT INTO `goods` VALUES (66, '防晒霜', 2, '兰蔻', '[]', '兰蔻防晒霜SPF50+', 1, 60, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 299.00, 399.00, '适用于户外活动、日常生活等,有效防止紫外线伤害,清爽不油腻,易于吸收', 0);
INSERT INTO `goods` VALUES (67, '纸巾盒', 2, '普乐士', '[]', '普乐士魔法盒抽纸盒', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 12.50, 15.00, '', 0);
INSERT INTO `goods` VALUES (68, '洗洁精', 2, '威露士', '[]', '威露士洗洁精', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 9.99, 12.99, '威露士洗洁精,有效去除油渍和污垢,轻松清洁厨房餐具。', 0);
INSERT INTO `goods` VALUES (69, '洗手液', 2, '蜜芽', '[]', '蜜芽儿童无刺激洗手液', 1, 99, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 19.99, 22.99, '蜜芽儿童无刺激洗手液,温和配方,不刺激肌肤,适合儿童使用。', 0);
INSERT INTO `goods` VALUES (70, '电动牙刷', 2, '飞利浦', '[]', '飞利浦声波震动电动牙刷', 1, 98, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 299.00, 399.00, '飞利浦声波震动电动牙刷,高效清洁牙齿,深入去除牙渍,呵护牙齿健康。', 0);
INSERT INTO `goods` VALUES (71, '梳子', 2, '宝洁', '[]', '宝洁双面按摩梳', 1, 97, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 12.99, 15.99, '宝洁双面按摩梳,双面设计,可以按摩头皮,缓解疲劳,也可以梳理发丝,让发型更加完美。', 0);
INSERT INTO `goods` VALUES (72, '洗衣液', 2, '妙洁', '[]', '妙洁深层洁净洗衣液', 1, 96, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 29.99, 39.99, '妙洁深层洁净洗衣液,有效去除衣物污渍,保护衣物纤维,让衣服更柔软。', 0);
INSERT INTO `goods` VALUES (73, '纸巾', 2, '维达', '[]', '维达抽纸', 1, 95, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 19.99, 22.99, '维达抽纸,柔软舒适,吸水性好,不易破碎。', 0);
INSERT INTO `goods` VALUES (74, '剪刀', 2, '福尺', '[]', '福尺多功能剪刀', 1, 94, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 9.99, 12.99, '福尺多功能剪刀', 0);
INSERT INTO `goods` VALUES (75, '薯片', 5, '乐事', '[]', '薯片', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 8.00, 10.00, '美味薯片,酥脆可口,适合下午茶。', 0);
INSERT INTO `goods` VALUES (76, '巧克力', 5, '德芙', '[]', '德芙巧克力', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 20.00, 25.00, '德芙巧克力,甜美可口,适合送礼。', 0);
INSERT INTO `goods` VALUES (77, '蜜饯', 5, '三只松鼠', '[]', '三只松鼠夏威夷果', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 18.00, 20.00, '三只松鼠夏威夷果,口感香甜,健康零食。', 0);
INSERT INTO `goods` VALUES (78, '牛肉干', 5, '卫龙', '[]', '麻辣牛肉干', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 15.00, 20.00, '卫龙麻辣牛肉干,辣味十足,爽口不腻。', 0);
INSERT INTO `goods` VALUES (79, '薄荷糖', 5, '金丝猴', '[]', '金丝猴薄荷糖', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 10.00, 12.00, '金丝猴薄荷糖,口感清新,适合口气不佳的人。', 0);
INSERT INTO `goods` VALUES (80, '奥利奥饼干', 5, 'Oreo', '[]', '经典口味奥利奥饼干', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 18.00, 16.99, '经典口味奥利奥饼干,酥脆可口,一口一个,让你停不下来。', 0);
INSERT INTO `goods` VALUES (81, '可口可乐', 7, 'Coca-Cola', '[]', '经典可口可乐', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 3.00, 2.50, '可口可乐,清爽解渴,适合任何场合。', 0);
INSERT INTO `goods` VALUES (82, '大白兔奶糖', 5, '大白兔', '[]', '经典奶香味道', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 5.00, 4.50, '大白兔奶糖,经典奶香味道,口感绵软。', 0);
INSERT INTO `goods` VALUES (83, '卫龙辣条', 5, '卫龙', '[]', '经典辣味', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 6.00, 5.50, '卫龙辣条,经典辣味,辣爽可口,不同于其他辣条。', 0);
INSERT INTO `goods` VALUES (84, '雀巢咖啡', 5, 'Nestle', '[]', '拿铁口味', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 20.00, 18.99, '雀巢咖啡,拿铁口味,浓郁香醇,唤醒你的味蕾。', 0);
INSERT INTO `goods` VALUES (85, '伊利纯牛奶', 7, '伊利', '[]', '高端纯牛奶', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 5.00, 4.80, '伊利纯牛奶,高端纯牛奶,口感绵密,适合慢慢品尝。', 0);
INSERT INTO `goods` VALUES (86, '太平梳打饼干', 5, '太平', '[]', '酥脆可口', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 10.00, 8.50, '太平梳打饼干,酥脆可口,咬一口,满口的香脆声。', 0);
INSERT INTO `goods` VALUES (87, '德芙巧克力', 5, 'Dove', '[]', '丝滑绵密', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/webp', 0, '', 30.00, 28.50, '德芙巧克力,丝滑绵密,一口一个,舌尖上的享受。', 0);
-- ----------------------------
-- Table structure for goods_category
-- ----------------------------
DROP TABLE IF EXISTS `goods_category`;
CREATE TABLE `goods_category` (
`id` bigint(11) NOT NULL AUTO_INCREMENT,
`category_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '商品分类名',
`order` int(11) NULL DEFAULT NULL COMMENT '排序',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of goods_category
-- ----------------------------
INSERT INTO `goods_category` VALUES (1, '水果蔬菜', 1);
INSERT INTO `goods_category` VALUES (2, '日用品', 8);
INSERT INTO `goods_category` VALUES (3, '药品', 10);
INSERT INTO `goods_category` VALUES (4, '防疫物资', 0);
INSERT INTO `goods_category` VALUES (5, '零食', 3);
INSERT INTO `goods_category` VALUES (6, '肉类', 2);
INSERT INTO `goods_category` VALUES (7, '饮料酒水', 4);
-- ----------------------------
-- Table structure for notice1
-- ----------------------------
DROP TABLE IF EXISTS `notice1`;
CREATE TABLE `notice1` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标题',
`content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '内容',
`time` date NULL DEFAULT NULL COMMENT '时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of notice1
-- ----------------------------
INSERT INTO `notice1` VALUES (1, '请各位学生戴好口罩', NULL, '2022-03-15');
INSERT INTO `notice1` VALUES (2, '请各位学生不要随意出入校门', NULL, '2022-03-15');
INSERT INTO `notice1` VALUES (7, '11', '22', '2022-03-22');
INSERT INTO `notice1` VALUES (8, '22', '22', '2022-04-14');
INSERT INTO `notice1` VALUES (9, '33', '33', '2022-04-14');
-- ----------------------------
-- Table structure for order
-- ----------------------------
DROP TABLE IF EXISTS `order`;
CREATE TABLE `order` (
`id` bigint(20) NOT NULL COMMENT '订单ID',
`user_id` int(11) NOT NULL COMMENT '用户ID',
`order_date` datetime NOT NULL COMMENT '订单日期',
`order_status` enum('Pending','Processing','Shipped','Delivered','Cancelled') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '订单状态',
PRIMARY KEY (`id`) USING BTREE,
INDEX `user_id`(`user_id`) USING BTREE,
UNIQUE INDEX `id`(`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of order
-- ----------------------------
-- ----------------------------
-- Table structure for order_detail
-- ----------------------------
DROP TABLE IF EXISTS `order_detail`;
CREATE TABLE `order_detail` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '订单详情ID',
`order_id` bigint(20) NOT NULL COMMENT '订单ID',
`good_id` bigint(20) UNSIGNED NOT NULL COMMENT '商品ID',
`good_count` int(11) NOT NULL COMMENT '商品数量',
`unit_price` decimal(10, 2) NOT NULL COMMENT '下单时商品单价',
PRIMARY KEY (`id`) USING BTREE,
INDEX `order_id`(`order_id`) USING BTREE,
INDEX `good_id`(`good_id`) USING BTREE,
CONSTRAINT `order_detail_ibfk_1` FOREIGN KEY (`good_id`) REFERENCES `goods` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
CONSTRAINT `order_detail_ibfk_2` FOREIGN KEY (`order_id`) REFERENCES `order` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of order_detail
-- ----------------------------
-- ----------------------------
-- Table structure for report
-- ----------------------------
DROP TABLE IF EXISTS `report`;
CREATE TABLE `report` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NULL DEFAULT NULL COMMENT '用户id',
`name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '姓名',
`time` datetime NULL DEFAULT NULL COMMENT '填报时间',
`temperature` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '体温是否正常',
`address` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '地址',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 60 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of report
-- ----------------------------
INSERT INTO `report` VALUES (53, 1, '管理员 密码root', '2022-12-26 20:35:38', '1', '湖北省武汉市洪山区文治街南湖雅园(洪山区信访局对面)');
INSERT INTO `report` VALUES (55, 1, '管理员 密码root', '2022-12-27 21:03:24', '0', '湖北省武汉市洪山区文治街508号南湖雅园F栋2-104号');
INSERT INTO `report` VALUES (57, 1, '管理员 密码root', '2022-12-28 21:47:57', '0', '湖北省武汉市洪山区文治街南湖雅园(洪山区信访局对面)');
INSERT INTO `report` VALUES (58, 1, '管理员 密码root', '2022-12-29 18:20:00', '1', '湖北省武汉市洪山区鲁磨路209号');
INSERT INTO `report` VALUES (59, 1, '管理员 密码root', '2023-03-17 00:27:21', '0', '湖北省武汉市洪山区雄楚大道珞狮南路南湖雅园F-4-106');
-- ----------------------------
-- Table structure for setting
-- ----------------------------
DROP TABLE IF EXISTS `setting`;
CREATE TABLE `setting` (
`key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`time` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间或失效时间具体根据key来判断',
UNIQUE INDEX `key`(`key`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of setting
-- ----------------------------
INSERT INTO `setting` VALUES ('wechat_access_token', '66_sC2-1ygooBWjbLaEz2-or6IGqFs76UvUnRIpxXo_rJqw2BS45J_X128_xks1ekQPvF6LK22AcfA6d7OmcBWeulrRhUFNO3MPaog-_u-TqJxQ6XoRUPN9iUWR0Y8HQWiAGAUDJ', '2023-03-07 01:19:44');
-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户名',
`password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '密码',
`realname` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '真实姓名',
`id_number` varchar(18) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '身份证号',
`phone_number` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '手机号',
`role` int(11) NOT NULL COMMENT '角色 (0-超级管理员 1-工作人员 2-社区居民_房主 3-社区居民_家庭成员 4-社区居民_租客 5-访客)',
`building_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '门栋号+单元号',
`doorplate` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '门牌号',
`permission` int(11) NOT NULL DEFAULT 0 COMMENT '进出权限 (0-无 1-继承(普通居民) 2-永久 3-限时)',
`permission_time` datetime NULL DEFAULT NULL COMMENT '进出权限失效时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 22 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of user
-- ----------------------------
INSERT INTO `user` VALUES (1, 'root', '99adc231b045331e514a516b4b7680f588e3823213abe901738bc3ad67b2f6fcb3c64efb93d18002588d3ccc1a49efbae1ce20cb43df36b38651f11fa75678e8', '管理员 密码root', '420111111111111111', NULL, 2, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (2, 'lhz', 'lhz', '廖鸿志', NULL, NULL, 2, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (3, '21180000', '21180000', '', NULL, NULL, 2, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (4, '211', '211', '11', NULL, NULL, 2, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (5, '2111', '2111', '111', NULL, NULL, 1, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (6, '222', '222', '33', NULL, NULL, 2, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (7, '33', '33', '44', NULL, NULL, 2, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (8, 'test', '1', 'test', NULL, NULL, 3, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (9, '123456', '123456', '123456', NULL, NULL, 2, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (10, '211806336', '211806336', '211806336', NULL, NULL, 2, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (11, '001', '001', '老师', NULL, NULL, 1, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (12, '002', '002', '刘鸿宇', NULL, NULL, 2, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (13, 'z', 'zz', 'z', NULL, NULL, 2, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (14, '111', '222', '222', NULL, NULL, 222, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (15, '222', '222', '222', NULL, NULL, 222, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (16, '222', '222', '222', NULL, NULL, 222, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (17, '111111111111', '111111111111', '111111111111', NULL, NULL, 2, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (18, '12', '12', '12', NULL, NULL, 2, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (19, '210602212109', '210602212109', '曾子华', NULL, NULL, 2, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (20, 'undefined', 'undefined', '信息2121', NULL, NULL, 2, NULL, NULL, 0, NULL);
INSERT INTO `user` VALUES (21, '2', '2', '', NULL, NULL, 2, NULL, NULL, 0, NULL);
-- ----------------------------
-- Table structure for visitor1
-- ----------------------------
DROP TABLE IF EXISTS `visitor1`;
CREATE TABLE `visitor1` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`time` datetime NULL DEFAULT NULL COMMENT '预约时间',
`phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '预约用户id',
`issue` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '预约事由',
`meet_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '会见人姓名',
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
`state` int(11) NULL DEFAULT 0 COMMENT '状态0审批中1成功2驳回',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 15 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of visitor1
-- ----------------------------
INSERT INTO `visitor1` VALUES (1, '2022-03-09 09:46:50', '136', NULL, NULL, NULL, 1);
INSERT INTO `visitor1` VALUES (2, '2022-03-09 00:00:00', '1', '2', '王老师', NULL, 1);
INSERT INTO `visitor1` VALUES (3, '2022-03-13 00:00:00', '123', '123', '123', NULL, 1);
INSERT INTO `visitor1` VALUES (4, '2022-03-17 00:00:00', '183', '11', '1111', NULL, 1);
INSERT INTO `visitor1` VALUES (5, '2022-03-20 07:00:00', '15555150781', '测试', '王德发', NULL, 1);
INSERT INTO `visitor1` VALUES (6, '2022-03-20 07:00:00', '15555150782', '测试', '王德发', NULL, 1);
INSERT INTO `visitor1` VALUES (7, '2022-03-20 00:00:00', '12345', '返校', '自己', NULL, 1);
INSERT INTO `visitor1` VALUES (8, '2022-03-21 00:00:00', '1', '1', '1', NULL, 1);
INSERT INTO `visitor1` VALUES (9, '2022-03-22 00:00:00', '11', '11', '1', NULL, 1);
INSERT INTO `visitor1` VALUES (10, '2022-03-22 00:00:00', '183', '1', '123', NULL, 1);
INSERT INTO `visitor1` VALUES (11, '2022-04-20 00:00:00', '19851691582', '看吧', '哈哈', NULL, 0);
INSERT INTO `visitor1` VALUES (12, '2022-04-26 00:00:00', '18835381168', 'jin', 'zhang ', NULL, 0);
INSERT INTO `visitor1` VALUES (13, '2022-06-15 00:00:00', '18250314786', '1', '1', NULL, 1);
INSERT INTO `visitor1` VALUES (14, '2022-10-08 00:00:00', '151000', '入校', '王龙', NULL, 0);
SET FOREIGN_KEY_CHECKS = 1;

View File

@ -0,0 +1,47 @@
我在用Springboot构建商城网站后台请帮我写出商品下单部分Service层代码只需要写出核心代码即可不用输出完整代码。
不要用@Autowired使用@Resource代替
CREATE TABLE `goods` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`goods_name` varchar(127) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '商品名称',
`category_id` int(11) NULL DEFAULT 0 COMMENT '商品所属类目ID',
`brand` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '0' COMMENT '商品品牌',
`gallery` varchar(1023) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '[]' COMMENT '商品宣传图片列表采用JSON数组格式',
`brief` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '商品简介',
`is_on_sale` tinyint(1) NULL DEFAULT 1 COMMENT '是否上架 0为下架 1为上架',
`sort_order` smallint(4) NULL DEFAULT 100 COMMENT '排序',
`pic_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '商品页面商品图片',
`type` tinyint(1) NULL DEFAULT 0 COMMENT '商品类型',
`unit` varchar(31) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '件' COMMENT '商品单位,例如件、盒',
`counter_price` decimal(10, 2) NULL DEFAULT 0.00 COMMENT '专柜价格(原价 / 划线价)',
`retail_price` decimal(10, 2) NULL DEFAULT 100000.00 COMMENT '零售价格(售价 / 未划线价)',
`detail` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '商品详细介绍,是富文本格式',
`deleted` tinyint(1) NULL DEFAULT 0 COMMENT '逻辑删除 0为正常 1为删除',
PRIMARY KEY (`id`) USING BTREE,
INDEX `category_id`(`category_id`) USING BTREE,
INDEX `brand_id`(`brand`) USING BTREE,
INDEX `sort_order`(`sort_order`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 23 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '商品基本信息表' ROW_FORMAT = Dynamic;
CREATE TABLE `goods_category` (
`id` bigint(11) NOT NULL AUTO_INCREMENT,
`category_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '商品分类名',
`order` int(11) NULL DEFAULT NULL COMMENT '排序',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
CREATE TABLE `orders` (
`order_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '订单ID',
`user_id` int(11) NOT NULL COMMENT '用户ID',
`order_date` date NOT NULL COMMENT '订单日期',
`order_status` enum('Pending','Processing','Shipped','Delivered','Cancelled') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '订单状态',
PRIMARY KEY (`order_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
CREATE TABLE `goods_order_details` (
`order_detail_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '订单详情ID',
`order_id` int(11) NOT NULL COMMENT '订单ID',
`product_id` int(11) NOT NULL COMMENT '商品ID',
`product_quantity` int(11) NOT NULL COMMENT '商品数量',
PRIMARY KEY (`order_detail_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;

View File

@ -0,0 +1,38 @@
请帮我将以下表转换为Java POJO对象不需要getter和setter
CREATE TABLE `goods_order_details` (
`order_detail_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '订单详情ID',
`order_id` int(11) NOT NULL COMMENT '订单ID',
`product_id` int(11) NOT NULL COMMENT '商品ID',
`product_quantity` int(11) NOT NULL COMMENT '商品数量',
PRIMARY KEY (`order_detail_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
CREATE TABLE `orders` (
`order_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '订单ID',
`user_id` int(11) NOT NULL COMMENT '用户ID',
`order_date` date NOT NULL COMMENT '订单日期',
`order_status` enum('Pending','Processing','Shipped','Delivered','Cancelled') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '订单状态',
PRIMARY KEY (`order_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
例如Good的对象为
@Data
public class Good {
Long id;
String goodsName;
Integer categoryId;
String brand;
String gallery;
String brief;
Boolean isOnSale;
String picUrl;
Integer type;
String unit;
Double counterPrice;
Double retailPrice;
String detail;
Boolean deleted;
}