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

我的订单点击跳转订单详情页;订单详情页展示订单总金额;立即下单可以选择商品数量

This commit is contained in:
程序员小墨 2023-03-21 16:36:13 +08:00
parent 87eaf03b9d
commit 0e83116550
12 changed files with 290 additions and 141 deletions

View File

@ -4,6 +4,7 @@ import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
import java.math.BigDecimal;
import java.time.LocalDateTime; import java.time.LocalDateTime;
@Data @Data
@ -14,4 +15,6 @@ public class Order {
private Integer userId; private Integer userId;
private LocalDateTime orderDate; private LocalDateTime orderDate;
private String orderStatus; private String orderStatus;
private BigDecimal orderPrice;
private LocalDateTime payDate;
} }

View File

@ -8,6 +8,7 @@ import lombok.experimental.Accessors;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import java.io.Serializable; import java.io.Serializable;
import java.math.RoundingMode;
import java.time.LocalDateTime; import java.time.LocalDateTime;
import java.util.List; import java.util.List;
import java.util.stream.Collectors; import java.util.stream.Collectors;
@ -23,6 +24,9 @@ public class OrderVO implements Serializable {
private Integer userId; private Integer userId;
private LocalDateTime orderDate; private LocalDateTime orderDate;
private String orderStatus; private String orderStatus;
private String orderStatusCode;
private String orderPrice;
private LocalDateTime payDate;
public static OrderVO convertFrom(Order order) { public static OrderVO convertFrom(Order order) {
if (order == null) { if (order == null) {
@ -34,6 +38,9 @@ public class OrderVO implements Serializable {
orderVO.setId(String.valueOf(order.getId())); // 转成字符串 避免前端丢失精度 orderVO.setId(String.valueOf(order.getId())); // 转成字符串 避免前端丢失精度
OrderStatus orderStatus = OrderStatus.get(order.getOrderStatus()); OrderStatus orderStatus = OrderStatus.get(order.getOrderStatus());
orderVO.setOrderStatus(orderStatus.toString()); orderVO.setOrderStatus(orderStatus.toString());
orderVO.setOrderStatusCode(order.getOrderStatus());
String price = order.getOrderPrice().setScale(2, RoundingMode.FLOOR).toPlainString();
orderVO.setOrderPrice(price);
return orderVO; return orderVO;
} }

View File

@ -14,6 +14,7 @@ import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.interceptor.TransactionAspectSupport; import org.springframework.transaction.interceptor.TransactionAspectSupport;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.math.BigDecimal;
import java.time.LocalDateTime; import java.time.LocalDateTime;
import java.util.List; import java.util.List;
@ -40,13 +41,16 @@ public class OrderService {
SnowflakeManager snowflakeManager = new SnowflakeManager(1L, 1L); SnowflakeManager snowflakeManager = new SnowflakeManager(1L, 1L);
long orderId = snowflakeManager.nextValue(); long orderId = snowflakeManager.nextValue();
// 订单总金额
BigDecimal totalPrice = new BigDecimal(0);
// 创建订单 // 创建订单
Order order = new Order(); Order order = new Order();
order.setId(orderId); order.setId(orderId);
order.setUserId(userId); order.setUserId(userId);
order.setOrderDate(LocalDateTime.now()); order.setOrderDate(LocalDateTime.now());
order.setOrderStatus(OrderStatus.PENDING.getValue()); order.setOrderStatus(OrderStatus.PENDING.getValue());
orderDao.insertOrder(order);
// 创建订单详情 // 创建订单详情
for (OrderDetail orderItem : orderItemList) { for (OrderDetail orderItem : orderItemList) {
@ -66,7 +70,16 @@ public class OrderService {
orderItem.setId(null); orderItem.setId(null);
orderItem.setOrderId(orderId); orderItem.setOrderId(orderId);
orderItem.setUnitPrice(retailPrice); orderItem.setUnitPrice(retailPrice);
// 计入订单总价
BigDecimal goodPrice = BigDecimal.valueOf(retailPrice * orderItem.getGoodCount());
totalPrice = totalPrice.add(goodPrice);
} }
// 订单总价
order.setOrderPrice(totalPrice);
orderDao.insertOrder(order);
orderDao.batchInsertOrderDetail(orderItemList); orderDao.batchInsertOrderDetail(orderItemList);
return orderId; return orderId;
} }

View File

@ -46,8 +46,8 @@
<!-- 创建订单 --> <!-- 创建订单 -->
<insert id="insertOrder" parameterType="com.cxyxiaomo.epp.common.pojo.Order" useGeneratedKeys="true" <insert id="insertOrder" parameterType="com.cxyxiaomo.epp.common.pojo.Order" useGeneratedKeys="true"
keyProperty="orderId"> keyProperty="orderId">
INSERT INTO `order` (id, user_id, order_date, order_status) INSERT INTO `order` (id, user_id, order_date, order_status, order_price)
VALUES (#{id}, #{userId}, #{orderDate,javaType=java.time.LocalDateTime,jdbcType=TIMESTAMP}, #{orderStatus}) VALUES (#{id}, #{userId}, #{orderDate,javaType=java.time.LocalDateTime,jdbcType=TIMESTAMP}, #{orderStatus}, #{orderPrice})
</insert> </insert>
<!-- 批量插入订单详情 --> <!-- 批量插入订单详情 -->

View File

@ -11,7 +11,7 @@
Target Server Version : 80012 Target Server Version : 80012
File Encoding : 65001 File Encoding : 65001
Date: 20/03/2023 00:21:56 Date: 21/03/2023 16:33:57
*/ */
SET NAMES utf8mb4; SET NAMES utf8mb4;
@ -32,7 +32,7 @@ CREATE TABLE `apply1` (
`state` int(11) NULL DEFAULT 0 COMMENT '状态(0:审批中,1:通过,2:驳回)', `state` int(11) NULL DEFAULT 0 COMMENT '状态(0:审批中,1:通过,2:驳回)',
`reason` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '驳回原因', `reason` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '驳回原因',
PRIMARY KEY (`id`) USING BTREE PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 13 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; ) ENGINE = InnoDB AUTO_INCREMENT = 12 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
-- ---------------------------- -- ----------------------------
-- Records of apply1 -- Records of apply1
@ -76,7 +76,7 @@ CREATE TABLE `feedback1` (
`user_id` int(11) NULL DEFAULT NULL COMMENT '反馈用户id', `user_id` int(11) NULL DEFAULT NULL COMMENT '反馈用户id',
`reply` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '回复', `reply` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '回复',
PRIMARY KEY (`id`) USING BTREE PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; ) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
-- ---------------------------- -- ----------------------------
-- Records of feedback1 -- Records of feedback1
@ -111,98 +111,98 @@ CREATE TABLE `goods` (
INDEX `category_id`(`category_id`) USING BTREE, INDEX `category_id`(`category_id`) USING BTREE,
INDEX `brand_id`(`brand`) USING BTREE, INDEX `brand_id`(`brand`) USING BTREE,
INDEX `sort_order`(`sort_order`) 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; ) ENGINE = InnoDB AUTO_INCREMENT = 88 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '商品基本信息表' ROW_FORMAT = Dynamic;
-- ---------------------------- -- ----------------------------
-- Records of goods -- 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 (1, '口罩', 4, '千驰医疗器械', '[]', '一次性口罩', 1, 80, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (2, '水银温度计', 4, '千驰医疗器械', '[]', '医用玻璃水银体温计腋下温度计家用成人儿童婴儿口腔发烧探热针', 1, 200, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (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/jpg', 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 (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/jpg', 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 (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/jpg', 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 (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/jpg', 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 (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/jpg', 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 (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/jpg', 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 (9, '青菜', 1, '京鲜生', '[]', '新鲜有机蔬菜', 1, 200, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (10, '橙子', 1, '京鲜生', '[]', '新鲜橙子,现摘现发', 1, 300, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (11, '花牛苹果', 1, '佳农', '[]', '新鲜花牛苹果', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (12, '牛奶', 7, '伊利', '[]', '伊利纯牛奶', 1, 90, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (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/jpg', 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 (14, '方便面', 5, '0', '[]', '康师傅牛肉面', 1, 70, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (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/jpg', 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 (16, '矿泉水', 7, '怡宝', '[]', '怡宝矿泉水', 1, 40, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (17, '牙刷', 2, '黑人', '[]', '舒适柔软的牙刷', 1, 60, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (18, '饼干', 5, '0', '[]', '酥脆的饼干', 1, 50, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (19, '手洗液', 2, '舒肤佳', '[]', '抑菌洗手液', 1, 65, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (20, '口香糖', 5, '0', '[]', '清新口气口香糖', 1, 45, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (21, '面膜', 2, '0', '[]', '补水保湿面膜', 1, 55, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (22, '一次性医用口罩', 4, '医用口罩', '[]', '一次性医用口罩', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (23, '一次性手套', 4, '医用手套', '[]', '一次性医用手套', 1, 101, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (24, '消毒液', 4, '莫雷夫', '[]', '消毒液', 1, 102, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (25, '体温计', 4, '博朗', '[]', '电子体温', 1, 103, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (26, '消毒湿巾', 4, '医用湿巾', '[]', '消毒湿巾', 1, 104, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (27, '医用隔离衣', 4, '医用', '[]', '医用隔离衣', 1, 90, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (28, '紫外线消毒灯', 4, '普利司通', '[]', '紫外线消毒灯', 1, 80, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (29, '防护面罩', 4, '防护', '[]', '防护面罩', 1, 70, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (30, '橡胶手套', 4, '安全手套', '[]', '橡胶手套', 1, 60, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (31, '板蓝根颗粒', 3, '同仁堂', '[]', '板蓝根颗粒', 1, 70, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (32, '感冒灵颗粒', 3, '999', '[]', '感冒灵颗粒', 1, 80, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (33, '蒲地蓝消炎片', 3, '同仁堂', '[]', '蒲地蓝消炎片', 1, 90, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (34, '氯霉素眼药水', 3, '卫康', '[]', '氯霉素眼药水', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (35, '感冒止咳糖浆', 3, '舒适达', '[]', '感冒止咳糖浆', 1, 110, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (36, '牛排', 6, 'A牌', '[]', '精选优质牛肉', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (37, '羊肉串', 6, 'B牌', '[]', '新鲜羊肉', 1, 90, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (38, '烤鸭', 6, 'C牌', '[]', '北京烤鸭', 1, 80, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (39, '牛腩煲', 6, 'D牌', '[]', '牛肉小炒肉', 1, 70, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (40, '鸡肉卷', 6, 'E牌', '[]', '鸡胸肉盖饭', 1, 60, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (41, '黑椒牛柳', 6, '国贸牛肉', '[]', '国贸牛肉', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (42, '红烧肉', 6, '泰山食品', '[]', '红烧肉', 1, 90, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (43, '蜜汁叉烧', 6, '三只松鼠', '[]', '蜜汁叉烧', 1, 80, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (44, '香辣鸡翅', 6, '波司登鸡肉', '[]', '波司登鸡肉', 1, 70, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (45, '嫩牛肉片', 6, '三元牛肉', '[]', '嫩牛肉片,口感鲜嫩,富含蛋白质', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (46, '鲜猪肉片', 6, '三元猪肉', '[]', '鲜猪肉片,鲜香味美,肉质细嫩', 1, 99, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (47, '蒜泥白肉', 6, '三元猪肉', '[]', '鲜嫩白肉,配上酱料和蒜泥,口感鲜香', 1, 98, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (48, '鸡腿肉', 6, '三元鸡肉', '[]', '鲜嫩多汁,肉质细嫩', 1, 97, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (49, '碳酸饮料', 7, '可口可乐公司', '[]', '可口可乐', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (50, '碳酸饮料', 7, '百事公司', '[]', '百事可乐', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (51, '无糖碳酸饮料', 7, '可口可乐公司', '[]', '雪碧', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (52, '功能性饮料', 7, '红牛公司', '[]', '红牛', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (53, '咖啡饮品', 7, '星巴克公司', '[]', '咖啡', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (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/jpg', 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 (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/jpg', 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 (56, '康师傅冰红茶', 7, '康师傅集团', '[]', '康师傅冰红茶', 1, 98, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (57, '怡宝矿泉水', 7, '怡宝集团', '[]', '怡宝矿泉水', 1, 97, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (58, '沐浴露', 2, '施巴', '[]', '施巴舒缓滋润沐浴露', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (59, '洗衣液', 2, '威露士', '[]', '威露士洗衣液', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (60, '洗碗布', 2, '无品牌', '[]', '柔软吸水,耐用不掉毛', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (61, '一次性餐具套装', 2, '无品牌', '[]', '一次性餐具套装,方便卫生', 1, 99, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (62, '剃须刀', 2, '飞利浦', '[]', '飞利浦电动剃须刀,充电式', 1, 80, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (63, '马桶刷', 2, '无品牌', '[]', '马桶清洁必备,柄部防滑设计', 1, 150, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (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/jpg', 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 (65, '剪刀', 2, '晨光', '[]', '晨光不锈钢剪刀', 1, 120, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (66, '防晒霜', 2, '兰蔻', '[]', '兰蔻防晒霜SPF50+', 1, 60, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (67, '纸巾盒', 2, '普乐士', '[]', '普乐士魔法盒抽纸盒', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (68, '洗洁精', 2, '威露士', '[]', '威露士洗洁精', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (69, '洗手液', 2, '蜜芽', '[]', '蜜芽儿童无刺激洗手液', 1, 99, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (70, '电动牙刷', 2, '飞利浦', '[]', '飞利浦声波震动电动牙刷', 1, 98, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (71, '梳子', 2, '宝洁', '[]', '宝洁双面按摩梳', 1, 97, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (72, '洗衣液', 2, '妙洁', '[]', '妙洁深层洁净洗衣液', 1, 96, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (73, '纸巾', 2, '维达', '[]', '维达抽纸', 1, 95, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (74, '剪刀', 2, '福尺', '[]', '福尺多功能剪刀', 1, 94, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (75, '薯片', 5, '乐事', '[]', '薯片', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (76, '巧克力', 5, '德芙', '[]', '德芙巧克力', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (77, '蜜饯', 5, '三只松鼠', '[]', '三只松鼠夏威夷果', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (78, '牛肉干', 5, '卫龙', '[]', '麻辣牛肉干', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (79, '薄荷糖', 5, '金丝猴', '[]', '金丝猴薄荷糖', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (80, '奥利奥饼干', 5, 'Oreo', '[]', '经典口味奥利奥饼干', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (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/jpg', 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 (82, '大白兔奶糖', 5, '大白兔', '[]', '经典奶香味道', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (83, '卫龙辣条', 5, '卫龙', '[]', '经典辣味', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (84, '雀巢咖啡', 5, 'Nestle', '[]', '拿铁口味', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (85, '伊利纯牛奶', 7, '伊利', '[]', '高端纯牛奶', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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 (86, '太平梳打饼干', 5, '太平', '[]', '酥脆可口', 1, 100, 'https://cdn-we-retail.ym.tencent.com/tsr/goods/muy-3a.png?imageMogr2/thumbnail/320x320/quality/70/strip/format/jpg', 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); 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/jpg', 0, '', 30.00, 28.50, '德芙巧克力,丝滑绵密,一口一个,舌尖上的享受。', 0);
-- ---------------------------- -- ----------------------------
-- Table structure for goods_category -- Table structure for goods_category
@ -213,7 +213,7 @@ CREATE TABLE `goods_category` (
`category_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '商品分类名', `category_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '商品分类名',
`order` int(11) NULL DEFAULT NULL COMMENT '排序', `order` int(11) NULL DEFAULT NULL COMMENT '排序',
PRIMARY KEY (`id`) USING BTREE PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; ) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ---------------------------- -- ----------------------------
-- Records of goods_category -- Records of goods_category
@ -236,7 +236,7 @@ CREATE TABLE `notice1` (
`content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '内容', `content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '内容',
`time` date NULL DEFAULT NULL COMMENT '时间', `time` date NULL DEFAULT NULL COMMENT '时间',
PRIMARY KEY (`id`) USING BTREE PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; ) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
-- ---------------------------- -- ----------------------------
-- Records of notice1 -- Records of notice1
@ -256,24 +256,20 @@ CREATE TABLE `order` (
`user_id` int(11) NOT NULL COMMENT '用户ID', `user_id` int(11) NOT NULL COMMENT '用户ID',
`order_date` datetime NOT NULL COMMENT '订单日期', `order_date` datetime NOT NULL COMMENT '订单日期',
`order_status` enum('Pending','Processing','Shipped','Delivered','Cancelled') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '订单状态', `order_status` enum('Pending','Processing','Shipped','Delivered','Cancelled') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '订单状态',
`order_price` decimal(10, 2) NOT NULL COMMENT '订单总金额',
`pay_date` datetime NULL DEFAULT NULL COMMENT '订单支付时间',
PRIMARY KEY (`id`) USING BTREE, PRIMARY KEY (`id`) USING BTREE,
INDEX `user_id`(`user_id`) USING BTREE, UNIQUE INDEX `id`(`id`) USING BTREE,
UNIQUE INDEX `id`(`id`) USING BTREE INDEX `user_id`(`user_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ---------------------------- -- ----------------------------
-- Records of order -- Records of order
-- ---------------------------- -- ----------------------------
INSERT INTO `order` VALUES (1748800678865801225, 1, '2023-03-19 21:29:33', 'Pending'); INSERT INTO `order` VALUES (1748800678865801225, 1, '2023-03-21 15:50:19', 'Pending', 21.99, NULL);
INSERT INTO `order` VALUES (1748880836628975622, 1, '2023-03-19 23:48:04', 'Pending'); INSERT INTO `order` VALUES (1749495597129404427, 1, '2023-03-21 16:30:54', 'Pending', 5.99, NULL);
INSERT INTO `order` VALUES (1748881003193176069, 1, '2023-03-19 23:48:44', 'Pending'); INSERT INTO `order` VALUES (1749495896040673288, 1, '2023-03-21 16:32:06', 'Pending', 5.99, NULL);
INSERT INTO `order` VALUES (1748881359935508481, 1, '2023-03-19 23:50:09', 'Pending'); INSERT INTO `order` VALUES (1749496012575215624, 1, '2023-03-21 16:32:33', 'Pending', 17.97, NULL);
INSERT INTO `order` VALUES (1748881582816628736, 1, '2023-03-19 23:51:02', 'Pending');
INSERT INTO `order` VALUES (1748881775876247556, 1, '2023-03-19 23:51:48', 'Pending');
INSERT INTO `order` VALUES (1748883439144275978, 1, '2023-03-19 23:58:25', 'Pending');
INSERT INTO `order` VALUES (1748883587555528711, 1, '2023-03-19 23:59:00', 'Pending');
INSERT INTO `order` VALUES (1748884264885293061, 1, '2023-03-20 00:01:41', 'Pending');
INSERT INTO `order` VALUES (1748884523443163146, 1, '2023-03-20 00:02:43', 'Pending');
-- ---------------------------- -- ----------------------------
-- Table structure for order_detail -- Table structure for order_detail
@ -290,23 +286,21 @@ CREATE TABLE `order_detail` (
INDEX `good_id`(`good_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_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 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; ) ENGINE = InnoDB AUTO_INCREMENT = 28 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ---------------------------- -- ----------------------------
-- Records of order_detail -- Records of order_detail
-- ---------------------------- -- ----------------------------
INSERT INTO `order_detail` VALUES (15, 1748800678865801225, 27, 1, 15.99); INSERT INTO `order_detail` VALUES (33, 1748800678865801225, 19, 1, 21.99);
INSERT INTO `order_detail` VALUES (16, 1748800678865801225, 12, 1, 5.99); INSERT INTO `order_detail` VALUES (34, 1748800678865801225, 19, 1, 21.99);
INSERT INTO `order_detail` VALUES (17, 1748800678865801225, 13, 1, 5.99); INSERT INTO `order_detail` VALUES (35, 1748800678865801225, 19, 1, 21.99);
INSERT INTO `order_detail` VALUES (18, 1748880836628975622, 16, 1, 5.99); INSERT INTO `order_detail` VALUES (36, 1748800678865801225, 19, 1, 21.99);
INSERT INTO `order_detail` VALUES (19, 1748881003193176069, 16, 1, 5.99); INSERT INTO `order_detail` VALUES (37, 1748800678865801225, 19, 1, 21.99);
INSERT INTO `order_detail` VALUES (20, 1748881359935508481, 16, 1, 5.99); INSERT INTO `order_detail` VALUES (38, 1748800678865801225, 19, 1, 21.99);
INSERT INTO `order_detail` VALUES (21, 1748881582816628736, 16, 1, 5.99); INSERT INTO `order_detail` VALUES (39, 1748800678865801225, 19, 1, 21.99);
INSERT INTO `order_detail` VALUES (22, 1748881775876247556, 64, 1, 18.00); INSERT INTO `order_detail` VALUES (40, 1749495597129404427, 16, 1, 5.99);
INSERT INTO `order_detail` VALUES (23, 1748883439144275978, 16, 1, 5.99); INSERT INTO `order_detail` VALUES (41, 1749495896040673288, 16, 1, 5.99);
INSERT INTO `order_detail` VALUES (24, 1748883587555528711, 16, 1, 5.99); INSERT INTO `order_detail` VALUES (42, 1749496012575215624, 16, 3, 5.99);
INSERT INTO `order_detail` VALUES (25, 1748884264885293061, 16, 1, 5.99);
INSERT INTO `order_detail` VALUES (26, 1748884523443163146, 57, 1, 2.00);
-- ---------------------------- -- ----------------------------
-- Table structure for report -- Table structure for report
@ -330,6 +324,7 @@ INSERT INTO `report` VALUES (55, 1, '管理员 密码root', '2022-12-27 21:03:24
INSERT INTO `report` VALUES (57, 1, '管理员 密码root', '2022-12-28 21:47:57', '0', '湖北省武汉市洪山区文治街南湖雅园(洪山区信访局对面)'); 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 (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'); INSERT INTO `report` VALUES (59, 1, '管理员 密码root', '2023-03-17 00:27:21', '0', '湖北省武汉市洪山区雄楚大道珞狮南路南湖雅园F-4-106');
INSERT INTO `report` VALUES (60, 1, '管理员 密码root', '2023-03-20 00:47:22', '0', '湖北省武汉市武昌区武车路');
-- ---------------------------- -- ----------------------------
-- Table structure for setting -- Table structure for setting
@ -345,7 +340,7 @@ CREATE TABLE `setting` (
-- ---------------------------- -- ----------------------------
-- Records of setting -- 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'); INSERT INTO `setting` VALUES ('wechat_access_token', '66_k4e3ae12hwRMq2XLW5mW5rOBsLawIcKPsFjNC4ILQS6rYJi4RJN8tYXtwCJLxqimgAHrZ-MV0LqsFn7u_9OVjEOj7b-d3V4tirO3mxLTj59U87V5WhV0XNp1fFULMRhAJASTY', '2023-03-21 00:34:18');
-- ---------------------------- -- ----------------------------
-- Table structure for user -- Table structure for user
@ -404,7 +399,7 @@ CREATE TABLE `visitor1` (
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
`state` int(11) NULL DEFAULT 0 COMMENT '状态0审批中1成功2驳回', `state` int(11) NULL DEFAULT 0 COMMENT '状态0审批中1成功2驳回',
PRIMARY KEY (`id`) USING BTREE PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 15 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; ) ENGINE = InnoDB AUTO_INCREMENT = 14 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
-- ---------------------------- -- ----------------------------
-- Records of visitor1 -- Records of visitor1

View File

@ -10,7 +10,9 @@ Page({
*/ */
data: { data: {
goodId: -1, goodId: -1,
goodinfo: {} goodinfo: {},
buyGoodCount: 1,
}, },
/** /**
@ -74,22 +76,66 @@ Page({
}, },
bindCountInput(e) {
console.log("e", e)
console.log("e.detail.value", e.detail.value)
let regexp = /^[0-9]+$/.exec(e.detail.value)
let buyGoodCountNum = Number(e.detail.value)
if (!regexp || isNaN(buyGoodCountNum) || buyGoodCountNum < 1) {
wx.showToast({
title: '输入无效',
icon: "error",
})
this.setData({
buyGoodCount: this.data.buyGoodCount,
})
return
}
this.setData({
buyGoodCount: buyGoodCountNum,
})
},
btnAddCount() {
this.setData({
buyGoodCount: this.data.buyGoodCount + 1,
})
},
btnSubtractCount() {
this.setData({
buyGoodCount: this.data.buyGoodCount - 1,
})
},
// 立即下单 // 立即下单
btnBuyTap() { btnBuyTap() {
(async () => { (async () => {
// 创建订单 // 创建订单
let orderList = [{ let orderList = [{
goodId: this.data.goodId, goodId: this.data.goodId,
count: 1, count: this.data.buyGoodCount,
}] }]
let orderId = await orderService.createOrder(orderList) let orderId = await orderService.createOrder(orderList)
console.log("orderId", orderId) console.log("orderId", orderId)
// 跳转订单查看页面(携带订单号) if (!orderId) {
wx.navigateTo({ wx.showModal({
// url: "/pages/scan/entrance?a=1" title: '出错了',
url: "/pages/shop/orderDetail?orderId=" + orderId content: '创建订单失败,请重试',
}) showCancel: false,
complete: (res) => {
}
})
} else {
// 跳转订单查看页面(携带订单号)
wx.navigateTo({
// url: "/pages/scan/entrance?a=1"
url: "/pages/shop/orderDetail?orderId=" + orderId
})
}
})(); })();
}, },

View File

@ -37,6 +37,11 @@
<view class="bottom-controlbox"> <view class="bottom-controlbox">
<!-- 屏幕底部 --> <!-- 屏幕底部 -->
<view class="bottom-inputs">
<button class="buy-count-btn" bindtap="btnSubtractCount" size="mini" disabled="{{ buyGoodCount <= 1 }}">-</button>
<input class="buy-count-input" type="number" value="{{buyGoodCount}}" placeholder="购买数量" bindinput="bindCountInput" bindblur="bindCountInput" bindconfirm="bindCountInput" />
<button class="buy-count-btn" bindtap="btnAddCount" size="mini">+</button>
</view>
<view class="bottom-buttons"> <view class="bottom-buttons">
<view class="btn" id="btn-addcart">加入购物车</view> <view class="btn" id="btn-addcart">加入购物车</view>
<view class="btn" id="btn-buy" bindtap="btnBuyTap">立即下单</view> <view class="btn" id="btn-buy" bindtap="btnBuyTap">立即下单</view>

View File

@ -93,6 +93,32 @@
/* 屏幕底部 */
/* 屏幕底部 数量输入框 */
.bottom-inputs {
margin-bottom: 3px;
}
.buy-count-input {
border: 1px solid black;
display: inline-block;
border-radius: 100px;
width: 100px;
height: 34px;
margin: 0 5px;
}
.buy-count-btn {
border-radius: 100px;
width: 35px;
height: 35px;
max-width: 35px;
max-height: 35px;
min-width: 35px;
min-height: 35px;
background-color: #FA4126;
color: white;
}
/* 屏幕底部 下单按钮 */ /* 屏幕底部 下单按钮 */
.bottom-controlbox { .bottom-controlbox {

View File

@ -94,10 +94,35 @@ Page({
this.updatePageData() this.updatePageData()
}, },
bindOrderDetailTap(e) {
let dataset = e.currentTarget.dataset
console.log("dataset", dataset)
console.log("orderDetail", dataset.orderdetail)
// 订单确认页
wx.navigateTo({
url: "/pages/shop/orderDetail?orderId=" + dataset.orderdetail.id,
})
},
loadPageData() { loadPageData() {
(async () => { (async () => {
let userOrder = await orderService.listUserOrder() let userOrder = await orderService.listUserOrder()
console.log("userOrder", userOrder) console.log("userOrder", userOrder)
if (!userOrder) {
wx.showModal({
title: '订单查询失败',
content: '',
showCancel: false,
complete: (res) => {
wx.navigateBack()
}
})
return
}
let filterList = Object.keys(userOrder.filter).map(key => { let filterList = Object.keys(userOrder.filter).map(key => {
return { return {
id: key, id: key,

View File

@ -16,8 +16,13 @@
<view class="container"> <view class="container">
<!-- 无订单时显示 -->
<view wx:if="{{orderList.length==0}}" style="text-align: center; margin-top: 30vh;">
该筛选条件下无订单
</view>
<!-- 订单列表 --> <!-- 订单列表 -->
<view class="order-card" wx:for="{{orderList}}" wx:for-item="item" wx:key="id"> <view class="order-card" wx:for="{{orderList}}" wx:for-item="item" wx:key="id" bindtap="bindOrderDetailTap" data-orderdetail="{{item}}">
<view> <view>
<text class="order-info-key">订单号:</text> <text class="order-info-key">订单号:</text>
<text>{{ item.id }}</text> <text>{{ item.id }}</text>

View File

@ -8,13 +8,22 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
// 订单 ID
orderId: '', orderId: '',
// 订单详情
order: {}, order: {},
// goods: [],
// orderItem: [],
orderGoodList: [],
/**
* 用于界面渲染
*/
// 订单商品列表
orderGoodList: [],
// 订单状态
orderStatusCode: '',
// 订单创建时间
orderTime: '', orderTime: '',
// 订单总金额
orderPrice: '',
}, },
/** /**
@ -88,6 +97,7 @@ Page({
}, },
// 订单状态:等待确认
confirmPayment() { confirmPayment() {
// 点击确认支付按钮 // 点击确认支付按钮
wx.showModal({ wx.showModal({
@ -140,13 +150,18 @@ Page({
} }
console.log("orderGoodList", orderGoodList) console.log("orderGoodList", orderGoodList)
let orderStatusCode = orderDetail.order.orderStatusCode
console.log("orderStatusCode", orderStatusCode)
let orderPrice = orderDetail.order.orderPrice
console.log("orderPrice", orderPrice)
this.setData({ this.setData({
order: orderDetail.order, order: orderDetail.order,
// goods: orderDetail.goods,
// orderItem: orderDetail.orderItem,
orderGoodList: orderGoodList, orderGoodList: orderGoodList,
orderTime: orderDetail.order.orderDate.replace("T", " "),
orderTime: orderDetail.order.orderDate.replace("T", " ") orderStatusCode: orderStatusCode,
orderPrice: orderPrice,
}) })
})(); })();
} }

View File

@ -6,13 +6,22 @@
</view> </view>
</view> </view>
<!-- 订单总金额 -->
<view style="text-align: center;">
<view class="good-price good-price-counter">
<view class="good-price-symbol" style="font-size: 40rpx;">¥</view>
<view class="good-price-number" style="font-size: 60rpx;">{{ orderPrice }}</view>
</view>
</view>
<view class="order-info"> <view class="order-info">
<view>订单号:{{order.id}}</view> <view>订单号:{{order.id}}</view>
<view>订单创建时间:{{orderTime}}</view> <view>订单创建时间:{{orderTime}}</view>
<view>订单总金额:{{order.orderPrice}} 元</view>
<view>订单状态:{{order.orderStatus}}</view> <view>订单状态:{{order.orderStatus}}</view>
</view> </view>
<view class="good-list-title">商品列表</view> <view class="good-list-title">订单详情</view>
<view class="good-card-container" wx:for="{{orderGoodList}}" wx:for-item="item" wx:key="wxid" goodinfo="{{item}}"> <view class="good-card-container" wx:for="{{orderGoodList}}" wx:for-item="item" wx:key="wxid" goodinfo="{{item}}">
<!-- 商品图片 --> <!-- 商品图片 -->
@ -45,6 +54,6 @@
<view class="bottom-controlbox"> <view class="bottom-controlbox">
<!-- 屏幕底部 --> <!-- 屏幕底部 -->
<view class="bottom-buttons"> <view class="bottom-buttons">
<view class="btn" id="btn-confirm-payment" bindtap="confirmPayment">确认支付</view> <view wx:if="{{ orderStatusCode == 'Pending' }}" class="btn" id="btn-confirm-payment" bindtap="confirmPayment">确认支付</view>
</view> </view>
</view> </view>