You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
3.4 KiB

  1. CREATE TABLE `yx_store_after_sales_status` (
  2. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  3. `store_after_sales_id` bigint(20) DEFAULT NULL COMMENT '售后id',
  4. `change_type` tinyint(1) DEFAULT NULL COMMENT '操作类型',
  5. `change_message` varchar(128) COLLATE utf8_bin DEFAULT NULL COMMENT '操作备注',
  6. `change_time` datetime DEFAULT NULL COMMENT '操作时间',
  7. `operator` varchar(32) COLLATE utf8_bin DEFAULT NULL COMMENT '操作人',
  8. PRIMARY KEY (`id`)
  9. ) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='售后订单操作详情表';
  10. CREATE TABLE `yx_store_after_sales_item` (
  11. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  12. `store_after_sales_id` bigint(20) DEFAULT NULL COMMENT '售后id',
  13. `product_id` bigint(20) DEFAULT NULL COMMENT '商品id',
  14. `cart_info` text COLLATE utf8_bin NOT NULL COMMENT '退货东西的详情信息',
  15. `is_del` bit(1) DEFAULT NULL COMMENT '逻辑删除',
  16. PRIMARY KEY (`id`)
  17. ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='售后子表';
  18. CREATE TABLE `yx_store_after_sales` (
  19. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  20. `order_code` varchar(32) COLLATE utf8_bin DEFAULT NULL COMMENT '订单号',
  21. `refund_amount` decimal(32,8) DEFAULT NULL COMMENT '退款金额',
  22. `service_type` tinyint(1) DEFAULT NULL COMMENT '服务类型0仅退款1退货退款',
  23. `reasons` text COLLATE utf8_bin COMMENT '申请原因',
  24. `explains` text COLLATE utf8_bin COMMENT '说明',
  25. `explain_img` text COLLATE utf8_bin COMMENT '说明图片->多个用逗号分割',
  26. `shipper_code` varchar(255) COLLATE utf8_bin DEFAULT NULL COMMENT '物流公司编码',
  27. `delivery_sn` varchar(32) COLLATE utf8_bin DEFAULT NULL COMMENT '物流单号',
  28. `delivery_name` varchar(32) COLLATE utf8_bin DEFAULT NULL COMMENT '物流名称',
  29. `state` tinyint(1) DEFAULT NULL COMMENT '状态 0已提交等待平台审核 1平台已审核 等待用户发货/退款 2 用户已发货 3退款成功',
  30. `sales_state` tinyint(1) DEFAULT NULL COMMENT '售后状态-0正常1用户取消2商家拒绝',
  31. `create_time` datetime DEFAULT NULL COMMENT '添加时间',
  32. `is_del` tinyint(1) DEFAULT NULL COMMENT '逻辑删除',
  33. `user_id` bigint(20) DEFAULT NULL COMMENT '用户id',
  34. `consignee` varchar(255) COLLATE utf8_bin DEFAULT NULL COMMENT '商家收货人',
  35. `phone_number` varchar(255) COLLATE utf8_bin DEFAULT NULL COMMENT '商家手机号',
  36. `address` varchar(255) COLLATE utf8_bin DEFAULT NULL COMMENT '商家地址',
  37. PRIMARY KEY (`id`)
  38. ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='售后记录表';
  39. ALTER TABLE yx_store_order_cart_info ADD COLUMN is_after_sales tinyint(1) unsigned zerofill DEFAULT '0' COMMENT '是否能售后 0不能1能';
  40. INSERT INTO `menu` VALUES (266, b'0', '售后', 'shop/afterSeals/index', 53, 44, 'order', 'afterSeals', b'0', b'0', 'AfterSeals', '2021-06-30 15:23:38', 'yxStoreAfterSales:list', 1, '2021-06-30 15:33:14', 0);
  41. INSERT INTO `menu` VALUES (267, b'0', '新增', NULL, 266, 999, NULL, NULL, b'0', b'0', '-', '2021-06-30 15:34:17', 'yxStoreAfterSales:add', 2, NULL, 0);
  42. INSERT INTO `menu` VALUES (268, b'0', '修改', NULL, 266, 999, NULL, NULL, b'0', b'0', '-', '2021-06-30 15:34:39', 'yxStoreAfterSales:edit', 2, NULL, 0);
  43. INSERT INTO `menu` VALUES (269, b'0', '删除', NULL, 266, 999, NULL, NULL, b'0', b'0', '-', '2021-06-30 15:34:55', 'yxStoreAfterSales:del', 2, NULL, 0);