yuanzhongxiu.sql 98 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057
  1. /*
  2. Navicat Premium Data Transfer
  3. Source Server : 本地mysql 5.8
  4. Source Server Type : MySQL
  5. Source Server Version : 50726
  6. Source Host : 127.0.0.1:3306
  7. Source Schema : yuanzhongxiu
  8. Target Server Type : MySQL
  9. Target Server Version : 50726
  10. File Encoding : 65001
  11. Date: 11/01/2023 11:36:58
  12. */
  13. SET NAMES utf8mb4;
  14. SET FOREIGN_KEY_CHECKS = 0;
  15. -- ----------------------------
  16. -- Table structure for erp_activity
  17. -- ----------------------------
  18. DROP TABLE IF EXISTS `erp_activity`;
  19. CREATE TABLE `erp_activity` (
  20. `id` int(11) NOT NULL AUTO_INCREMENT,
  21. `title` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '活动标题',
  22. `start_time` int(10) NOT NULL COMMENT '开始时间',
  23. `end_time` int(10) NOT NULL COMMENT '结束时间',
  24. `delete_time` bigint(16) NULL DEFAULT NULL COMMENT '逻辑删除字段',
  25. `create_time` bigint(16) NULL DEFAULT NULL COMMENT '创建时间',
  26. `update_time` bigint(16) NULL DEFAULT NULL COMMENT '更新时间',
  27. `is_delete` tinyint(1) NOT NULL DEFAULT 0 COMMENT '逻辑删除字段',
  28. PRIMARY KEY (`id`) USING BTREE
  29. ) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '活动表' ROW_FORMAT = DYNAMIC;
  30. -- ----------------------------
  31. -- Records of erp_activity
  32. -- ----------------------------
  33. INSERT INTO `erp_activity` VALUES (7, '年底大清仓', 1576252800, 1861718400, NULL, NULL, NULL, 0);
  34. INSERT INTO `erp_activity` VALUES (8, '年初大甩卖', 1577203200, 1766592000, NULL, NULL, NULL, 0);
  35. -- ----------------------------
  36. -- Table structure for erp_activity_product
  37. -- ----------------------------
  38. DROP TABLE IF EXISTS `erp_activity_product`;
  39. CREATE TABLE `erp_activity_product` (
  40. `id` int(11) NOT NULL AUTO_INCREMENT,
  41. `activity_id` int(11) NOT NULL COMMENT '活动ID',
  42. `product_id` int(11) NOT NULL COMMENT '商品ID',
  43. `type` tinyint(2) NOT NULL DEFAULT 1 COMMENT '1=减免价;2=打折;',
  44. `discount` int(3) NOT NULL DEFAULT 0 COMMENT '打折',
  45. `reduced_price` float(10, 2) NOT NULL DEFAULT 0.00 COMMENT '减免价',
  46. `start_time` bigint(16) NULL DEFAULT NULL,
  47. `end_time` bigint(16) NULL DEFAULT NULL,
  48. `delete_time` bigint(16) NULL DEFAULT NULL COMMENT '逻辑删除字段',
  49. `create_time` bigint(16) NULL DEFAULT NULL COMMENT '创建时间',
  50. `update_time` bigint(16) NULL DEFAULT NULL COMMENT '更新时间',
  51. `is_delete` tinyint(1) NOT NULL DEFAULT 0 COMMENT '逻辑删除字段',
  52. PRIMARY KEY (`id`) USING BTREE
  53. ) ENGINE = InnoDB AUTO_INCREMENT = 16 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '活动商品关联表' ROW_FORMAT = DYNAMIC;
  54. -- ----------------------------
  55. -- Records of erp_activity_product
  56. -- ----------------------------
  57. INSERT INTO `erp_activity_product` VALUES (14, 8, 1, 1, 0, 20.00, 1577203200, 1766592000, NULL, 1672046319, 1672046319, 0);
  58. INSERT INTO `erp_activity_product` VALUES (15, 7, 1, 1, 0, 30.00, 1576252800, 1861718400, NULL, 1672046433, 1672046433, 0);
  59. -- ----------------------------
  60. -- Table structure for erp_admin
  61. -- ----------------------------
  62. DROP TABLE IF EXISTS `erp_admin`;
  63. CREATE TABLE `erp_admin` (
  64. `id` int(11) NOT NULL AUTO_INCREMENT,
  65. `account` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '账号',
  66. `nickname` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '昵称',
  67. `mobile` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '电话',
  68. `password` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '密码',
  69. `token` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '令牌',
  70. `department_id` int(11) NOT NULL DEFAULT 0 COMMENT '部门ID',
  71. `store_ids` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '门店权限',
  72. `is_login_backstage` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否能登录后台',
  73. `is_delete` tinyint(1) NOT NULL DEFAULT 0 COMMENT '逻辑删除字段',
  74. `create_time` int(10) NULL DEFAULT NULL COMMENT '创建时间',
  75. `update_time` int(10) NULL DEFAULT NULL COMMENT '更新时间',
  76. PRIMARY KEY (`id`) USING BTREE
  77. ) ENGINE = InnoDB AUTO_INCREMENT = 10010 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '管理员表' ROW_FORMAT = DYNAMIC;
  78. -- ----------------------------
  79. -- Records of erp_admin
  80. -- ----------------------------
  81. INSERT INTO `erp_admin` VALUES (10000, 'admin', 'admin', '15574920251', 'e10adc3949ba59abbe56e057f20f883e', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJqd3RfYWRtaW4iLCJpYXQiOjE2NzM0MDM1NDMsImV4cCI6MTY3MzQxMDc0MywibmJmIjoxNjczNDAzNTQzLCJqdGkiOiJiN2M0Mzg5YmRhNzBkNWUxMmNjMjM1ZDFjNDMyZGE2OSIsImFkbWluX2lkIjoxMDAwMCwiYWNjb3VudCI6ImFkbWluIiwibmlja25hbWUiOiJhZG1pbiJ9.2vvuWg61L4UkBHAxXpUYz1GiiuncW6MHWB_MnHq2G9o', 5, NULL, 1, 0, 1670394265, 1670394265);
  82. INSERT INTO `erp_admin` VALUES (10007, '10086', 'Caviar.', '15574920253', 'e10adc3949ba59abbe56e057f20f883e', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJqd3RfdXNlciIsImlhdCI6MTY3MzIzMzUyNSwiZXhwIjoxNjczMjgzOTI1LCJuYmYiOjE2NzMyMzM1MjUsImp0aSI6ImI0NDYyYWRkN2ZhMGIxOWNjOWZiYzI4NTRiYzlmYmY1IiwiYWRtaW5faWQiOjEwMDA3LCJhY2NvdW50IjoiMTAwODYiLCJuaWNrbmFtZSI6IkNhdmlhci4iLCJncm91cF9pZCI6NiwiZ3JvdXBfbmFtZSI6IumXqOW6l-S4u-euoSJ9.4qUUzIqdyV1W_EOcW5G7IuiFYvsSs4557lZIQ4tpODM', 5, '10003', 0, 0, 1671104782, 1672107031);
  83. INSERT INTO `erp_admin` VALUES (10008, 'AMK_001', 'AMK_001', '18898762524', 'e10adc3949ba59abbe56e057f20f883e', NULL, 6, '10003', 1, 0, 1671644910, 1671644910);
  84. INSERT INTO `erp_admin` VALUES (10009, 'AMK_Manager', 'AMK管理员', '18894746725', 'e10adc3949ba59abbe56e057f20f883e', NULL, 17, '10004,10003', 1, 0, 1671700601, 1671701309);
  85. -- ----------------------------
  86. -- Table structure for erp_auth_group
  87. -- ----------------------------
  88. DROP TABLE IF EXISTS `erp_auth_group`;
  89. CREATE TABLE `erp_auth_group` (
  90. `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  91. `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '组名',
  92. `pid` int(11) NULL DEFAULT 0,
  93. `rules` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '后台规则ID',
  94. `reception_rules` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '前端功能',
  95. `data_rules` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '前端数据权限',
  96. `department_id` int(11) NULL DEFAULT NULL COMMENT '部门ID',
  97. `describe` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '描述',
  98. `create_time` bigint(16) NULL DEFAULT NULL COMMENT '创建时间',
  99. `update_time` bigint(16) NULL DEFAULT NULL COMMENT '更新时间',
  100. `is_delete` tinyint(1) NOT NULL DEFAULT 0,
  101. PRIMARY KEY (`id`) USING BTREE
  102. ) ENGINE = InnoDB AUTO_INCREMENT = 31 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '权限角色组表' ROW_FORMAT = DYNAMIC;
  103. -- ----------------------------
  104. -- Records of erp_auth_group
  105. -- ----------------------------
  106. INSERT INTO `erp_auth_group` VALUES (1, '超级管理员', 0, '*', NULL, NULL, NULL, '超级管理员', 1234567890, 1234567890, 0);
  107. INSERT INTO `erp_auth_group` VALUES (6, '门店主管', 0, '8,10,11,1', '10001,10002,10003,10004,10005,10006,10007,10008,10009,10010', '10001,10002,10003,10004,10005,10006,10007,10008,10009,10010', 5, '佛堂', 1234567890, 1673074875, 0);
  108. INSERT INTO `erp_auth_group` VALUES (9, '门店老师', 0, '14,16,15', '10003', NULL, NULL, '门店老师', 1234567890, 1671592052, 0);
  109. INSERT INTO `erp_auth_group` VALUES (11, '门店顾问', 0, '8,10,11,4,27,6,7', '10002', NULL, 5, '门店顾问', 1671076663, 1671700359, 0);
  110. INSERT INTO `erp_auth_group` VALUES (12, '门店促销员', 0, '8,10,11', '10001', NULL, 5, '门店促销员', 1671076782, 1671700370, 0);
  111. INSERT INTO `erp_auth_group` VALUES (18, '佛堂负责人', 0, '12', NULL, NULL, 17, '佛堂负责人', 1671592229, 1671700382, 0);
  112. INSERT INTO `erp_auth_group` VALUES (19, '佛堂前台', 0, '12', NULL, NULL, NULL, '佛堂前台', 1671592265, 1671592265, 0);
  113. INSERT INTO `erp_auth_group` VALUES (20, '佛堂道士', 0, '12', NULL, NULL, NULL, '佛堂道士', 1671592293, 1671592293, 0);
  114. INSERT INTO `erp_auth_group` VALUES (21, '佛堂和尚', 0, '12', NULL, NULL, NULL, '佛堂和尚', 1671592329, 1671592329, 0);
  115. INSERT INTO `erp_auth_group` VALUES (23, '物流负责人', 0, '8,10,11', NULL, NULL, NULL, '物流负责人', 1671592414, 1671592414, 0);
  116. INSERT INTO `erp_auth_group` VALUES (24, '物流助理', 0, NULL, NULL, NULL, NULL, '物流助理', 1671592442, 1671592442, 0);
  117. INSERT INTO `erp_auth_group` VALUES (26, '财务负责人', 0, '18', NULL, NULL, NULL, '财务负责人', 1671592520, 1671592540, 1);
  118. INSERT INTO `erp_auth_group` VALUES (27, '门店经销商', 0, NULL, NULL, NULL, NULL, '门店经销商', 1671592590, 1671592590, 1);
  119. INSERT INTO `erp_auth_group` VALUES (28, '财务负责人', 0, '18', NULL, NULL, NULL, '管理财务板块', 1671635953, 1671635953, 0);
  120. INSERT INTO `erp_auth_group` VALUES (30, 'Test', 0, '30,19,21,20,17,14,16,15,8,10,11,4,27,6,7,1', '10001,10002,10003,10004,10005,10007,10008,10009', '10001,10002,10003,10004,10005,10006,10007', 7, '测试角色', 1671699421, 1671699551, 0);
  121. -- ----------------------------
  122. -- Table structure for erp_auth_group_access
  123. -- ----------------------------
  124. DROP TABLE IF EXISTS `erp_auth_group_access`;
  125. CREATE TABLE `erp_auth_group_access` (
  126. `id` int(11) NOT NULL AUTO_INCREMENT,
  127. `admin_id` int(10) UNSIGNED NOT NULL COMMENT '会员ID',
  128. `group_id` int(10) UNSIGNED NOT NULL COMMENT '级别ID',
  129. `create_time` int(10) NULL DEFAULT NULL,
  130. `update_time` int(10) NULL DEFAULT NULL,
  131. `is_delete` tinyint(1) NOT NULL DEFAULT 0 COMMENT '逻辑删除字段',
  132. PRIMARY KEY (`id`) USING BTREE,
  133. UNIQUE INDEX `uid_group_id`(`admin_id`, `group_id`) USING BTREE,
  134. INDEX `uid`(`admin_id`) USING BTREE,
  135. INDEX `group_id`(`group_id`) USING BTREE
  136. ) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '管理员与分组关系表' ROW_FORMAT = DYNAMIC;
  137. -- ----------------------------
  138. -- Records of erp_auth_group_access
  139. -- ----------------------------
  140. INSERT INTO `erp_auth_group_access` VALUES (1, 10000, 1, 1670394265, 1670394265, 0);
  141. INSERT INTO `erp_auth_group_access` VALUES (4, 10006, 1, 1671101252, 1671101252, 0);
  142. INSERT INTO `erp_auth_group_access` VALUES (5, 10007, 6, 1671104782, 1671104782, 0);
  143. INSERT INTO `erp_auth_group_access` VALUES (6, 10008, 12, 1671644911, 1671644911, 0);
  144. INSERT INTO `erp_auth_group_access` VALUES (7, 10009, 6, 1671700602, 1671700602, 0);
  145. -- ----------------------------
  146. -- Table structure for erp_auth_group_copy
  147. -- ----------------------------
  148. DROP TABLE IF EXISTS `erp_auth_group_copy`;
  149. CREATE TABLE `erp_auth_group_copy` (
  150. `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  151. `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '组名',
  152. `pid` int(10) NOT NULL DEFAULT 0 COMMENT '父级部门',
  153. `rules` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '规则ID',
  154. `store_ids` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '关联门店',
  155. `describe` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '描述',
  156. `create_time` bigint(16) NULL DEFAULT NULL COMMENT '创建时间',
  157. `update_time` bigint(16) NULL DEFAULT NULL COMMENT '更新时间',
  158. `is_delete` tinyint(1) NOT NULL DEFAULT 0,
  159. PRIMARY KEY (`id`) USING BTREE
  160. ) ENGINE = InnoDB AUTO_INCREMENT = 28 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '权限角色组表' ROW_FORMAT = DYNAMIC;
  161. -- ----------------------------
  162. -- Records of erp_auth_group_copy
  163. -- ----------------------------
  164. INSERT INTO `erp_auth_group_copy` VALUES (1, '超级管理员', 0, '*', NULL, '超级管理员', 1234567890, 1234567890, 0);
  165. INSERT INTO `erp_auth_group_copy` VALUES (5, '门店', 0, '4,27,6,7,1', NULL, '门店', 1234567890, 1671591955, 0);
  166. INSERT INTO `erp_auth_group_copy` VALUES (6, '门店主管', 5, '12,1', NULL, '佛堂', 1234567890, 1671083167, 0);
  167. INSERT INTO `erp_auth_group_copy` VALUES (7, '物流', 1, '8,10,1', NULL, '物流部', 1234567890, 1671083197, 1);
  168. INSERT INTO `erp_auth_group_copy` VALUES (8, '财务', 1, '18', NULL, '财务', 1234567890, 1671083239, 1);
  169. INSERT INTO `erp_auth_group_copy` VALUES (9, '门店老师', 5, '14,16,15', '10003', '门店老师', 1234567890, 1671592052, 0);
  170. INSERT INTO `erp_auth_group_copy` VALUES (11, '门店顾问', 5, '8,10,11', '10002', '门店顾问', 1671076663, 1671592097, 0);
  171. INSERT INTO `erp_auth_group_copy` VALUES (12, '门店促销员', 5, '8,10,11', '10001', '门店促销员', 1671076782, 1671592126, 0);
  172. INSERT INTO `erp_auth_group_copy` VALUES (13, '门店-西站店', 5, '1', '10000', '门店4', 1671093023, 1671100435, 1);
  173. INSERT INTO `erp_auth_group_copy` VALUES (16, '系统管理员', 1, '18,12,22,24,23,19,20,17,14,16,15,8,10,11,4,27,6,7,29,3,2,1', NULL, '后台管理系统员', 1671100003, 1671100003, 0);
  174. INSERT INTO `erp_auth_group_copy` VALUES (17, '佛堂', 0, '12', NULL, '佛堂', 1671592191, 1671592191, 0);
  175. INSERT INTO `erp_auth_group_copy` VALUES (18, '佛堂负责人', 17, '12', NULL, '佛堂负责人', 1671592229, 1671592229, 0);
  176. INSERT INTO `erp_auth_group_copy` VALUES (19, '佛堂前台', 17, '12', NULL, '佛堂前台', 1671592265, 1671592265, 0);
  177. INSERT INTO `erp_auth_group_copy` VALUES (20, '佛堂道士', 17, '12', NULL, '佛堂道士', 1671592293, 1671592293, 0);
  178. INSERT INTO `erp_auth_group_copy` VALUES (21, '佛堂和尚', 17, '12', NULL, '佛堂和尚', 1671592329, 1671592329, 0);
  179. INSERT INTO `erp_auth_group_copy` VALUES (22, '物流部', 0, '8,10', NULL, '物流部', 1671592379, 1671592379, 0);
  180. INSERT INTO `erp_auth_group_copy` VALUES (23, '物流负责人', 22, '8,10,11', NULL, '物流负责人', 1671592414, 1671592414, 0);
  181. INSERT INTO `erp_auth_group_copy` VALUES (24, '物流助理', 22, NULL, NULL, '物流助理', 1671592442, 1671592442, 0);
  182. INSERT INTO `erp_auth_group_copy` VALUES (25, '财务', 0, '18', NULL, '财务', 1671592499, 1671592499, 0);
  183. INSERT INTO `erp_auth_group_copy` VALUES (26, '财务负责人', 25, '18', NULL, '财务负责人', 1671592520, 1671592540, 0);
  184. INSERT INTO `erp_auth_group_copy` VALUES (27, '门店经销商', 5, NULL, NULL, '门店经销商', 1671592590, 1671592590, 0);
  185. -- ----------------------------
  186. -- Table structure for erp_auth_rule
  187. -- ----------------------------
  188. DROP TABLE IF EXISTS `erp_auth_rule`;
  189. CREATE TABLE `erp_auth_rule` (
  190. `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  191. `type` enum('menu','page','btn') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'menu为菜单,file为权限节点',
  192. `pid` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '父ID',
  193. `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '规则名称',
  194. `lang` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '规则变量',
  195. `icon` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '图标',
  196. `url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '规则URL',
  197. `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '备注',
  198. `weigh` int(10) NOT NULL DEFAULT 0 COMMENT '权重',
  199. `status` tinyint(2) NOT NULL DEFAULT 1 COMMENT '状态 0 否 1是',
  200. `create_time` bigint(16) NULL DEFAULT NULL COMMENT '创建时间',
  201. `update_time` bigint(16) NULL DEFAULT NULL COMMENT '更新时间',
  202. `is_delete` tinyint(1) NOT NULL DEFAULT 0 COMMENT '逻辑删除字段',
  203. PRIMARY KEY (`id`) USING BTREE,
  204. UNIQUE INDEX `name`(`name`) USING BTREE,
  205. INDEX `pid`(`pid`) USING BTREE,
  206. INDEX `weigh`(`weigh`) USING BTREE
  207. ) ENGINE = InnoDB AUTO_INCREMENT = 35 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '节点表' ROW_FORMAT = DYNAMIC;
  208. -- ----------------------------
  209. -- Records of erp_auth_rule
  210. -- ----------------------------
  211. INSERT INTO `erp_auth_rule` VALUES (1, 'page', 0, '后台首页', 'home', 'mdi mdi-home', '/admin/index/home', '', 1000, 1, NULL, NULL, 0);
  212. INSERT INTO `erp_auth_rule` VALUES (2, 'page', 29, '客户列表', 'customer_list', '#', '/admin/customer/index', '', 999, 1, NULL, NULL, 0);
  213. INSERT INTO `erp_auth_rule` VALUES (3, 'page', 29, '客户沟通', 'customer_communication', '#', '#', '', 998, 1, NULL, NULL, 1);
  214. INSERT INTO `erp_auth_rule` VALUES (4, 'menu', 0, '商品管理', 'commodity_management', 'mdi mdi-corn', '#', '', 997, 1, NULL, NULL, 0);
  215. INSERT INTO `erp_auth_rule` VALUES (6, 'page', 4, '商品列表', 'product_list', 'mdi mdi-home', '/admin/product/index', '', 996, 1, NULL, NULL, 0);
  216. INSERT INTO `erp_auth_rule` VALUES (7, 'page', 4, '商品分类', 'commodity_classification', 'mdi mdi-home', '/admin/product_category/index', '', 1000, 1, NULL, NULL, 0);
  217. INSERT INTO `erp_auth_rule` VALUES (8, 'menu', 0, '进销存管理', 'Sale_and_Storage_of_Commodity', 'mdi mdi-codepen', '#', '', 996, 1, NULL, NULL, 0);
  218. INSERT INTO `erp_auth_rule` VALUES (10, 'page', 8, '订单管理', 'order_management', 'mdi mdi-home', '/admin/order/index', '', 995, 1, NULL, NULL, 0);
  219. INSERT INTO `erp_auth_rule` VALUES (11, 'page', 8, '库存管理', 'stock_control', 'mdi mdi-home', '/admin/stock/index', '', 996, 1, NULL, NULL, 0);
  220. INSERT INTO `erp_auth_rule` VALUES (12, 'page', 0, '佛教管理', 'management_of_Buddhism', 'mdi mdi-buffer', '#', '', 0, 1, NULL, NULL, 1);
  221. INSERT INTO `erp_auth_rule` VALUES (14, 'menu', 0, '门店管理', 'store_management', 'mdi mdi-store', '#', '', 993, 1, NULL, NULL, 0);
  222. INSERT INTO `erp_auth_rule` VALUES (15, 'page', 14, '门店列表', 'store_list', 'mdi mdi-home', '/admin/store/index', '', 992, 1, NULL, NULL, 0);
  223. INSERT INTO `erp_auth_rule` VALUES (16, 'page', 14, '电子商务', 'e_commerce', 'mdi mdi-home', '#', '', 991, 1, NULL, NULL, 1);
  224. INSERT INTO `erp_auth_rule` VALUES (17, 'page', 19, '员工管理', 'staff_management', 'mdi mdi-home', '/admin/admin/index', '', 990, 1, NULL, NULL, 0);
  225. INSERT INTO `erp_auth_rule` VALUES (18, 'page', 0, '财务管理', 'financial_management', 'mdi mdi-file', '#', '', 0, 1, NULL, NULL, 0);
  226. INSERT INTO `erp_auth_rule` VALUES (19, 'menu', 0, '账号管理', 'account_management', 'mdi mdi-folder-account', '#', '', 988, 1, NULL, NULL, 0);
  227. INSERT INTO `erp_auth_rule` VALUES (20, 'page', 19, '角色管理', 'role_management', 'mdi mdi-home', '/admin/auth_group/index', '', 987, 1, NULL, NULL, 0);
  228. INSERT INTO `erp_auth_rule` VALUES (21, 'page', 19, '部门管理', 'division_management', 'mdi mdi-home', '/admin/department/index', '', 986, 1, NULL, NULL, 0);
  229. INSERT INTO `erp_auth_rule` VALUES (22, 'menu', 0, '系统设置', 'system_settings', 'mdi mdi-key-variant', '#', '', 985, 1, NULL, NULL, 0);
  230. INSERT INTO `erp_auth_rule` VALUES (23, 'page', 22, '收款渠道管理', 'collection_channel_management', 'mdi mdi-home', '/admin/payment_channel/index', '', 984, 1, NULL, NULL, 0);
  231. INSERT INTO `erp_auth_rule` VALUES (24, 'page', 22, '御龙币管理', 'yu_long_bi_management', 'mdi mdi-home', '/admin/zue_coin/index', '', 983, 1, NULL, NULL, 0);
  232. INSERT INTO `erp_auth_rule` VALUES (27, 'page', 4, '活动管理', 'activity_management', 'mdi mdi-home', '/admin/activity/index', '', 0, 1, NULL, NULL, 0);
  233. INSERT INTO `erp_auth_rule` VALUES (29, 'menu', 0, '客户管理', 'customer_management', 'mdi mdi-account-plus', '#', '', 1000, 1, NULL, NULL, 0);
  234. INSERT INTO `erp_auth_rule` VALUES (30, 'page', 0, '公司管理', 'company_management', 'mdi mdi-home', '/admin/company/index', '', 0, 1, NULL, NULL, 0);
  235. INSERT INTO `erp_auth_rule` VALUES (32, 'page', 22, '系统配置', 'system_settings', '', '/admin/config/index', '', 0, 1, NULL, NULL, 0);
  236. INSERT INTO `erp_auth_rule` VALUES (33, 'menu', 18, '订单报表', 'order_report', '', '/admin/order_report/index', '', 0, 1, NULL, NULL, 0);
  237. INSERT INTO `erp_auth_rule` VALUES (34, 'menu', 18, '库存报表', 'stock_report', '', '/admin/stock_report/index', '', 0, 1, NULL, NULL, 0);
  238. -- ----------------------------
  239. -- Table structure for erp_company
  240. -- ----------------------------
  241. DROP TABLE IF EXISTS `erp_company`;
  242. CREATE TABLE `erp_company` (
  243. `id` int(11) NOT NULL AUTO_INCREMENT,
  244. `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '供应商名称',
  245. `introduce` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '公司介绍',
  246. `create_time` int(10) NULL DEFAULT NULL COMMENT '创建时间',
  247. `update_time` int(10) NULL DEFAULT NULL COMMENT '更新时间',
  248. `is_delete` tinyint(1) NOT NULL DEFAULT 0 COMMENT '逻辑删除字段',
  249. PRIMARY KEY (`id`) USING BTREE
  250. ) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '供应商/公司' ROW_FORMAT = DYNAMIC;
  251. -- ----------------------------
  252. -- Records of erp_company
  253. -- ----------------------------
  254. INSERT INTO `erp_company` VALUES (3, 'Company_3', 'Product A 代理公司', 1671188583, 1671976221, 0);
  255. INSERT INTO `erp_company` VALUES (4, 'company_4', 'company_4', 1671703703, 1671704277, 0);
  256. -- ----------------------------
  257. -- Table structure for erp_config
  258. -- ----------------------------
  259. DROP TABLE IF EXISTS `erp_config`;
  260. CREATE TABLE `erp_config` (
  261. `id` int(11) NOT NULL AUTO_INCREMENT,
  262. `sales_tax_rate` float(10, 2) NOT NULL DEFAULT 0.00 COMMENT '消费税比例',
  263. `delete_time` int(10) NULL DEFAULT NULL COMMENT '逻辑删除字段',
  264. `create_time` int(10) NULL DEFAULT NULL COMMENT '创建时间',
  265. `update_time` int(10) NULL DEFAULT NULL COMMENT '更新时间',
  266. `is_delete` tinyint(1) NOT NULL DEFAULT 0 COMMENT '逻辑删除字段',
  267. PRIMARY KEY (`id`) USING BTREE
  268. ) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统设置表' ROW_FORMAT = DYNAMIC;
  269. -- ----------------------------
  270. -- Records of erp_config
  271. -- ----------------------------
  272. INSERT INTO `erp_config` VALUES (1, 30.00, NULL, NULL, NULL, 0);
  273. -- ----------------------------
  274. -- Table structure for erp_credit_card_config
  275. -- ----------------------------
  276. DROP TABLE IF EXISTS `erp_credit_card_config`;
  277. CREATE TABLE `erp_credit_card_config` (
  278. `id` int(11) NOT NULL AUTO_INCREMENT,
  279. `channel_id` int(11) NOT NULL COMMENT '支付方式Id',
  280. `is_stage` tinyint(1) NOT NULL DEFAULT 1 COMMENT '是否分期付款',
  281. `bank` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '分期付款银行',
  282. `stage_6` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '[0,0]' COMMENT '分6期',
  283. `stage_9` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '[0,0]',
  284. `stage_12` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '[0,0]',
  285. `stage_24` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '[0,0]',
  286. `stage_36` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '[0,0]',
  287. `create_time` int(10) NULL DEFAULT NULL COMMENT '创建时间',
  288. `update_time` int(10) NULL DEFAULT NULL COMMENT '更新时间',
  289. `is_delete` tinyint(1) NOT NULL DEFAULT 0 COMMENT '逻辑删除字段',
  290. PRIMARY KEY (`id`) USING BTREE
  291. ) ENGINE = InnoDB AUTO_INCREMENT = 34 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '收款渠道' ROW_FORMAT = DYNAMIC;
  292. -- ----------------------------
  293. -- Records of erp_credit_card_config
  294. -- ----------------------------
  295. INSERT INTO `erp_credit_card_config` VALUES (25, 4, 0, 'Maybank', '[0,\"0\"]', '[0,\"0\"]', '[0,\"0\"]', '[0,\"0\"]', '[0,\"0\"]', 1671782983, 1671782983, 0);
  296. INSERT INTO `erp_credit_card_config` VALUES (26, 4, 0, 'UOB', '[0,\"0\"]', '[0,\"0\"]', '[0,\"0\"]', '[0,\"0\"]', '[0,\"0\"]', 1671782983, 1671782983, 0);
  297. INSERT INTO `erp_credit_card_config` VALUES (27, 4, 0, 'DBS', '[0,\"0\"]', '[0,\"0\"]', '[0,\"0\"]', '[0,\"0\"]', '[0,\"0\"]', 1671782983, 1671782983, 0);
  298. INSERT INTO `erp_credit_card_config` VALUES (28, 4, 1, 'MayBank', '[1,\"3\"]', '[0,\"0\"]', '[1,\"4\"]', '[1,\"6\"]', '[1,\"9\"]', 1671782983, 1671782983, 0);
  299. INSERT INTO `erp_credit_card_config` VALUES (29, 4, 1, 'UOB', '[1,\"2\"]', '[0,\"0\"]', '[1,\"5\"]', '[1,\"8\"]', '[1,\"10\"]', 1671782983, 1671782983, 0);
  300. INSERT INTO `erp_credit_card_config` VALUES (30, 4, 1, 'HSBC', '[1,\"4\"]', '[0,\"0\"]', '[1,\"8\"]', '[0,\"0\"]', '[0,\"0\"]', 1671782984, 1671782984, 0);
  301. INSERT INTO `erp_credit_card_config` VALUES (31, 4, 1, 'Dinners', '[1,\"1\"]', '[0,\"0\"]', '[1,\"3\"]', '[0,\"0\"]', '[0,\"0\"]', 1671782984, 1671782984, 0);
  302. INSERT INTO `erp_credit_card_config` VALUES (32, 7, 1, 'DINERS', '[1,\"5\"]', '[1,\"8\"]', '[1,\"12\"]', '[1,\"30\"]', '[0,\"0\"]', 1671783071, 1671783071, 0);
  303. INSERT INTO `erp_credit_card_config` VALUES (33, 7, 0, 'DINERS', '[0,\"0\"]', '[0,\"0\"]', '[0,\"0\"]', '[0,\"0\"]', '[0,\"0\"]', 1672911475, 1672911475, 0);
  304. -- ----------------------------
  305. -- Table structure for erp_customer
  306. -- ----------------------------
  307. DROP TABLE IF EXISTS `erp_customer`;
  308. CREATE TABLE `erp_customer` (
  309. `id` int(11) NOT NULL AUTO_INCREMENT,
  310. `name_zh` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '客户名称_zn',
  311. `name_en` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '客户名称_en',
  312. `mobile` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '手机号码',
  313. `sex` tinyint(4) NOT NULL COMMENT '性别 1 男 2女 3未知',
  314. `sun_calendar` datetime NULL DEFAULT NULL COMMENT '阳历',
  315. `lunar_calendar` datetime NULL DEFAULT NULL COMMENT '阴历',
  316. `create_user_id` int(11) NULL DEFAULT NULL COMMENT '创建人ID',
  317. `create_username` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '创建者名称',
  318. `follow_user_id` int(10) NOT NULL COMMENT '专属顾问',
  319. `follow_username` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '专属顾问名称',
  320. `linkman` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '联系人',
  321. `relation` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '与客户关系',
  322. `address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '地址',
  323. `email` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邮箱',
  324. `store_id` int(11) NOT NULL COMMENT '门店ID',
  325. `store_abbr` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '门店简称',
  326. `create_time` int(10) NULL DEFAULT NULL COMMENT '创建时间',
  327. `update_time` int(10) NULL DEFAULT NULL COMMENT '更新时间',
  328. `is_delete` tinyint(1) NOT NULL DEFAULT 0 COMMENT '逻辑删除字段',
  329. PRIMARY KEY (`id`) USING BTREE
  330. ) ENGINE = InnoDB AUTO_INCREMENT = 10059 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '客户表' ROW_FORMAT = DYNAMIC;
  331. -- ----------------------------
  332. -- Records of erp_customer
  333. -- ----------------------------
  334. INSERT INTO `erp_customer` VALUES (10052, '贝克汉姆', 'David Robert Joseph Beckham', '18774388888', 1, '1989-12-23 00:00:00', '1988-02-29 00:00:00', 10007, 'Caviar.', 10007, 'Caviar.', '特德·贝克汉姆', '父子', '英国科茨沃尔德', 'Beckham@vip.com', 10003, 'AMK', 1671785146, 1671785146, 0);
  335. INSERT INTO `erp_customer` VALUES (10053, '小小尹', 'Mr Yin', '15567876543', 2, '2022-12-25 00:00:00', '2022-12-25 00:00:00', 10008, 'AMK_001', 10008, 'AMK_001', '青蛙小王子', '配偶', '美国华盛顿', 'wangzi@163.com', 10003, 'AMK', 1671972546, 1671973235, 0);
  336. INSERT INTO `erp_customer` VALUES (10056, '中文名', '英文名', '手机号', 1, '2022-10-11 18:00:00', '2022-10-11 18:00:00', 10007, 'Caviar.', 10008, 'AMK_001', '帅哥', '父子', '美国洛杉矶', 'G@163.com', 10003, 'AMK', 1672055789, 1672055789, 0);
  337. INSERT INTO `erp_customer` VALUES (10057, '中文名', '英文名', '155749202531', 1, '2022-10-11 18:00:00', '2022-10-11 18:00:00', 10007, 'Caviar.', 10008, 'AMK_001', '帅哥', '父子', '美国洛杉矶', 'G@163.com', 10003, 'AMK', 1672056110, 1672056110, 0);
  338. INSERT INTO `erp_customer` VALUES (10058, '小包子', 'xbz', '15574920253', 1, '2022-04-04 04:00:00', '2019-04-04 06:00:00', 10007, 'Caviar.', 10008, 'AMK_001', '小狗子', '朋友', 'ABC', 'ABC@163.com', 10003, 'AMK', 1672996943, 1672996943, 0);
  339. -- ----------------------------
  340. -- Table structure for erp_customer_zue_coin
  341. -- ----------------------------
  342. DROP TABLE IF EXISTS `erp_customer_zue_coin`;
  343. CREATE TABLE `erp_customer_zue_coin` (
  344. `id` int(11) NOT NULL AUTO_INCREMENT,
  345. `customer_id` int(11) NOT NULL COMMENT '客户ID',
  346. `zue_coin` float(10, 2) NOT NULL DEFAULT 0.00 COMMENT '御龙币',
  347. `lose_time` bigint(11) NOT NULL COMMENT '失效时间',
  348. `delete_time` bigint(11) NULL DEFAULT NULL COMMENT '逻辑删除字段',
  349. `create_time` bigint(11) NULL DEFAULT NULL COMMENT '创建时间',
  350. `update_time` bigint(11) NULL DEFAULT NULL COMMENT '更新时间',
  351. `is_delete` tinyint(1) NOT NULL DEFAULT 0 COMMENT '逻辑删除字段',
  352. PRIMARY KEY (`id`) USING BTREE
  353. ) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统设置表' ROW_FORMAT = DYNAMIC;
  354. -- ----------------------------
  355. -- Records of erp_customer_zue_coin
  356. -- ----------------------------
  357. INSERT INTO `erp_customer_zue_coin` VALUES (1, 10052, 7457.90, 3811334400, NULL, 1671785146, 1671785146, 0);
  358. INSERT INTO `erp_customer_zue_coin` VALUES (2, 1, 1.00, 3811334400, NULL, 1672055789, 1672055789, 0);
  359. INSERT INTO `erp_customer_zue_coin` VALUES (3, 10057, 1.00, 3811334400, NULL, 1672056110, 1672056110, 0);
  360. INSERT INTO `erp_customer_zue_coin` VALUES (4, 10053, 9986.22, 3811334400, NULL, 1672056110, 1672056110, 0);
  361. -- ----------------------------
  362. -- Table structure for erp_department
  363. -- ----------------------------
  364. DROP TABLE IF EXISTS `erp_department`;
  365. CREATE TABLE `erp_department` (
  366. `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  367. `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '部门名称',
  368. `pid` int(10) NOT NULL DEFAULT 0 COMMENT '父级部门',
  369. `store_id` int(11) NULL DEFAULT NULL COMMENT '关联门店ID',
  370. `describe` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '描述',
  371. `create_time` bigint(16) NULL DEFAULT NULL COMMENT '创建时间',
  372. `update_time` bigint(16) NULL DEFAULT NULL COMMENT '更新时间',
  373. `is_delete` tinyint(1) NOT NULL DEFAULT 0,
  374. PRIMARY KEY (`id`) USING BTREE
  375. ) ENGINE = InnoDB AUTO_INCREMENT = 33 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '部门' ROW_FORMAT = DYNAMIC;
  376. -- ----------------------------
  377. -- Records of erp_department
  378. -- ----------------------------
  379. INSERT INTO `erp_department` VALUES (5, '市场部', 0, NULL, '111', 1234567890, 1671642753, 0);
  380. INSERT INTO `erp_department` VALUES (6, 'AMK Hub Branch', 5, 10003, 'AMK Hub Branch', 1234567890, 1671083167, 0);
  381. INSERT INTO `erp_department` VALUES (7, '物流部', 0, NULL, '物流部', 1234567890, 1671083197, 0);
  382. INSERT INTO `erp_department` VALUES (8, '财务部', 0, NULL, '财务', 1234567890, 1671083239, 0);
  383. INSERT INTO `erp_department` VALUES (17, '佛堂部', 0, NULL, '佛堂', 1671592191, 1671592191, 0);
  384. INSERT INTO `erp_department` VALUES (28, '1', 0, NULL, '1', 1671631145, 1671632469, 1);
  385. INSERT INTO `erp_department` VALUES (29, '1111111', 0, NULL, '11111', 1671631497, 1671632444, 1);
  386. INSERT INTO `erp_department` VALUES (31, 'JEM Hub Branch', 5, 10004, 'JEM Hub Branch', 1671697864, 1671697864, 0);
  387. INSERT INTO `erp_department` VALUES (32, 'test', 5, 10005, 'test', 1672021600, 1672021600, 0);
  388. -- ----------------------------
  389. -- Table structure for erp_order
  390. -- ----------------------------
  391. DROP TABLE IF EXISTS `erp_order`;
  392. CREATE TABLE `erp_order` (
  393. `id` int(11) NOT NULL AUTO_INCREMENT,
  394. `no` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '订单编号',
  395. `customer_id` int(11) NOT NULL COMMENT '客户ID',
  396. `customer_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '客户名称',
  397. `obj_names` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商品名称集合',
  398. `rental_amount` float(10, 2) NOT NULL DEFAULT 0.00 COMMENT '项目总额',
  399. `receivable_amount` float(10, 2) NOT NULL DEFAULT 0.00 COMMENT '应收金额',
  400. `receive_amount` float(10, 2) NOT NULL DEFAULT 0.00 COMMENT '实收金额',
  401. `imposed_amount` float(10, 2) NOT NULL DEFAULT 0.00 COMMENT '待收金额',
  402. `product_amount` float(10, 2) NOT NULL DEFAULT 0.00 COMMENT '商品的费用',
  403. `total_sales_tax` float(10, 2) NOT NULL DEFAULT 0.00 COMMENT '总消费税',
  404. `service_charge_amount` float(10, 2) NOT NULL DEFAULT 0.00 COMMENT '总信用卡服务费',
  405. `total_annual_fee` float(10, 2) NOT NULL DEFAULT 0.00 COMMENT '总年费费用',
  406. `zue_coin` float(10, 2) NOT NULL DEFAULT 0.00 COMMENT '消耗了多少御龙币',
  407. `zue_coin_amount` float(10, 2) NOT NULL DEFAULT 0.00 COMMENT '御龙币兑换了多少钱',
  408. `type` tinyint(4) NOT NULL DEFAULT 1 COMMENT '订单类型 1=正常订单,2=定金订单',
  409. `store_id` int(11) NOT NULL COMMENT '门店ID',
  410. `advisor_ids` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '所属权限者IDs',
  411. `remarks` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  412. `create_time` int(10) NULL DEFAULT NULL COMMENT '创建时间',
  413. `update_time` int(10) NULL DEFAULT NULL COMMENT '更新时间',
  414. `is_delete` tinyint(1) NOT NULL DEFAULT 0 COMMENT '逻辑删除字段',
  415. PRIMARY KEY (`id`) USING BTREE
  416. ) ENGINE = InnoDB AUTO_INCREMENT = 42 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '订单表' ROW_FORMAT = DYNAMIC;
  417. -- ----------------------------
  418. -- Records of erp_order
  419. -- ----------------------------
  420. INSERT INTO `erp_order` VALUES (29, 'AMK10000001', 10052, 'David Robert Joseph Beckham|贝克汉姆', '胸坠,小番茄', 306.40, 306.40, 306.40, 0.00, 168.00, 50.40, 0.00, 88.00, 0.00, 0.00, 1, 10003, '10007', '备注1', 1672383934, 1672383934, 0);
  421. INSERT INTO `erp_order` VALUES (30, 'AMK10000002', 10052, 'David Robert Joseph Beckham|贝克汉姆', '胸坠,斑马', 11267.39, 11267.39, 0.00, 11267.39, 10137.99, 1041.40, 0.00, 88.00, 0.00, 0.00, 2, 10003, '10008,10007', NULL, 1672823748, 1672823748, 0);
  422. INSERT INTO `erp_order` VALUES (31, 'AMK10000003', 10052, 'David Robert Joseph Beckham|贝克汉姆', '胸坠,斑马,火龙果', 11269.83, 11269.83, 0.00, 11269.83, 10139.87, 1041.96, 0.00, 88.00, 0.00, 0.00, 2, 10003, '10009,10008', NULL, 1672833900, 1672833900, 0);
  423. INSERT INTO `erp_order` VALUES (32, 'AMK10000004', 10053, 'Mr Yin|小小尹', '胸坠', 1337.00, 1337.00, 1337.00, 0.00, 690.00, 207.00, 0.00, 440.00, 0.00, 0.00, 1, 10003, '10008,10009', NULL, 1672885349, 1672885349, 0);
  424. INSERT INTO `erp_order` VALUES (33, 'AMK10000005', 10056, '英文名|中文名', '胸坠,火龙果', 544.56, 544.56, 544.56, 0.00, 283.52, 85.04, 0.00, 176.00, 0.00, 0.00, 1, 10003, '10008,10009', NULL, 1672885475, 1672885475, 0);
  425. INSERT INTO `erp_order` VALUES (34, 'AMK10000006', 10053, 'Mr Yin|小小尹', '火龙果,胸坠', 302.32, 274.76, 274.76, 0.00, 141.76, 42.52, 30.04, 88.00, 13.78, 27.56, 1, 10003, '10008', NULL, 1672985214, 1672985214, 0);
  426. INSERT INTO `erp_order` VALUES (35, 'AMK10000007', 10053, 'Mr Yin|小小尹', '小番茄', 19.50, 19.50, 19.50, 0.00, 15.00, 4.50, 0.00, 0.00, 0.00, 0.00, 1, 10003, '10007', NULL, 1672986161, 1672986161, 0);
  427. INSERT INTO `erp_order` VALUES (36, 'AMK10000008', 10053, 'Mr Yin|小小尹', '胸坠', 267.40, 267.40, 17.54, 497.76, 138.00, 41.40, 0.00, 88.00, 0.00, 0.00, 2, 10003, '10007', NULL, 1672987367, 1672987367, 0);
  428. INSERT INTO `erp_order` VALUES (37, 'AMK10000009', 10053, 'Mr Yin|小小尹', '小番茄', 19.50, 19.50, 1.00, 18.50, 15.00, 4.50, 0.00, 0.00, 0.00, 0.00, 2, 10003, '10007', NULL, 1672989412, 1672989412, 0);
  429. INSERT INTO `erp_order` VALUES (38, 'AMK10000010', 10052, 'David Robert Joseph Beckham|贝克汉姆', '火龙果,小番茄,斑马', 11024.37, 11024.37, 11024.37, 0.00, 10018.75, 1005.62, 0.00, 0.00, 0.00, 0.00, 1, 10003, '10007', NULL, 1672999996, 1672999996, 0);
  430. INSERT INTO `erp_order` VALUES (39, 'AMK10000011', 10058, 'xbz|小包子', '斑马,火龙果,胸坠', 22272.26, 22272.26, 22272.26, 0.00, 20141.74, 2042.52, 0.00, 88.00, 0.00, 0.00, 1, 10003, '10007', NULL, 1673074779, 1673074779, 0);
  431. INSERT INTO `erp_order` VALUES (40, 'AMK10000012', 10052, 'David Robert Joseph Beckham|贝克汉姆', '胸坠', 267.40, 267.40, 267.40, 0.00, 138.00, 41.40, 0.00, 88.00, 0.00, 0.00, 1, 10003, '10008', NULL, 1673075325, 1673075325, 1);
  432. INSERT INTO `erp_order` VALUES (41, 'AMK10000013', 10058, 'xbz|小包子', '胸坠,火龙果,斑马', 11272.27, 11272.27, 11272.27, 0.00, 10141.75, 1042.52, 0.00, 88.00, 0.00, 0.00, 1, 10003, '10007', 'zhaoling 17.06', 1673088892, 1673088892, 0);
  433. -- ----------------------------
  434. -- Table structure for erp_order_annual_fee
  435. -- ----------------------------
  436. DROP TABLE IF EXISTS `erp_order_annual_fee`;
  437. CREATE TABLE `erp_order_annual_fee` (
  438. `id` int(11) NOT NULL AUTO_INCREMENT,
  439. `order_id` int(11) NOT NULL COMMENT '订单编号',
  440. `customer_id` int(11) NOT NULL COMMENT '客户ID',
  441. `customer_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '客户中英文名',
  442. `customer_mobile` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '客户手机号码',
  443. `customer_create_username` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '建表人',
  444. `order_product_id` int(11) NOT NULL COMMENT '商品ID',
  445. `order_product_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '商品名称',
  446. `fee` float(10, 2) NOT NULL DEFAULT 0.00 COMMENT '费用',
  447. `is_pay` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否已支付',
  448. `index` int(11) NOT NULL DEFAULT 1 COMMENT '第几年的年费',
  449. `start_time` bigint(16) NOT NULL COMMENT '开始时间',
  450. `end_time` bigint(16) NOT NULL COMMENT '结束时间',
  451. `order_create_time` bigint(16) NOT NULL DEFAULT 0 COMMENT '订单创建时间',
  452. `adviser_ids` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '销售顾问',
  453. `store_id` int(11) NOT NULL COMMENT '门店Id',
  454. `delete_time` bigint(16) NULL DEFAULT 0,
  455. `create_time` int(10) NULL DEFAULT NULL COMMENT '创建时间',
  456. `update_time` int(10) NULL DEFAULT NULL COMMENT '更新时间',
  457. `is_delete` tinyint(1) NOT NULL DEFAULT 0 COMMENT '逻辑删除字段',
  458. PRIMARY KEY (`id`) USING BTREE
  459. ) ENGINE = InnoDB AUTO_INCREMENT = 44 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '年费管理 根据商品来生成' ROW_FORMAT = DYNAMIC;
  460. -- ----------------------------
  461. -- Records of erp_order_annual_fee
  462. -- ----------------------------
  463. INSERT INTO `erp_order_annual_fee` VALUES (19, 29, 10052, 'David Robert Joseph Beckham|贝克汉姆', '18774388888', 'Caviar.', 38, '胸坠', 88.00, 0, 1, 1672389780, 1703925780, 1672383934, '10007', 10003, 1672740615, 1672389780, 1672389780, 1);
  464. INSERT INTO `erp_order_annual_fee` VALUES (20, 29, 10052, 'David Robert Joseph Beckham|贝克汉姆', '18774388888', 'Caviar.', 39, '斑马', 88.00, 0, 1, 1672389780, 1703925780, 1672383934, '10007', 10003, 1672734839, 1672389780, 1672389780, 1);
  465. INSERT INTO `erp_order_annual_fee` VALUES (21, 29, 10052, 'David Robert Joseph Beckham|贝克汉姆', '18774388888', 'Caviar.', 38, '胸坠', 88.00, 0, 1, 1672390837, 1703926837, 1672383934, '10007', 10003, 1672740615, 1672390837, 1672390837, 1);
  466. INSERT INTO `erp_order_annual_fee` VALUES (22, 29, 10052, 'David Robert Joseph Beckham|贝克汉姆', '18774388888', 'Caviar.', 39, '斑马', 88.00, 0, 1, 1672390837, 1703926837, 1672383934, '10007', 10003, 1672734839, 1672390837, 1672390837, 1);
  467. INSERT INTO `erp_order_annual_fee` VALUES (23, 29, 10052, 'David Robert Joseph Beckham|贝克汉姆', '18774388888', 'Caviar.', 38, '胸坠', 88.00, 0, 1, 1672391529, 1703927529, 1672383934, '10007', 10003, 1672740615, 1672391529, 1672391529, 1);
  468. INSERT INTO `erp_order_annual_fee` VALUES (24, 29, 10052, 'David Robert Joseph Beckham|贝克汉姆', '18774388888', 'Caviar.', 39, '斑马', 88.00, 0, 1, 1672391529, 1703927529, 1672383934, '10007', 10003, 1672734839, 1672391529, 1672391529, 1);
  469. INSERT INTO `erp_order_annual_fee` VALUES (25, 29, 10052, 'David Robert Joseph Beckham|贝克汉姆', '18774388888', 'Caviar.', 49, '胸坠', 88.00, 1, 1, 1672741219, 1704277219, 1672383934, '10007', 10003, 1673074074, 1672741219, 1673000461, 1);
  470. INSERT INTO `erp_order_annual_fee` VALUES (26, 29, 10052, 'David Robert Joseph Beckham|贝克汉姆', '18774388888', 'Caviar.', 50, '斑马', 88.00, 0, 1, 1672741219, 1704277219, 1672383934, '10007', 10003, 1673074611, 1672741219, 1672741219, 1);
  471. INSERT INTO `erp_order_annual_fee` VALUES (27, 33, 10056, '英文名|中文名', '手机号', 'Caviar.', 61, '胸坠', 88.00, 1, 1, 1672985035, 1704521035, 1672885475, '10007', 10003, 0, 1672985035, 1673000495, 0);
  472. INSERT INTO `erp_order_annual_fee` VALUES (28, 33, 10056, '英文名|中文名', '手机号', 'Caviar.', 62, '胸坠', 88.00, 1, 1, 1672985035, 1704521035, 1672885475, '10007', 10003, 0, 1672985035, 1673000740, 0);
  473. INSERT INTO `erp_order_annual_fee` VALUES (29, 34, 10053, 'Mr Yin|小小尹', '15567876543', 'AMK_001', 69, '胸坠', 88.00, 0, 1, 1672986101, 1704522101, 1672985214, '10007', 10003, 0, 1672986101, 1672986101, 0);
  474. INSERT INTO `erp_order_annual_fee` VALUES (30, 35, 10053, 'Mr Yin|小小尹', '15567876543', 'AMK_001', 70, '斑马', 88.00, 0, 1, 1672986363, 1704522363, 1672986161, '10007', 10003, 1673088280, 1672986363, 1672986363, 1);
  475. INSERT INTO `erp_order_annual_fee` VALUES (31, 32, 10053, 'Mr Yin|小小尹', '15567876543', 'AMK_001', 56, '胸坠', 88.00, 0, 1, 1672987507, 1704523507, 1672885349, '10007', 10003, 0, 1672987507, 1672987507, 0);
  476. INSERT INTO `erp_order_annual_fee` VALUES (32, 32, 10053, 'Mr Yin|小小尹', '15567876543', 'AMK_001', 57, '胸坠', 88.00, 0, 1, 1672987507, 1704523507, 1672885349, '10007', 10003, 0, 1672987507, 1672987507, 0);
  477. INSERT INTO `erp_order_annual_fee` VALUES (33, 32, 10053, 'Mr Yin|小小尹', '15567876543', 'AMK_001', 58, '胸坠', 88.00, 0, 1, 1672987507, 1704523507, 1672885349, '10007', 10003, 0, 1672987507, 1672987507, 0);
  478. INSERT INTO `erp_order_annual_fee` VALUES (34, 32, 10053, 'Mr Yin|小小尹', '15567876543', 'AMK_001', 59, '胸坠', 88.00, 0, 1, 1672987507, 1704523507, 1672885349, '10007', 10003, 0, 1672987507, 1672987507, 0);
  479. INSERT INTO `erp_order_annual_fee` VALUES (35, 32, 10053, 'Mr Yin|小小尹', '15567876543', 'AMK_001', 60, '胸坠', 88.00, 0, 1, 1672987507, 1704523507, 1672885349, '10007', 10003, 0, 1672987507, 1672987507, 0);
  480. INSERT INTO `erp_order_annual_fee` VALUES (36, 38, 10052, 'David Robert Joseph Beckham|贝克汉姆', '18774388888', 'Caviar.', 73, '胸坠', 88.00, 0, 1, 1672999999, 1704535999, 1672999996, '10007', 10003, 1673086778, 1672999999, 1672999999, 1);
  481. INSERT INTO `erp_order_annual_fee` VALUES (37, 29, 10052, 'David Robert Joseph Beckham|贝克汉姆', '18774388888', 'Caviar.', 78, '胸坠', 88.00, 1, 1, 1673074134, 1704610134, 1672383934, '10007', 10003, 0, 1673074134, 1673074134, 0);
  482. INSERT INTO `erp_order_annual_fee` VALUES (38, 39, 10058, 'xbz|小包子', '15574920253', 'Caviar.', 85, '胸坠', 88.00, 1, 1, 1673074783, 1704610783, 1673074779, '10007', 10003, 0, 1673074783, 1673074783, 0);
  483. INSERT INTO `erp_order_annual_fee` VALUES (39, 40, 10052, 'David Robert Joseph Beckham|贝克汉姆', '18774388888', 'Caviar.', 86, '胸坠', 88.00, 1, 1, 1673075330, 1704611330, 1673075325, '10008', 10003, 1673084532, 1673075330, 1673075330, 1);
  484. INSERT INTO `erp_order_annual_fee` VALUES (40, 40, 10052, 'David Robert Joseph Beckham|贝克汉姆', '18774388888', 'Caviar.', 87, '胸坠', 88.00, 1, 1, 1673075330, 1704611330, 1673075325, '10008', 10003, 1673084666, 1673075330, 1673075330, 1);
  485. INSERT INTO `erp_order_annual_fee` VALUES (41, 39, 10058, 'xbz|小包子', '15574920253', 'Caviar.', 85, '胸坠', 88.00, 1, 1, 1673087851, 1704623851, 1673074779, '10007', 10003, 0, 1673087851, 1673087851, 0);
  486. INSERT INTO `erp_order_annual_fee` VALUES (42, 39, 10058, 'xbz|小包子', '15574920253', 'Caviar.', 90, '胸坠', 88.00, 1, 1, 1673087851, 1704623851, 1673074779, '10007', 10003, 1673087903, 1673087851, 1673087851, 1);
  487. INSERT INTO `erp_order_annual_fee` VALUES (43, 41, 10058, 'xbz|小包子', '15574920253', 'Caviar.', 94, '胸坠', 88.00, 1, 1, 1673088896, 1704624896, 1673088892, '10007', 10003, 0, 1673088896, 1673088896, 0);
  488. -- ----------------------------
  489. -- Table structure for erp_order_payment
  490. -- ----------------------------
  491. DROP TABLE IF EXISTS `erp_order_payment`;
  492. CREATE TABLE `erp_order_payment` (
  493. `id` int(11) NOT NULL AUTO_INCREMENT,
  494. `order_id` int(11) NOT NULL COMMENT '订单ID',
  495. `channel_id` int(10) NOT NULL COMMENT '支付渠道ID',
  496. `channel_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '支付渠道名称',
  497. `fee` float(10, 2) NOT NULL COMMENT '支付了多少钱',
  498. `code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付编码',
  499. `credit_card_id` int(11) NULL DEFAULT NULL COMMENT '信用卡支付ID',
  500. `credit_card_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '信用卡支付银行名称',
  501. `stage_num` int(11) NULL DEFAULT NULL COMMENT '信用卡config',
  502. `service_charge` float(10, 2) NULL DEFAULT 0.00 COMMENT '手续费',
  503. `service_charge_rate` int(4) NULL DEFAULT 0 COMMENT '手续费比例',
  504. `create_time` int(10) NULL DEFAULT NULL COMMENT '创建时间',
  505. `update_time` int(10) NULL DEFAULT NULL COMMENT '更新时间',
  506. `is_delete` tinyint(1) NOT NULL DEFAULT 0 COMMENT '逻辑删除字段',
  507. PRIMARY KEY (`id`) USING BTREE
  508. ) ENGINE = InnoDB AUTO_INCREMENT = 126 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '订单组合支付表' ROW_FORMAT = DYNAMIC;
  509. -- ----------------------------
  510. -- Records of erp_order_payment
  511. -- ----------------------------
  512. INSERT INTO `erp_order_payment` VALUES (42, 29, 1, 'Cash', 1.00, NULL, NULL, NULL, NULL, NULL, NULL, 1672383974, 1672383974, 0);
  513. INSERT INTO `erp_order_payment` VALUES (43, 29, 1, 'Cash', 1.00, NULL, NULL, NULL, NULL, NULL, NULL, 1672383977, 1672383977, 0);
  514. INSERT INTO `erp_order_payment` VALUES (44, 29, 1, 'Cash', 1.00, NULL, NULL, NULL, NULL, NULL, NULL, 1672383978, 1672383978, 0);
  515. INSERT INTO `erp_order_payment` VALUES (45, 29, 4, 'Visa / Master', 5000.00, 'Test', 28, 'MayBank', 6, 150.00, 3, 1672384099, 1672384099, 0);
  516. INSERT INTO `erp_order_payment` VALUES (46, 29, 4, 'Visa / Master', 5000.00, 'Test1', 29, 'UOB', 12, 250.00, 5, 1672384099, 1672384099, 0);
  517. INSERT INTO `erp_order_payment` VALUES (47, 29, 1, 'Cash', 1.00, NULL, NULL, NULL, NULL, NULL, NULL, 1672384483, 1672384483, 0);
  518. INSERT INTO `erp_order_payment` VALUES (48, 29, 1, 'Cash', 500.00, NULL, NULL, NULL, NULL, NULL, NULL, 1672384523, 1672384523, 0);
  519. INSERT INTO `erp_order_payment` VALUES (49, 29, 1, 'Cash', 600.00, NULL, NULL, NULL, NULL, NULL, NULL, 1672384771, 1672384771, 0);
  520. INSERT INTO `erp_order_payment` VALUES (50, 29, 11, 'Zue Coin', 1.00, NULL, NULL, NULL, NULL, NULL, NULL, 1672384890, 1672384890, 0);
  521. INSERT INTO `erp_order_payment` VALUES (51, 29, 11, 'Zue Coin', 1.00, NULL, NULL, NULL, NULL, NULL, NULL, 1672384914, 1672384914, 0);
  522. INSERT INTO `erp_order_payment` VALUES (52, 29, 11, 'Zue Coin', 1.00, NULL, NULL, NULL, NULL, NULL, NULL, 1672384941, 1672384941, 0);
  523. INSERT INTO `erp_order_payment` VALUES (53, 29, 11, 'Zue Coin', 275.70, NULL, NULL, NULL, NULL, NULL, NULL, 1672385132, 1672385132, 0);
  524. INSERT INTO `erp_order_payment` VALUES (54, 29, 11, 'Zue Coin', 3.00, NULL, NULL, NULL, NULL, NULL, NULL, 1672389780, 1672389780, 0);
  525. INSERT INTO `erp_order_payment` VALUES (55, 29, 1, 'Cash', 1.00, NULL, NULL, NULL, NULL, NULL, NULL, 1672390837, 1672390837, 0);
  526. INSERT INTO `erp_order_payment` VALUES (56, 29, 1, 'Cash', 1.00, NULL, NULL, NULL, NULL, NULL, NULL, 1672391529, 1672391529, 0);
  527. INSERT INTO `erp_order_payment` VALUES (58, 29, 0, 'Exchange a purchase', -10840.48, NULL, NULL, NULL, NULL, 0.00, 0, 1672735097, 1672735097, 0);
  528. INSERT INTO `erp_order_payment` VALUES (76, 29, 0, 'Exchange a purchase', -131.07, NULL, NULL, NULL, NULL, 0.00, 0, 1672740615, 1672740615, 0);
  529. INSERT INTO `erp_order_payment` VALUES (77, 29, 0, 'Exchange a purchase', 11137.39, NULL, NULL, NULL, NULL, 0.00, 0, 1672741219, 1672741219, 0);
  530. INSERT INTO `erp_order_payment` VALUES (78, 33, 1, 'Cash', 1.00, NULL, NULL, NULL, NULL, 0.00, 0, NULL, NULL, 0);
  531. INSERT INTO `erp_order_payment` VALUES (79, 33, 1, 'Cash', 188.88, NULL, NULL, NULL, NULL, 0.00, 0, NULL, NULL, 0);
  532. INSERT INTO `erp_order_payment` VALUES (80, 33, 1, 'Cash', 354.68, NULL, NULL, NULL, NULL, NULL, NULL, 1672985035, 1672985035, 0);
  533. INSERT INTO `erp_order_payment` VALUES (81, 34, 1, 'Cash', 1.00, NULL, NULL, NULL, NULL, NULL, NULL, 1672985224, 1672985224, 0);
  534. INSERT INTO `erp_order_payment` VALUES (82, 34, 1, 'Cash', 2.00, NULL, NULL, NULL, NULL, NULL, NULL, 1672985229, 1672985229, 0);
  535. INSERT INTO `erp_order_payment` VALUES (83, 34, 2, 'NETS', 100.00, '1', NULL, NULL, NULL, NULL, NULL, 1672985550, 1672985550, 0);
  536. INSERT INTO `erp_order_payment` VALUES (84, 34, 4, 'Visa / Master', 1.00, '1', 30, 'HSBC', 6, 0.04, 4, 1672985568, 1672985568, 0);
  537. INSERT INTO `erp_order_payment` VALUES (85, 34, 11, 'Zue Coin', 1.00, NULL, NULL, NULL, NULL, NULL, NULL, 1672985692, 1672985692, 0);
  538. INSERT INTO `erp_order_payment` VALUES (86, 34, 11, 'Zue Coin', 0.52, NULL, NULL, NULL, NULL, NULL, NULL, 1672985705, 1672985705, 0);
  539. INSERT INTO `erp_order_payment` VALUES (87, 34, 11, 'Zue Coin', 10.00, NULL, NULL, NULL, NULL, NULL, NULL, 1672985738, 1672985738, 0);
  540. INSERT INTO `erp_order_payment` VALUES (88, 34, 7, 'DINERS', 100.00, '速度发放', 32, 'DINERS', 24, 30.00, 30, 1672985763, 1672985763, 0);
  541. INSERT INTO `erp_order_payment` VALUES (89, 34, 11, 'Zue Coin', 0.97, NULL, NULL, NULL, NULL, NULL, NULL, 1672985818, 1672985818, 0);
  542. INSERT INTO `erp_order_payment` VALUES (90, 34, 11, 'Zue Coin', 0.87, NULL, NULL, NULL, NULL, NULL, NULL, 1672985827, 1672985827, 0);
  543. INSERT INTO `erp_order_payment` VALUES (91, 34, 11, 'Zue Coin', 0.42, NULL, NULL, NULL, NULL, NULL, NULL, 1672986045, 1672986045, 0);
  544. INSERT INTO `erp_order_payment` VALUES (92, 34, 1, 'Cash', 0.76, NULL, NULL, NULL, NULL, NULL, NULL, 1672986075, 1672986075, 0);
  545. INSERT INTO `erp_order_payment` VALUES (93, 34, 9, 'Paynow', 70.00, NULL, NULL, NULL, NULL, NULL, NULL, 1672986101, 1672986101, 0);
  546. INSERT INTO `erp_order_payment` VALUES (94, 35, 11, 'Zue Coin', 550.00, NULL, NULL, NULL, NULL, NULL, NULL, 1672986194, 1672986194, 0);
  547. INSERT INTO `erp_order_payment` VALUES (95, 35, 4, 'Visa / Master', 8888.00, 'IIIOOPS', 30, 'HSBC', 12, 711.04, 8, 1672986297, 1672986297, 0);
  548. INSERT INTO `erp_order_payment` VALUES (96, 35, 5, 'Voucher', 1723.03, NULL, NULL, NULL, NULL, NULL, NULL, 1672986363, 1672986363, 0);
  549. INSERT INTO `erp_order_payment` VALUES (97, 36, 1, 'Cash', 1.00, NULL, NULL, NULL, NULL, NULL, NULL, 1672987385, 1672987385, 0);
  550. INSERT INTO `erp_order_payment` VALUES (98, 36, 1, 'Cash', 2.50, NULL, NULL, NULL, NULL, NULL, NULL, 1672987391, 1672987391, 0);
  551. INSERT INTO `erp_order_payment` VALUES (99, 36, 11, 'Zue Coin', 0.98, NULL, NULL, NULL, NULL, NULL, NULL, 1672987404, 1672987404, 0);
  552. INSERT INTO `erp_order_payment` VALUES (100, 36, 1, 'Cash', 1.04, NULL, NULL, NULL, NULL, NULL, NULL, 1672987426, 1672987426, 0);
  553. INSERT INTO `erp_order_payment` VALUES (101, 36, 10, 'Stripe', 13.00, NULL, NULL, NULL, NULL, NULL, NULL, 1672987446, 1672987446, 0);
  554. INSERT INTO `erp_order_payment` VALUES (102, 32, 1, 'Cash', 1337.00, NULL, NULL, NULL, NULL, NULL, NULL, 1672987507, 1672987507, 0);
  555. INSERT INTO `erp_order_payment` VALUES (103, 37, 1, 'Cash', 1.00, NULL, NULL, NULL, NULL, NULL, NULL, 1672989888, 1672989888, 0);
  556. INSERT INTO `erp_order_payment` VALUES (104, 38, 1, 'Cash', 11289.33, NULL, NULL, NULL, NULL, NULL, NULL, 1672999999, 1672999999, 0);
  557. INSERT INTO `erp_order_payment` VALUES (105, 29, 0, 'Exchange a purchase', -2.44, NULL, NULL, NULL, NULL, 0.00, 0, 1673062225, 1673062225, 0);
  558. INSERT INTO `erp_order_payment` VALUES (106, 29, 0, 'Exchange a purchase', -247.90, NULL, NULL, NULL, NULL, 0.00, 0, 1673074074, 1673074074, 0);
  559. INSERT INTO `erp_order_payment` VALUES (107, 29, 0, 'Exchange a purchase', 247.90, NULL, NULL, NULL, NULL, 0.00, 0, 1673074134, 1673074134, 0);
  560. INSERT INTO `erp_order_payment` VALUES (108, 29, 0, 'Exchange a purchase', -10960.99, NULL, NULL, NULL, NULL, 0.00, 0, 1673074611, 1673074611, 0);
  561. INSERT INTO `erp_order_payment` VALUES (109, 39, 1, 'Cash', 22289.32, NULL, NULL, NULL, NULL, NULL, NULL, 1673074783, 1673074783, 0);
  562. INSERT INTO `erp_order_payment` VALUES (110, 40, 1, 'Cash', 534.80, NULL, NULL, NULL, NULL, NULL, NULL, 1673075330, 1673075330, 0);
  563. INSERT INTO `erp_order_payment` VALUES (111, 40, 0, 'Exchange a purchase', -267.40, NULL, NULL, NULL, NULL, 0.00, 0, 1673084532, 1673084532, 0);
  564. INSERT INTO `erp_order_payment` VALUES (112, 40, 0, 'Exchange a purchase', -267.40, NULL, NULL, NULL, NULL, 0.00, 0, 1673084666, 1673084666, 0);
  565. INSERT INTO `erp_order_payment` VALUES (113, 38, 0, 'Exchange a purchase', -264.96, NULL, NULL, NULL, NULL, 0.00, 0, 1673086778, 1673086778, 0);
  566. INSERT INTO `erp_order_payment` VALUES (114, 39, 0, 'Exchange a purchase', 0.00, NULL, NULL, NULL, NULL, 0.00, 0, 1673087487, 1673087487, 0);
  567. INSERT INTO `erp_order_payment` VALUES (115, 39, 0, 'Exchange a purchase', 247.90, NULL, NULL, NULL, NULL, 0.00, 0, 1673087561, 1673087561, 0);
  568. INSERT INTO `erp_order_payment` VALUES (116, 39, 1, 'Cash', 247.90, NULL, NULL, NULL, NULL, NULL, NULL, 1673087851, 1673087851, 0);
  569. INSERT INTO `erp_order_payment` VALUES (117, 39, 0, 'Exchange a purchase', -264.96, NULL, NULL, NULL, NULL, 0.00, 0, 1673087903, 1673087903, 0);
  570. INSERT INTO `erp_order_payment` VALUES (118, 36, 0, 'Exchange a purchase', 247.90, NULL, NULL, NULL, NULL, 0.00, 0, 1673088203, 1673088203, 0);
  571. INSERT INTO `erp_order_payment` VALUES (119, 35, 0, 'Exchange a purchase', -11691.53, NULL, NULL, NULL, NULL, 0.00, 0, 1673088280, 1673088280, 0);
  572. INSERT INTO `erp_order_payment` VALUES (120, 41, 1, 'Cash', 11289.33, NULL, NULL, NULL, NULL, NULL, NULL, 1673088896, 1673088896, 0);
  573. INSERT INTO `erp_order_payment` VALUES (121, 41, 0, 'Exchange a purchase', -17.06, NULL, NULL, NULL, NULL, 0.00, 0, 1673088956, 1673088956, 0);
  574. INSERT INTO `erp_order_payment` VALUES (122, 41, 0, 'Exchange a purchase', -17.06, NULL, NULL, NULL, NULL, 0.00, 0, 1673090844, 1673090844, 0);
  575. INSERT INTO `erp_order_payment` VALUES (123, 35, 0, 'Exchange a purchase', -22283.06, NULL, NULL, NULL, NULL, 0.00, 0, 1673090974, 1673090974, 0);
  576. INSERT INTO `erp_order_payment` VALUES (124, 38, 0, 'Exchange a purchase', -529.92, NULL, NULL, NULL, NULL, 0.00, 0, 1673090990, 1673090990, 0);
  577. INSERT INTO `erp_order_payment` VALUES (125, 39, 0, 'Exchange a purchase', -529.92, NULL, NULL, NULL, NULL, 0.00, 0, 1673091005, 1673091005, 0);
  578. -- ----------------------------
  579. -- Table structure for erp_order_proceeds
  580. -- ----------------------------
  581. DROP TABLE IF EXISTS `erp_order_proceeds`;
  582. CREATE TABLE `erp_order_proceeds` (
  583. `id` int(11) NOT NULL AUTO_INCREMENT,
  584. `order_id` int(11) NOT NULL COMMENT '订单编号',
  585. `channels` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '支付渠道',
  586. `fee` float(10, 2) NOT NULL DEFAULT 0.00 COMMENT '费用',
  587. `admin_id` int(11) NOT NULL COMMENT '收款者ID',
  588. `admin_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '收款者名称',
  589. `create_time` int(10) NULL DEFAULT NULL COMMENT '创建时间',
  590. `update_time` int(10) NULL DEFAULT NULL COMMENT '更新时间',
  591. `is_delete` tinyint(1) NOT NULL DEFAULT 0 COMMENT '逻辑删除字段',
  592. PRIMARY KEY (`id`) USING BTREE
  593. ) ENGINE = InnoDB AUTO_INCREMENT = 94 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '年费管理 根据商品来生成' ROW_FORMAT = DYNAMIC;
  594. -- ----------------------------
  595. -- Records of erp_order_proceeds
  596. -- ----------------------------
  597. INSERT INTO `erp_order_proceeds` VALUES (51, 29, '[Cash]', 1.00, 10007, 'Caviar.', 1672383974, 1672383974, 0);
  598. INSERT INTO `erp_order_proceeds` VALUES (52, 29, '[Cash]', 1.00, 10007, 'Caviar.', 1672383977, 1672383977, 0);
  599. INSERT INTO `erp_order_proceeds` VALUES (53, 29, '[Cash]', 1.00, 10007, 'Caviar.', 1672383978, 1672383978, 0);
  600. INSERT INTO `erp_order_proceeds` VALUES (54, 29, '[Visa / Master]', 10000.00, 10007, 'Caviar.', 1672384099, 1672384099, 0);
  601. INSERT INTO `erp_order_proceeds` VALUES (55, 29, '[Cash]', 1.00, 10007, 'Caviar.', 1672384483, 1672384483, 0);
  602. INSERT INTO `erp_order_proceeds` VALUES (56, 29, '[Cash]', 500.00, 10007, 'Caviar.', 1672384523, 1672384523, 0);
  603. INSERT INTO `erp_order_proceeds` VALUES (57, 29, '[Cash]', 600.00, 10007, 'Caviar.', 1672384771, 1672384771, 0);
  604. INSERT INTO `erp_order_proceeds` VALUES (58, 29, '[Zue Coin]', 0.00, 10007, 'Caviar.', 1672384890, 1672384890, 0);
  605. INSERT INTO `erp_order_proceeds` VALUES (59, 29, '[Zue Coin]', 0.00, 10007, 'Caviar.', 1672384914, 1672384914, 0);
  606. INSERT INTO `erp_order_proceeds` VALUES (60, 29, '[Zue Coin]', 0.00, 10007, 'Caviar.', 1672384941, 1672384941, 0);
  607. INSERT INTO `erp_order_proceeds` VALUES (61, 29, '[Zue Coin]', 0.00, 10007, 'Caviar.', 1672385132, 1672385132, 0);
  608. INSERT INTO `erp_order_proceeds` VALUES (62, 29, '[Zue Coin]', 0.00, 10007, 'Caviar.', 1672389780, 1672389780, 0);
  609. INSERT INTO `erp_order_proceeds` VALUES (63, 29, '[Cash]', 1.00, 10007, 'Caviar.', 1672390837, 1672390837, 0);
  610. INSERT INTO `erp_order_proceeds` VALUES (64, 29, '[Cash]', 1.00, 10007, 'Caviar.', 1672391529, 1672391529, 0);
  611. INSERT INTO `erp_order_proceeds` VALUES (65, 33, '[Cash]', 354.68, 10007, 'Caviar.', 1672985036, 1672985036, 0);
  612. INSERT INTO `erp_order_proceeds` VALUES (66, 34, '[Cash]', 1.00, 10007, 'Caviar.', 1672985224, 1672985224, 0);
  613. INSERT INTO `erp_order_proceeds` VALUES (67, 34, '[Cash]', 2.00, 10007, 'Caviar.', 1672985229, 1672985229, 0);
  614. INSERT INTO `erp_order_proceeds` VALUES (68, 34, '[NETS]', 100.00, 10007, 'Caviar.', 1672985550, 1672985550, 0);
  615. INSERT INTO `erp_order_proceeds` VALUES (69, 34, '[Visa / Master]', 1.00, 10007, 'Caviar.', 1672985568, 1672985568, 0);
  616. INSERT INTO `erp_order_proceeds` VALUES (70, 34, '[Zue Coin]', 0.00, 10007, 'Caviar.', 1672985692, 1672985692, 0);
  617. INSERT INTO `erp_order_proceeds` VALUES (71, 34, '[Zue Coin]', 0.00, 10007, 'Caviar.', 1672985705, 1672985705, 0);
  618. INSERT INTO `erp_order_proceeds` VALUES (72, 34, '[Zue Coin]', 0.00, 10007, 'Caviar.', 1672985738, 1672985738, 0);
  619. INSERT INTO `erp_order_proceeds` VALUES (73, 34, '[DINERS]', 100.00, 10007, 'Caviar.', 1672985763, 1672985763, 0);
  620. INSERT INTO `erp_order_proceeds` VALUES (74, 34, '[Zue Coin]', 0.00, 10007, 'Caviar.', 1672985818, 1672985818, 0);
  621. INSERT INTO `erp_order_proceeds` VALUES (75, 34, '[Zue Coin]', 0.00, 10007, 'Caviar.', 1672985827, 1672985827, 0);
  622. INSERT INTO `erp_order_proceeds` VALUES (76, 34, '[Zue Coin]', 0.00, 10007, 'Caviar.', 1672986045, 1672986045, 0);
  623. INSERT INTO `erp_order_proceeds` VALUES (77, 34, '[Cash]', 0.76, 10007, 'Caviar.', 1672986075, 1672986075, 0);
  624. INSERT INTO `erp_order_proceeds` VALUES (78, 34, '[Paynow]', 70.00, 10007, 'Caviar.', 1672986101, 1672986101, 0);
  625. INSERT INTO `erp_order_proceeds` VALUES (79, 35, '[Zue Coin]', 0.00, 10007, 'Caviar.', 1672986194, 1672986194, 0);
  626. INSERT INTO `erp_order_proceeds` VALUES (80, 35, '[Visa / Master]', 8888.00, 10007, 'Caviar.', 1672986297, 1672986297, 0);
  627. INSERT INTO `erp_order_proceeds` VALUES (81, 35, '[Voucher]', 1723.03, 10007, 'Caviar.', 1672986363, 1672986363, 0);
  628. INSERT INTO `erp_order_proceeds` VALUES (82, 36, '[Cash]', 1.00, 10007, 'Caviar.', 1672987385, 1672987385, 0);
  629. INSERT INTO `erp_order_proceeds` VALUES (83, 36, '[Cash]', 2.50, 10007, 'Caviar.', 1672987391, 1672987391, 0);
  630. INSERT INTO `erp_order_proceeds` VALUES (84, 36, '[Zue Coin]', 0.00, 10007, 'Caviar.', 1672987404, 1672987404, 0);
  631. INSERT INTO `erp_order_proceeds` VALUES (85, 36, '[Cash]', 1.04, 10007, 'Caviar.', 1672987426, 1672987426, 0);
  632. INSERT INTO `erp_order_proceeds` VALUES (86, 36, '[Stripe]', 13.00, 10007, 'Caviar.', 1672987446, 1672987446, 0);
  633. INSERT INTO `erp_order_proceeds` VALUES (87, 32, '[Cash]', 1337.00, 10007, 'Caviar.', 1672987507, 1672987507, 0);
  634. INSERT INTO `erp_order_proceeds` VALUES (88, 37, '[Cash]', 1.00, 10007, 'Caviar.', 1672989888, 1672989888, 0);
  635. INSERT INTO `erp_order_proceeds` VALUES (89, 38, '[Cash]', 11289.33, 10007, 'Caviar.', 1672999999, 1672999999, 0);
  636. INSERT INTO `erp_order_proceeds` VALUES (90, 39, '[Cash]', 22289.32, 10007, 'Caviar.', 1673074783, 1673074783, 0);
  637. INSERT INTO `erp_order_proceeds` VALUES (91, 40, '[Cash]', 534.80, 10007, 'Caviar.', 1673075330, 1673075330, 0);
  638. INSERT INTO `erp_order_proceeds` VALUES (92, 39, '[Cash]', 247.90, 10007, 'Caviar.', 1673087851, 1673087851, 0);
  639. INSERT INTO `erp_order_proceeds` VALUES (93, 41, '[Cash]', 11289.33, 10007, 'Caviar.', 1673088896, 1673088896, 0);
  640. -- ----------------------------
  641. -- Table structure for erp_order_product
  642. -- ----------------------------
  643. DROP TABLE IF EXISTS `erp_order_product`;
  644. CREATE TABLE `erp_order_product` (
  645. `id` int(11) NOT NULL AUTO_INCREMENT,
  646. `order_id` int(11) NOT NULL COMMENT '订单ID',
  647. `order_no` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '订单编号',
  648. `customer_id` int(11) NOT NULL COMMENT '客户ID',
  649. `product_id` int(11) NOT NULL COMMENT '商品ID',
  650. `store_product_id` int(11) NOT NULL COMMENT '门店商品关系ID',
  651. `product_category_id` int(11) NOT NULL COMMENT '商品类别ID',
  652. `product_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '商品名称',
  653. `is_serve` tinyint(1) NOT NULL DEFAULT 0 COMMENT '商品/服务',
  654. `adviser_1_id` int(11) NULL DEFAULT NULL COMMENT '顾问1',
  655. `adviser_1_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  656. `adviser_2_id` int(11) NULL DEFAULT NULL COMMENT '顾问2',
  657. `adviser_2_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  658. `teacher_1_id` int(11) NULL DEFAULT NULL COMMENT '老师1',
  659. `teacher_1_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '老师1名称',
  660. `teacher_2_id` int(11) NULL DEFAULT NULL COMMENT '老师2',
  661. `teacher_2_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  662. `is_upload_numerology` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否需要上传命理报告',
  663. `is_upload` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否已经上传命理报告',
  664. `report` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '命理报告',
  665. `is_gather_annuity` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否收取年费',
  666. `annuity` float(10, 2) NOT NULL DEFAULT 0.00 COMMENT '年费',
  667. `real_price` float(10, 2) NOT NULL DEFAULT 0.00 COMMENT '商品真实价格',
  668. `transaction_price` float(10, 2) NOT NULL DEFAULT 0.00 COMMENT '商品的成交价格',
  669. `service_charge` float(10, 2) NOT NULL DEFAULT 0.00 COMMENT '信用卡支付所需要的服务费',
  670. `reduce_price` float(10, 2) NOT NULL DEFAULT 0.00 COMMENT '减少了多少价格',
  671. `reduce_type` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0 没有选择 1=活动折扣;2=活动减免价',
  672. `sales_tax_rate` int(10) NOT NULL DEFAULT 0 COMMENT '消费税比例',
  673. `sales_tax` float(10, 2) NOT NULL DEFAULT 0.00 COMMENT '消费税',
  674. `zue_coin` float(10, 2) NOT NULL DEFAULT 0.00 COMMENT '御龙币抵扣',
  675. `zue_coin_amount` float(10, 2) NULL DEFAULT 0.00 COMMENT '单项御龙币扣除的费用',
  676. `is_pay` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否已支付',
  677. `channel_ids` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '查询使用 无其他意义',
  678. `delete_time` bigint(16) NULL DEFAULT 0,
  679. `create_time` int(10) NULL DEFAULT NULL COMMENT '创建时间',
  680. `update_time` int(10) NULL DEFAULT NULL COMMENT '更新时间',
  681. `is_delete` tinyint(1) NOT NULL DEFAULT 0 COMMENT '逻辑删除字段',
  682. PRIMARY KEY (`id`) USING BTREE
  683. ) ENGINE = InnoDB AUTO_INCREMENT = 99 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '订单商品表' ROW_FORMAT = DYNAMIC;
  684. -- ----------------------------
  685. -- Records of erp_order_product
  686. -- ----------------------------
  687. INSERT INTO `erp_order_product` VALUES (38, 29, 'AMK10000001', 10052, 1, 5, 7, '胸坠', 0, 10008, 'AMK_001', 10007, 'Caviar.', NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 88.00, 138.00, 263.51, 9.49, 30.00, 1, 30, 41.40, 6.69, 13.38, 1, '', 1672740615, 1672383934, 1672383934, 1);
  688. INSERT INTO `erp_order_product` VALUES (39, 29, 'AMK10000001', 10052, 13, 3, 5, '斑马', 1, 10007, 'Caviar.', 10008, 'AMK_001', NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 0.00, 9999.99, 10840.48, 390.51, 0.00, 0, 10, 1000.00, 275.01, 550.02, 1, NULL, 1672735097, 1672383934, 1672383934, 1);
  689. INSERT INTO `erp_order_product` VALUES (47, 29, 'AMK10000001', 10052, 2, 6, 4, '斑马幼崽001', 0, 10007, 'Caviar.', NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, 0, 0.00, 100.00, 130.00, 0.00, 0.00, 0, 30, 30.00, 0.00, 0.00, 1, NULL, 1672741219, 1672740615, 1672740615, 1);
  690. INSERT INTO `erp_order_product` VALUES (48, 29, 'AMK10000001', 10052, 8, 4, 6, '火龙果', 0, 10007, 'Caviar.', NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, 0, 0.00, 1.88, 2.44, 0.00, 0.00, 0, 30, 0.56, 0.00, 0.00, 1, NULL, 1673062225, 1672740615, 1672740615, 1);
  691. INSERT INTO `erp_order_product` VALUES (49, 29, 'AMK10000001', 10052, 1, 5, 7, '胸坠', 0, 10007, 'Caviar.', NULL, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 88.00, 138.00, 267.40, 0.00, 30.00, 1, 30, 41.40, 0.00, 0.00, 1, NULL, 1673074074, 1672741219, 1672741219, 1);
  692. INSERT INTO `erp_order_product` VALUES (50, 29, 'AMK10000001', 10052, 13, 3, 5, '斑马', 1, 10007, 'Caviar.', NULL, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 0.00, 9999.99, 10999.99, 0.00, 0.00, 0, 10, 1000.00, 0.00, 0.00, 1, NULL, 1673074611, 1672741219, 1672741219, 1);
  693. INSERT INTO `erp_order_product` VALUES (51, 30, 'AMK10000002', 10052, 1, 5, 7, '胸坠', 0, 10008, 'AMK_001', 10007, 'Caviar.', NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 88.00, 138.00, 267.40, 0.00, 30.00, 1, 30, 41.40, 0.00, 0.00, 0, NULL, 0, 1672823748, 1672823748, 0);
  694. INSERT INTO `erp_order_product` VALUES (52, 30, 'AMK10000002', 10052, 13, 3, 5, '斑马', 1, 10007, 'Caviar.', 10008, 'AMK_001', NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 0.00, 9999.99, 10999.99, 0.00, 0.00, 0, 10, 1000.00, 0.00, 0.00, 0, NULL, 0, 1672823748, 1672823748, 0);
  695. INSERT INTO `erp_order_product` VALUES (53, 31, 'AMK10000003', 10052, 1, 5, 7, '胸坠', 0, 10009, 'AMK管理员', 10008, 'AMK_001', 10008, 'AMK_001', NULL, NULL, 1, 0, NULL, 1, 88.00, 138.00, 267.40, 0.00, 30.00, 1, 30, 41.40, 0.00, 0.00, 0, NULL, 0, 1672833900, 1672833900, 0);
  696. INSERT INTO `erp_order_product` VALUES (54, 31, 'AMK10000003', 10052, 13, 3, 5, '斑马', 1, 10008, 'AMK_001', 10009, 'AMK管理员', 10009, 'AMK管理员', NULL, NULL, 1, 0, NULL, 1, 0.00, 9999.99, 10999.99, 0.00, 0.00, 0, 10, 1000.00, 0.00, 0.00, 0, NULL, 0, 1672833900, 1672833900, 0);
  697. INSERT INTO `erp_order_product` VALUES (55, 31, 'AMK10000003', 10052, 8, 4, 6, '火龙果', 0, 10009, 'AMK管理员', NULL, NULL, 10009, 'AMK管理员', NULL, NULL, 0, 0, NULL, 0, 0.00, 1.88, 2.44, 0.00, 0.00, 0, 30, 0.56, 0.00, 0.00, 0, NULL, 0, 1672833900, 1672833900, 0);
  698. INSERT INTO `erp_order_product` VALUES (56, 32, 'AMK10000004', 10053, 1, 5, 7, '胸坠', 0, 10008, 'AMK_001', 10009, 'AMK管理员', 10009, 'AMK管理员', 10008, 'AMK_001', 1, 1, '/storage/numerology/20230106/f0d971b77600e674593f2d572bf76f57.jpg', 1, 88.00, 138.00, 267.40, 0.00, 30.00, 1, 30, 41.40, 0.00, 0.00, 1, NULL, 0, 1672885349, 1672991351, 0);
  699. INSERT INTO `erp_order_product` VALUES (57, 32, 'AMK10000004', 10053, 1, 5, 7, '胸坠', 0, 10008, 'AMK_001', 10009, 'AMK管理员', 10009, 'AMK管理员', 10008, 'AMK_001', 1, 1, '/storage/numerology/20230106/30568ba79b480111a2f5ce0d4745a58c.jpg', 1, 88.00, 138.00, 267.40, 0.00, 30.00, 1, 30, 41.40, 0.00, 0.00, 1, NULL, 0, 1672885349, 1672991442, 0);
  700. INSERT INTO `erp_order_product` VALUES (58, 32, 'AMK10000004', 10053, 1, 5, 7, '胸坠', 0, 10008, 'AMK_001', 10009, 'AMK管理员', 10009, 'AMK管理员', 10008, 'AMK_001', 1, 0, NULL, 1, 88.00, 138.00, 267.40, 0.00, 30.00, 1, 30, 41.40, 0.00, 0.00, 1, NULL, 0, 1672885349, 1672885349, 0);
  701. INSERT INTO `erp_order_product` VALUES (59, 32, 'AMK10000004', 10053, 1, 5, 7, '胸坠', 0, 10008, 'AMK_001', 10009, 'AMK管理员', 10009, 'AMK管理员', 10008, 'AMK_001', 1, 0, NULL, 1, 88.00, 138.00, 267.40, 0.00, 30.00, 1, 30, 41.40, 0.00, 0.00, 1, NULL, 0, 1672885349, 1672885349, 0);
  702. INSERT INTO `erp_order_product` VALUES (60, 32, 'AMK10000004', 10053, 1, 5, 7, '胸坠', 0, 10008, 'AMK_001', 10009, 'AMK管理员', 10009, 'AMK管理员', 10008, 'AMK_001', 1, 0, NULL, 1, 88.00, 138.00, 267.40, 0.00, 30.00, 1, 30, 41.40, 0.00, 0.00, 1, NULL, 0, 1672885349, 1672885349, 0);
  703. INSERT INTO `erp_order_product` VALUES (61, 33, 'AMK10000005', 10056, 1, 5, 7, '胸坠', 0, 10008, 'AMK_001', 10009, 'AMK管理员', NULL, NULL, NULL, NULL, 1, 1, '/storage/numerology/20230106/3425bf11942816dd81eec48b3331210f.jpg', 1, 88.00, 138.00, 267.40, 0.00, 30.00, 1, 30, 41.40, 0.00, 0.00, 1, NULL, 0, 1672885475, 1672995320, 0);
  704. INSERT INTO `erp_order_product` VALUES (62, 33, 'AMK10000005', 10056, 1, 5, 7, '胸坠', 0, 10008, 'AMK_001', 10009, 'AMK管理员', NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 88.00, 138.00, 267.40, 0.00, 30.00, 1, 30, 41.40, 0.00, 0.00, 1, NULL, 0, 1672885475, 1672885475, 0);
  705. INSERT INTO `erp_order_product` VALUES (63, 33, 'AMK10000005', 10056, 8, 4, 6, '火龙果', 0, 10009, 'AMK管理员', NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, 0, 0.00, 1.88, 2.44, 0.00, 0.00, 0, 30, 0.56, 0.00, 0.00, 1, NULL, 0, 1672885475, 1672885475, 0);
  706. INSERT INTO `erp_order_product` VALUES (64, 33, 'AMK10000005', 10056, 8, 4, 6, '火龙果', 0, 10009, 'AMK管理员', NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, 0, 0.00, 1.88, 2.44, 0.00, 0.00, 0, 30, 0.56, 0.00, 0.00, 1, NULL, 0, 1672885475, 1672885475, 0);
  707. INSERT INTO `erp_order_product` VALUES (65, 33, 'AMK10000005', 10056, 8, 4, 6, '火龙果', 0, 10009, 'AMK管理员', NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, 0, 0.00, 1.88, 2.44, 0.00, 0.00, 0, 30, 0.56, 0.00, 0.00, 1, NULL, 0, 1672885475, 1672885475, 0);
  708. INSERT INTO `erp_order_product` VALUES (66, 33, 'AMK10000005', 10056, 8, 4, 6, '火龙果', 0, 10009, 'AMK管理员', NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, 0, 0.00, 1.88, 2.44, 0.00, 0.00, 0, 30, 0.56, 0.00, 0.00, 1, NULL, 0, 1672885475, 1672885475, 0);
  709. INSERT INTO `erp_order_product` VALUES (67, 34, 'AMK10000006', 10053, 8, 4, 6, '火龙果 ', 0, 10008, 'AMK_001', NULL, NULL, 10007, 'Caviar.', NULL, NULL, 0, 0, NULL, 0, 0.00, 1.88, 2.71, 0.27, 0.00, 0, 30, 0.56, 0.12, 0.00, 1, NULL, 0, 1672985214, 1672985214, 0);
  710. INSERT INTO `erp_order_product` VALUES (68, 34, 'AMK10000006', 10053, 8, 4, 6, '火龙果', 0, 10008, 'AMK_001', NULL, NULL, 10007, 'Caviar.', NULL, NULL, 0, 0, NULL, 0, 0.00, 1.88, 2.71, 0.27, 0.00, 0, 30, 0.56, 0.12, 0.00, 1, NULL, 0, 1672985214, 1672985214, 0);
  711. INSERT INTO `erp_order_product` VALUES (69, 34, 'AMK10000006', 10053, 1, 5, 7, '胸坠', 0, 10008, 'AMK_001', NULL, NULL, 10007, 'Caviar.', NULL, NULL, 1, 1, '/storage/numerology/20230106/ef9eacd6a2fdca18e966751a35f4e7bf.jpg', 1, 88.00, 138.00, 296.90, 29.50, 30.00, 1, 30, 41.40, 13.53, 0.00, 1, NULL, 0, 1672985214, 1672991236, 0);
  712. INSERT INTO `erp_order_product` VALUES (70, 35, 'AMK10000007', 10053, 13, 3, 5, '斑马', 1, 10007, 'Caviar.', NULL, NULL, 10007, 'Caviar.', NULL, NULL, 1, 1, '/storage/numerology/20230106/8195aa9eb68945e56d9637a402c96d19.jpg', 1, 0.00, 9999.99, 11711.03, 711.04, 0.00, 0, 10, 1000.00, 550.00, 0.00, 1, NULL, 1673088280, 1672986161, 1672991206, 1);
  713. INSERT INTO `erp_order_product` VALUES (71, 36, 'AMK10000008', 10053, 3, 2, 7, '小番茄', 0, 10007, 'Caviar.', NULL, NULL, 10008, 'AMK_001', NULL, NULL, 0, 0, NULL, 0, 0.00, 15.00, 19.50, 0.00, 0.00, 0, 30, 4.50, 0.98, 0.00, 1, NULL, 1673088203, 1672987367, 1672987367, 1);
  714. INSERT INTO `erp_order_product` VALUES (72, 37, 'AMK10000009', 10053, 3, 2, 7, '小番茄', 0, 10007, 'Caviar.', NULL, NULL, 10007, 'Caviar.', NULL, NULL, 0, 0, NULL, 0, 0.00, 15.00, 19.50, 0.00, 0.00, 0, 30, 4.50, 0.00, 0.00, 0, NULL, 0, 1672989412, 1672989412, 0);
  715. INSERT INTO `erp_order_product` VALUES (73, 38, 'AMK10000010', 10052, 1, 5, 7, '胸坠', 0, 10007, 'Caviar.', NULL, NULL, 10007, 'Caviar.', NULL, NULL, 1, 0, NULL, 1, 88.00, 138.00, 267.40, 0.00, 30.00, 1, 30, 41.40, 0.00, 0.00, 1, NULL, 1673086778, 1672999996, 1672999996, 1);
  716. INSERT INTO `erp_order_product` VALUES (74, 38, 'AMK10000010', 10052, 8, 4, 6, '火龙果', 0, 10007, 'Caviar.', NULL, NULL, 10007, 'Caviar.', NULL, NULL, 0, 0, NULL, 0, 0.00, 1.88, 2.44, 0.00, 0.00, 0, 30, 0.56, 0.00, 0.00, 1, NULL, 0, 1672999996, 1672999996, 0);
  717. INSERT INTO `erp_order_product` VALUES (75, 38, 'AMK10000010', 10052, 3, 2, 7, '小番茄', 0, 10007, 'Caviar.', NULL, NULL, 10007, 'Caviar.', NULL, NULL, 0, 0, NULL, 0, 0.00, 15.00, 19.50, 0.00, 0.00, 0, 30, 4.50, 0.00, 0.00, 1, NULL, 0, 1672999996, 1672999996, 0);
  718. INSERT INTO `erp_order_product` VALUES (76, 38, 'AMK10000010', 10052, 13, 3, 5, '斑马', 1, 10007, 'Caviar.', NULL, NULL, 10007, 'Caviar.', NULL, NULL, 1, 0, NULL, 1, 0.00, 9999.99, 10999.99, 0.00, 0.00, 0, 10, 1000.00, 0.00, 0.00, 1, NULL, 0, 1672999996, 1672999996, 0);
  719. INSERT INTO `erp_order_product` VALUES (77, 29, 'AMK10000001', 10052, 3, 2, 7, '小番茄', 0, 10007, 'Caviar.', NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, 0, 0.00, 15.00, 19.50, 0.00, 0.00, 0, 30, 4.50, 0.00, 0.00, 1, NULL, 1673074134, 1673074074, 1673074074, 1);
  720. INSERT INTO `erp_order_product` VALUES (78, 29, 'AMK10000001', 10052, 1, 5, 7, '胸坠', 0, 10007, 'Caviar.', NULL, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 88.00, 138.00, 267.40, 0.00, 30.00, 1, 30, 41.40, 0.00, 0.00, 1, NULL, 0, 1673074134, 1673074134, 0);
  721. INSERT INTO `erp_order_product` VALUES (79, 29, 'AMK10000001', 10052, 3, 2, 7, '小番茄', 0, 10007, 'Caviar.', NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, 0, 0.00, 15.00, 19.50, 0.00, 0.00, 0, 30, 4.50, 0.00, 0.00, 1, NULL, 0, 1673074611, 1673074611, 0);
  722. INSERT INTO `erp_order_product` VALUES (80, 29, 'AMK10000001', 10052, 3, 2, 7, '小番茄', 0, 10007, 'Caviar.', NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, 0, 0.00, 15.00, 19.50, 0.00, 0.00, 0, 30, 4.50, 0.00, 0.00, 1, NULL, 0, 1673074611, 1673074611, 0);
  723. INSERT INTO `erp_order_product` VALUES (81, 39, 'AMK10000011', 10058, 13, 3, 5, '斑马', 1, 10007, 'Caviar.', NULL, NULL, 10007, 'Caviar.', NULL, NULL, 1, 0, NULL, 1, 0.00, 9999.99, 10999.99, 0.00, 0.00, 0, 10, 1000.00, 0.00, 0.00, 1, NULL, 1673087487, 1673074779, 1673074779, 1);
  724. INSERT INTO `erp_order_product` VALUES (82, 39, 'AMK10000011', 10058, 13, 3, 5, '斑马', 1, 10007, 'Caviar.', NULL, NULL, 10007, 'Caviar.', NULL, NULL, 1, 0, NULL, 1, 0.00, 9999.99, 10999.99, 0.00, 0.00, 0, 10, 1000.00, 0.00, 0.00, 1, NULL, 0, 1673074779, 1673074779, 0);
  725. INSERT INTO `erp_order_product` VALUES (83, 39, 'AMK10000011', 10058, 3, 2, 7, '小番茄', 0, 10007, 'Caviar.', NULL, NULL, 10007, 'Caviar.', NULL, NULL, 0, 0, NULL, 0, 0.00, 15.00, 19.50, 0.00, 0.00, 0, 30, 4.50, 0.00, 0.00, 1, NULL, 1673087561, 1673074779, 1673074779, 1);
  726. INSERT INTO `erp_order_product` VALUES (84, 39, 'AMK10000011', 10058, 8, 4, 6, '火龙果', 0, 10007, 'Caviar.', NULL, NULL, 10007, 'Caviar.', NULL, NULL, 0, 0, NULL, 0, 0.00, 1.88, 2.44, 0.00, 0.00, 0, 30, 0.56, 0.00, 0.00, 1, NULL, 0, 1673074779, 1673074779, 0);
  727. INSERT INTO `erp_order_product` VALUES (85, 39, 'AMK10000011', 10058, 1, 5, 7, '胸坠', 0, 10007, 'Caviar.', NULL, NULL, 10007, 'Caviar.', NULL, NULL, 1, 0, NULL, 1, 88.00, 138.00, 267.40, 0.00, 30.00, 1, 30, 41.40, 0.00, 0.00, 1, NULL, 0, 1673074779, 1673074779, 0);
  728. INSERT INTO `erp_order_product` VALUES (86, 40, 'AMK10000012', 10052, 1, 5, 7, '胸坠', 0, 10008, 'AMK_001', NULL, NULL, 10008, 'AMK_001', NULL, NULL, 1, 0, NULL, 1, 88.00, 138.00, 267.40, 0.00, 30.00, 1, 30, 41.40, 0.00, 0.00, 1, NULL, 1673084532, 1673075325, 1673075325, 1);
  729. INSERT INTO `erp_order_product` VALUES (87, 40, 'AMK10000012', 10052, 1, 5, 7, '胸坠', 0, 10008, 'AMK_001', NULL, NULL, 10008, 'AMK_001', NULL, NULL, 1, 0, NULL, 1, 88.00, 138.00, 267.40, 0.00, 30.00, 1, 30, 41.40, 0.00, 0.00, 1, NULL, 1673084666, 1673075325, 1673075325, 1);
  730. INSERT INTO `erp_order_product` VALUES (88, 38, 'AMK10000010', 10052, 8, 4, 6, '火龙果', 0, 10007, 'Caviar.', NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, 0, 0.00, 1.88, 2.44, 0.00, 0.00, 0, 30, 0.56, 0.00, 0.00, 1, NULL, 0, 1673086778, 1673086778, 0);
  731. INSERT INTO `erp_order_product` VALUES (89, 39, 'AMK10000011', 10058, 13, 3, 5, '斑马', 1, 10007, 'Caviar.', NULL, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 0.00, 9999.99, 10999.99, 0.00, 0.00, 0, 10, 1000.00, 0.00, 0.00, 1, NULL, 0, 1673087487, 1673087487, 0);
  732. INSERT INTO `erp_order_product` VALUES (90, 39, 'AMK10000011', 10058, 1, 5, 7, '胸坠', 0, 10007, 'Caviar.', NULL, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 88.00, 138.00, 267.40, 0.00, 30.00, 1, 30, 41.40, 0.00, 0.00, 1, NULL, 1673087903, 1673087561, 1673087561, 1);
  733. INSERT INTO `erp_order_product` VALUES (91, 39, 'AMK10000011', 10058, 8, 4, 6, '火龙果', 0, 10007, 'Caviar.', NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, 0, 0.00, 1.88, 2.44, 0.00, 0.00, 0, 30, 0.56, 0.00, 0.00, 1, NULL, 0, 1673087903, 1673087903, 0);
  734. INSERT INTO `erp_order_product` VALUES (92, 36, 'AMK10000008', 10053, 1, 5, 7, '胸坠', 0, 10007, 'Caviar.', NULL, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 88.00, 138.00, 267.40, 0.00, 30.00, 1, 30, 41.40, 0.00, 0.00, 0, NULL, 0, 1673088203, 1673088203, 0);
  735. INSERT INTO `erp_order_product` VALUES (93, 35, 'AMK10000007', 10053, 3, 2, 7, '小番茄', 0, 10007, 'Caviar.', NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, 0, 0.00, 15.00, 19.50, 0.00, 0.00, 0, 30, 4.50, 0.00, 0.00, 1, NULL, 0, 1673088280, 1673088280, 0);
  736. INSERT INTO `erp_order_product` VALUES (94, 41, 'AMK10000013', 10058, 1, 5, 7, '胸坠', 0, 10007, 'Caviar.', NULL, NULL, 10007, 'Caviar.', NULL, NULL, 1, 0, NULL, 1, 88.00, 138.00, 267.40, 0.00, 30.00, 1, 30, 41.40, 0.00, 0.00, 1, NULL, 0, 1673088892, 1673088892, 0);
  737. INSERT INTO `erp_order_product` VALUES (95, 41, 'AMK10000013', 10058, 8, 4, 6, '火龙果', 0, 10007, 'Caviar.', NULL, NULL, 10007, 'Caviar.', NULL, NULL, 0, 0, NULL, 0, 0.00, 1.88, 2.44, 0.00, 0.00, 0, 30, 0.56, 0.00, 0.00, 1, NULL, 0, 1673088892, 1673088892, 0);
  738. INSERT INTO `erp_order_product` VALUES (96, 41, 'AMK10000013', 10058, 13, 3, 5, '斑马', 1, 10007, 'Caviar.', NULL, NULL, 10007, 'Caviar.', NULL, NULL, 1, 0, NULL, 1, 0.00, 9999.99, 10999.99, 0.00, 0.00, 0, 10, 1000.00, 0.00, 0.00, 1, NULL, 0, 1673088892, 1673088892, 0);
  739. INSERT INTO `erp_order_product` VALUES (97, 41, 'AMK10000013', 10058, 3, 2, 7, '小番茄', 0, 10007, 'Caviar.', NULL, NULL, 10007, 'Caviar.', NULL, NULL, 0, 0, NULL, 0, 0.00, 15.00, 19.50, 0.00, 0.00, 0, 30, 4.50, 0.00, 0.00, 1, NULL, 1673088956, 1673088892, 1673088892, 1);
  740. INSERT INTO `erp_order_product` VALUES (98, 41, 'AMK10000013', 10058, 8, 4, 6, '火龙果', 0, 10007, 'Caviar.', NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, 0, 0.00, 1.88, 2.44, 0.00, 0.00, 0, 30, 0.56, 0.00, 0.00, 1, NULL, 0, 1673088956, 1673088956, 0);
  741. -- ----------------------------
  742. -- Table structure for erp_order_product_exchangd
  743. -- ----------------------------
  744. DROP TABLE IF EXISTS `erp_order_product_exchangd`;
  745. CREATE TABLE `erp_order_product_exchangd` (
  746. `id` int(11) NOT NULL AUTO_INCREMENT,
  747. `store_id` int(11) NOT NULL COMMENT '门店Id',
  748. `order_id` int(11) NOT NULL COMMENT '订单ID',
  749. `origin_order_product_ids` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '原来的订单商品ID',
  750. `after_order_product_ids` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '后来的订单商品ID',
  751. `type` tinyint(1) NOT NULL DEFAULT 1 COMMENT '类型 1=退货;2=换货',
  752. `diff_price` float(10, 2) NOT NULL DEFAULT 0.00 COMMENT '差价',
  753. `admin_id` int(10) NOT NULL COMMENT '操作者ID',
  754. `create_time` int(10) NULL DEFAULT NULL COMMENT '创建时间',
  755. `update_time` int(10) NULL DEFAULT NULL COMMENT '更新时间',
  756. `is_delete` tinyint(1) NOT NULL DEFAULT 0 COMMENT '逻辑删除字段',
  757. PRIMARY KEY (`id`) USING BTREE
  758. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '商品退换货记录' ROW_FORMAT = DYNAMIC;
  759. -- ----------------------------
  760. -- Records of erp_order_product_exchangd
  761. -- ----------------------------
  762. -- ----------------------------
  763. -- Table structure for erp_payment_channel
  764. -- ----------------------------
  765. DROP TABLE IF EXISTS `erp_payment_channel`;
  766. CREATE TABLE `erp_payment_channel` (
  767. `id` int(11) NOT NULL AUTO_INCREMENT,
  768. `name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称',
  769. `index` int(10) NOT NULL DEFAULT 0,
  770. `icon` varchar(300) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'icon',
  771. `type` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1=无任何设置;2=御龙币设置;3=信用卡设置',
  772. `is_upload_code` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否需要上传记录付款编号',
  773. `zue_coin_exchange_rate` float(5, 2) NULL DEFAULT NULL COMMENT '兑换比例 不如 1Zue Coin = 2人民币',
  774. `zue_coin_consume_rate` float(5, 2) NULL DEFAULT NULL COMMENT '御龙币单笔订单消费比例 单笔订单消费 1000元 御龙币可抵消 30%',
  775. `create_time` int(10) NULL DEFAULT NULL COMMENT '创建时间',
  776. `update_time` int(10) NULL DEFAULT NULL COMMENT '更新时间',
  777. `is_delete` tinyint(1) NOT NULL DEFAULT 0 COMMENT '逻辑删除字段',
  778. PRIMARY KEY (`id`) USING BTREE
  779. ) ENGINE = InnoDB AUTO_INCREMENT = 14 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '收款渠道' ROW_FORMAT = DYNAMIC;
  780. -- ----------------------------
  781. -- Records of erp_payment_channel
  782. -- ----------------------------
  783. INSERT INTO `erp_payment_channel` VALUES (1, 'Cash', 0, '/storage/icon/1.png', 1, 0, NULL, NULL, 1670572647, 1671783101, 0);
  784. INSERT INTO `erp_payment_channel` VALUES (2, 'NETS', 1, '/storage/icon/2.png', 1, 1, NULL, NULL, 1670572647, 1670572647, 0);
  785. INSERT INTO `erp_payment_channel` VALUES (3, 'Cheque', 2, '/storage/icon/3.png', 1, 1, NULL, NULL, 1670572647, 1670572647, 0);
  786. INSERT INTO `erp_payment_channel` VALUES (4, 'Visa / Master', 3, '/storage/icon/4.png', 3, 1, NULL, NULL, 1670572647, 1671782982, 0);
  787. INSERT INTO `erp_payment_channel` VALUES (5, 'Voucher', 4, '/storage/icon/5.png', 1, 0, NULL, NULL, 1670572647, 1671783165, 0);
  788. INSERT INTO `erp_payment_channel` VALUES (6, 'AMEX', 5, '/storage/icon/6.png', 1, 1, NULL, NULL, 1670572647, 1670572647, 0);
  789. INSERT INTO `erp_payment_channel` VALUES (7, 'DINERS', 6, '/storage/icon/7.png', 3, 1, NULL, NULL, 1670572647, 1672911475, 0);
  790. INSERT INTO `erp_payment_channel` VALUES (8, 'FAVE', 7, '/storage/icon/8.png', 1, 0, NULL, NULL, 1670572647, 1671783188, 0);
  791. INSERT INTO `erp_payment_channel` VALUES (9, 'Paynow', 8, '/storage/icon/9.png', 1, 0, NULL, NULL, 1670572647, 1671783203, 0);
  792. INSERT INTO `erp_payment_channel` VALUES (10, 'Stripe', 9, '/storage/icon/10.png', 1, 0, NULL, NULL, 1670572647, 1671783224, 0);
  793. INSERT INTO `erp_payment_channel` VALUES (11, 'Zue Coin', 10, '/storage/icon/11.png', 2, 1, 2.00, 10.00, 1670572647, 1671783149, 0);
  794. INSERT INTO `erp_payment_channel` VALUES (12, 'WeChat', 11, '/storage/icon/12.png', 1, 0, NULL, NULL, 1670572647, 1671783245, 1);
  795. INSERT INTO `erp_payment_channel` VALUES (13, 'Alipay', 12, '/storage/icon/13.png', 1, 0, NULL, NULL, 1670572647, 1671783236, 1);
  796. -- ----------------------------
  797. -- Table structure for erp_product
  798. -- ----------------------------
  799. DROP TABLE IF EXISTS `erp_product`;
  800. CREATE TABLE `erp_product` (
  801. `id` int(11) NOT NULL AUTO_INCREMENT,
  802. `bar_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '商品条码',
  803. `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商品名称',
  804. `image` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '图片',
  805. `category_id` int(11) NOT NULL COMMENT '商品类别ID',
  806. `company_id` int(11) NULL DEFAULT NULL COMMENT '公司ID',
  807. `is_serve` tinyint(1) NOT NULL DEFAULT 0 COMMENT '商品/服务',
  808. `purchase_price` float(10, 2) NULL DEFAULT 0.00 COMMENT '进价',
  809. `real_price` float(10, 2) NOT NULL DEFAULT 0.00 COMMENT '真实卖价',
  810. `lineate_price` float(10, 2) NOT NULL DEFAULT 0.00 COMMENT '划线价',
  811. `is_upload_numerology` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否上传命理报告',
  812. `is_gather_annuity` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否收取年费',
  813. `annuity` float(10, 2) NOT NULL DEFAULT 0.00 COMMENT '年费价格',
  814. `sales_tax_rate` float(5, 2) NOT NULL DEFAULT 0.00 COMMENT '消费税',
  815. `supplier_id` int(11) NULL DEFAULT NULL COMMENT '供应商ID',
  816. `create_time` int(10) NULL DEFAULT NULL COMMENT '创建时间',
  817. `update_time` int(10) NULL DEFAULT NULL COMMENT '更新时间',
  818. `is_delete` tinyint(1) NOT NULL DEFAULT 0 COMMENT '逻辑删除字段',
  819. PRIMARY KEY (`id`) USING BTREE
  820. ) ENGINE = InnoDB AUTO_INCREMENT = 17 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '商品表' ROW_FORMAT = DYNAMIC;
  821. -- ----------------------------
  822. -- Records of erp_product
  823. -- ----------------------------
  824. INSERT INTO `erp_product` VALUES (1, '10010', '胸坠', '/storage/product/20221212/99e753ccc50771a0b6214ff9bb1f7f4c.jpg', 7, 3, 0, 68.00, 168.00, 1680.00, 1, 1, 88.00, 0.00, NULL, 1670572647, 1672046070, 0);
  825. INSERT INTO `erp_product` VALUES (2, 'BanMaYouZai', '斑马幼崽001', '/storage/product/20221212/59303b361cf7c3e9b8b9fc2feddc5da5.jpg', 4, 1, 0, 10.00, 100.00, 1000.00, 0, 0, 0.00, 0.00, NULL, 1670817701, 1670817701, 0);
  826. INSERT INTO `erp_product` VALUES (3, 'XFQ', '小番茄', '/storage/product/20221212/1433bf125d23a87fef582876243650d2.jpg', 7, 3, 0, 10.00, 15.00, 150.00, 0, 0, 0.00, 0.00, NULL, 1670824713, 1670824713, 0);
  827. INSERT INTO `erp_product` VALUES (4, 'XFQ_01', '小番茄', '/storage/product/20221212/1433bf125d23a87fef582876243650d2.jpg', 7, 1, 0, 10.00, 15.00, 150.00, 0, 0, 0.00, 0.00, NULL, 1670824752, 1670824752, 1);
  828. INSERT INTO `erp_product` VALUES (5, 'FZ_001', '红枣', '/storage/product/20221212/91d84a02ebed9fd7a9812f117645ece3.jpg', 5, 1, 0, 0.80, 15.00, 150.00, 0, 0, 0.00, 0.00, NULL, 1670824844, 1670824844, 0);
  829. INSERT INTO `erp_product` VALUES (8, 'HLG_01', '火龙果', '/storage/product/20221212/bc29bd00a0c3fa7c7fdb23008be9087d.jpg', 6, 1, 0, 1.80, 1.88, 18.80, 0, 0, 0.00, 0.00, NULL, 1670825260, 1670825260, 0);
  830. INSERT INTO `erp_product` VALUES (9, 'CZ_001', '橙子', '/storage/product/20221212/479261101c03b33f53c15c48f0bee5d2.jpg', 8, 1, 0, 0.50, 0.88, 8.80, 0, 0, 0.00, 0.00, NULL, 1670825321, 1670825321, 0);
  831. INSERT INTO `erp_product` VALUES (10, 'DLJ_001', '剁辣椒', '/storage/product/20221212/efa70d9df3e76ca6d51ceb49a163dc72.jpg', 2, 1, 0, 0.55, 88.00, 880.00, 0, 1, 688.00, 0.00, NULL, 1670825361, 1670825361, 0);
  832. INSERT INTO `erp_product` VALUES (11, 'BM001', '斑马', '/storage/product/20221212/59303b361cf7c3e9b8b9fc2feddc5da5.jpg', 6, 1, 0, 18888.00, 68888.00, 688880.00, 1, 0, 0.00, 0.00, NULL, 1670825411, 1670825411, 0);
  833. INSERT INTO `erp_product` VALUES (12, 'JL001', '鸡柳', '/storage/product/20221212/4659ba3b989a96413ae083d2c89260d1.jpg', 8, 1, 0, 5.88, 6.68, 66.80, 0, 0, 0.00, 0.00, NULL, 1670825467, 1670825467, 0);
  834. INSERT INTO `erp_product` VALUES (13, 'banma001', '斑马', '/storage/product/20221212/59303b361cf7c3e9b8b9fc2feddc5da5.jpg', 5, 3, 1, 8888.00, 9999.99, 99990.00, 1, 1, 0.00, 10.00, NULL, 1670825538, 1672123755, 0);
  835. INSERT INTO `erp_product` VALUES (14, 'HongZhao001', '小红枣_', '/storage/product/20221212/e216cdff1173320f982eaf5aca33969a.jpg', 3, 1, 0, 1.00, 1.00, 10.00, 0, 0, 0.00, 0.00, NULL, 1670825755, 1670825755, 1);
  836. INSERT INTO `erp_product` VALUES (15, 'Test001', 'Caviar', '/storage/product/20221212/eb068fd6f446c5a2b2c8a6c584b266cc.jpg', 2, 3, 0, 1.00, 2.00, 20.00, 1, 1, 0.00, 0.00, NULL, 1670828169, 1672019917, 0);
  837. INSERT INTO `erp_product` VALUES (16, 'BG001', 'Bg', '/storage/product/20221216/0466840eebd4a6d9b581f359960ff721.jpg', 3, 4, 0, 0.99, 1.99, 2.99, 1, 1, 1999.00, 1.00, NULL, 1671171837, 1671973545, 0);
  838. -- ----------------------------
  839. -- Table structure for erp_product_category
  840. -- ----------------------------
  841. DROP TABLE IF EXISTS `erp_product_category`;
  842. CREATE TABLE `erp_product_category` (
  843. `id` int(11) NOT NULL AUTO_INCREMENT,
  844. `pid` int(10) NOT NULL DEFAULT 0,
  845. `name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '类别昵称',
  846. `create_time` int(10) NULL DEFAULT NULL COMMENT '创建时间',
  847. `update_time` int(10) NULL DEFAULT NULL COMMENT '更新时间',
  848. `is_delete` tinyint(1) NOT NULL DEFAULT 0 COMMENT '逻辑删除字段',
  849. PRIMARY KEY (`id`) USING BTREE
  850. ) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '商品分类表' ROW_FORMAT = DYNAMIC;
  851. -- ----------------------------
  852. -- Records of erp_product_category
  853. -- ----------------------------
  854. INSERT INTO `erp_product_category` VALUES (2, 0, '佛基', 1670394265, 1670394265, 0);
  855. INSERT INTO `erp_product_category` VALUES (3, 0, '生基', 1670394265, 1670394265, 0);
  856. INSERT INTO `erp_product_category` VALUES (4, 0, '斗', 1670394265, 1670394265, 0);
  857. INSERT INTO `erp_product_category` VALUES (5, 0, '建庙', 1670394265, 1670394265, 0);
  858. INSERT INTO `erp_product_category` VALUES (6, 0, '阵法', 1670394265, 1670394265, 0);
  859. INSERT INTO `erp_product_category` VALUES (7, 0, '胸坠', 1670394265, 1670394265, 0);
  860. INSERT INTO `erp_product_category` VALUES (8, 0, '紫薇斗数', 1670394265, 1670394265, 0);
  861. INSERT INTO `erp_product_category` VALUES (9, 0, '风水服务', 1672229549, 1672229549, 0);
  862. -- ----------------------------
  863. -- Table structure for erp_store
  864. -- ----------------------------
  865. DROP TABLE IF EXISTS `erp_store`;
  866. CREATE TABLE `erp_store` (
  867. `id` int(11) NOT NULL AUTO_INCREMENT,
  868. `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '店名',
  869. `abbr` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '简称',
  870. `address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '位置',
  871. `create_time` int(10) NULL DEFAULT NULL COMMENT '创建时间',
  872. `update_time` int(10) NULL DEFAULT NULL COMMENT '更新时间',
  873. `is_delete` tinyint(1) NOT NULL DEFAULT 0 COMMENT '逻辑删除字段',
  874. PRIMARY KEY (`id`) USING BTREE
  875. ) ENGINE = InnoDB AUTO_INCREMENT = 10006 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '门店表' ROW_FORMAT = DYNAMIC;
  876. -- ----------------------------
  877. -- Records of erp_store
  878. -- ----------------------------
  879. INSERT INTO `erp_store` VALUES (10003, 'AMK Hub Branch', 'AMK', '湖南省长沙市岳麓区西湖公园', 1670899223, 1671637024, 0);
  880. INSERT INTO `erp_store` VALUES (10004, 'JEM Hub Branch', 'JEM', '印度尼西亚', NULL, NULL, 0);
  881. INSERT INTO `erp_store` VALUES (10005, 'test', 'test', 'wewewe', 1672021600, 1672021600, 0);
  882. -- ----------------------------
  883. -- Table structure for erp_store_product
  884. -- ----------------------------
  885. DROP TABLE IF EXISTS `erp_store_product`;
  886. CREATE TABLE `erp_store_product` (
  887. `id` int(11) NOT NULL AUTO_INCREMENT,
  888. `store_id` int(10) NOT NULL COMMENT '门店ID',
  889. `product_id` int(10) NOT NULL COMMENT '商品ID',
  890. `product_bar_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商品bar_code',
  891. `product_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商品名称',
  892. `now_stock` int(10) NOT NULL DEFAULT 0 COMMENT '门店当前库存',
  893. `sale_stock` int(10) NOT NULL DEFAULT 0 COMMENT '当前卖出多少',
  894. `create_time` int(10) NULL DEFAULT NULL COMMENT '创建时间',
  895. `update_time` int(10) NULL DEFAULT NULL COMMENT '更新时间',
  896. `is_delete` tinyint(1) NOT NULL DEFAULT 0 COMMENT '逻辑删除字段',
  897. PRIMARY KEY (`id`) USING BTREE
  898. ) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '商店商品库存表' ROW_FORMAT = DYNAMIC;
  899. -- ----------------------------
  900. -- Records of erp_store_product
  901. -- ----------------------------
  902. INSERT INTO `erp_store_product` VALUES (2, 10003, 3, 'XFQ', '小番茄', 6, 4, 1670844652, 1670844652, 0);
  903. INSERT INTO `erp_store_product` VALUES (3, 10003, 13, 'banma001', '斑马', 91, 9, 1671154866, 1671154866, 0);
  904. INSERT INTO `erp_store_product` VALUES (4, 10003, 8, 'HLG_01', '火龙果', 1991, 8, 1671262870, 1671262870, 0);
  905. INSERT INTO `erp_store_product` VALUES (5, 10003, 1, '10010', '胸坠', 989, 11, 1672046107, 1672046107, 0);
  906. INSERT INTO `erp_store_product` VALUES (6, 10004, 2, 'BanMaYouZai', '斑马幼崽001', 21, -1, 1672713467, 1672713476, 0);
  907. -- ----------------------------
  908. -- Table structure for erp_store_user_relation
  909. -- ----------------------------
  910. DROP TABLE IF EXISTS `erp_store_user_relation`;
  911. CREATE TABLE `erp_store_user_relation` (
  912. `id` int(11) NOT NULL AUTO_INCREMENT,
  913. `store_id` int(10) NOT NULL COMMENT '门店ID',
  914. `user_id` int(10) NOT NULL COMMENT '员工ID',
  915. `store_role` tinyint(4) NOT NULL DEFAULT 1 COMMENT '门店角色:促销员=1,顾问=2,主管=3,店长=4',
  916. `create_time` int(10) NULL DEFAULT NULL COMMENT '创建时间',
  917. `update_time` int(10) NULL DEFAULT NULL COMMENT '更新时间',
  918. `is_delete` tinyint(1) NOT NULL DEFAULT 0 COMMENT '逻辑删除字段',
  919. PRIMARY KEY (`id`) USING BTREE
  920. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '门店与店员的关系表' ROW_FORMAT = DYNAMIC;
  921. -- ----------------------------
  922. -- Records of erp_store_user_relation
  923. -- ----------------------------
  924. -- ----------------------------
  925. -- Table structure for erp_user
  926. -- ----------------------------
  927. DROP TABLE IF EXISTS `erp_user`;
  928. CREATE TABLE `erp_user` (
  929. `id` int(11) NOT NULL AUTO_INCREMENT,
  930. `username` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
  931. `mobile` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '手机号码',
  932. `password` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '密码',
  933. `token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'token',
  934. `store_id` int(10) NOT NULL COMMENT '门店ID',
  935. `store_abbr` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '门店简称',
  936. `rule` tinyint(2) NOT NULL DEFAULT 1 COMMENT '1=促销员,2=顾问,3=顾问主管,4=店长',
  937. `create_time` int(10) NULL DEFAULT NULL COMMENT '创建时间',
  938. `update_time` int(10) NULL DEFAULT NULL COMMENT '更新时间',
  939. `is_delete` tinyint(1) NOT NULL DEFAULT 0 COMMENT '逻辑删除字段',
  940. PRIMARY KEY (`id`) USING BTREE
  941. ) ENGINE = InnoDB AUTO_INCREMENT = 100003 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户表' ROW_FORMAT = DYNAMIC;
  942. -- ----------------------------
  943. -- Records of erp_user
  944. -- ----------------------------
  945. INSERT INTO `erp_user` VALUES (100000, 'Caviar.', '15574920253', '', '', 10000, 'FSC', 1, 1670394265, 1670394265, 0);
  946. INSERT INTO `erp_user` VALUES (100001, 'Json.', '15574992125', '', '', 10001, 'FJHS', 1, 1670394265, 1670394265, 0);
  947. INSERT INTO `erp_user` VALUES (100002, 'AoLiAo.', '15574920251', '14e1b600b1fd579f47433b88e8d85291', NULL, 10001, 'QZFD', 4, 1670915647, 1670916495, 0);
  948. -- ----------------------------
  949. -- Table structure for erp_zue_coin_record
  950. -- ----------------------------
  951. DROP TABLE IF EXISTS `erp_zue_coin_record`;
  952. CREATE TABLE `erp_zue_coin_record` (
  953. `id` int(11) NOT NULL AUTO_INCREMENT,
  954. `zue_coin_id` int(10) NOT NULL COMMENT '御龙币劵ID',
  955. `order_id` int(11) NOT NULL DEFAULT -1 COMMENT 'order_id',
  956. `origin` int(11) NOT NULL DEFAULT 0 COMMENT '原来的',
  957. `change` int(11) NOT NULL DEFAULT 0 COMMENT '更改的',
  958. `after` int(10) NOT NULL DEFAULT 0 COMMENT '改变后的',
  959. `reason` tinyint(4) NOT NULL DEFAULT 1 COMMENT '更改的原因 1=购买商品 2=前台添加,3=商品退换',
  960. `delete_time` int(10) NULL DEFAULT NULL COMMENT '逻辑删除字段',
  961. `create_time` int(10) NULL DEFAULT NULL COMMENT '创建时间',
  962. `update_time` int(10) NULL DEFAULT NULL COMMENT '更新时间',
  963. `is_delete` tinyint(1) NOT NULL DEFAULT 0 COMMENT '逻辑删除字段',
  964. PRIMARY KEY (`id`) USING BTREE
  965. ) ENGINE = InnoDB AUTO_INCREMENT = 51 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统设置表' ROW_FORMAT = DYNAMIC;
  966. -- ----------------------------
  967. -- Records of erp_zue_coin_record
  968. -- ----------------------------
  969. INSERT INTO `erp_zue_coin_record` VALUES (1, 1, 29, 10000, 100, 9900, 1, NULL, 1671785146, 1671785146, 0);
  970. INSERT INTO `erp_zue_coin_record` VALUES (2, 1, 29, 9900, 12, 9888, 1, NULL, 1671785146, 1671785146, 0);
  971. INSERT INTO `erp_zue_coin_record` VALUES (3, 1, 29, 9888, 800, 9088, 1, NULL, 1671785146, 1671785146, 0);
  972. INSERT INTO `erp_zue_coin_record` VALUES (4, 1, 29, 9088, 150, 8938, 1, NULL, 1671785146, 1671785146, 0);
  973. INSERT INTO `erp_zue_coin_record` VALUES (5, 1, 29, 8938, 50, 8888, 1, NULL, 1671785146, 1671785146, 0);
  974. INSERT INTO `erp_zue_coin_record` VALUES (6, 3, 29, 0, 1, 1, 2, NULL, 1672056110, 1672056110, 0);
  975. INSERT INTO `erp_zue_coin_record` VALUES (10, 1, 29, 8888, 1, 8887, 1, NULL, 1672310825, 1672310825, 0);
  976. INSERT INTO `erp_zue_coin_record` VALUES (11, 1, 29, 8887, 562, 8325, 1, NULL, 1672310878, 1672310878, 0);
  977. INSERT INTO `erp_zue_coin_record` VALUES (12, 1, 29, 8325, 563, 7761, 1, NULL, 1672381197, 1672381197, 0);
  978. INSERT INTO `erp_zue_coin_record` VALUES (13, 1, 29, 7761, 578, 7183, 1, NULL, 1672383188, 1672383188, 0);
  979. INSERT INTO `erp_zue_coin_record` VALUES (14, 1, 29, 7183, 1, 7182, 1, NULL, 1672384890, 1672384890, 0);
  980. INSERT INTO `erp_zue_coin_record` VALUES (15, 1, 29, 7182, 1, 7181, 1, NULL, 1672384914, 1672384914, 0);
  981. INSERT INTO `erp_zue_coin_record` VALUES (16, 1, 29, 7181, 1, 7180, 1, NULL, 1672384941, 1672384941, 0);
  982. INSERT INTO `erp_zue_coin_record` VALUES (17, 1, 29, 7180, 276, 6904, 1, NULL, 1672385132, 1672385132, 0);
  983. INSERT INTO `erp_zue_coin_record` VALUES (18, 1, 29, 6904, 3, 6901, 1, NULL, 1672389780, 1672389780, 0);
  984. INSERT INTO `erp_zue_coin_record` VALUES (21, 1, 29, 6901, 275, 7176, 3, NULL, 1672734839, 1672734839, 0);
  985. INSERT INTO `erp_zue_coin_record` VALUES (22, 1, 29, 7176, 275, 7451, 3, NULL, 1672735097, 1672735097, 0);
  986. INSERT INTO `erp_zue_coin_record` VALUES (40, 1, 29, 7451, 7, 7458, 3, NULL, 1672740615, 1672740615, 0);
  987. INSERT INTO `erp_zue_coin_record` VALUES (41, 4, 34, 10000, -1, 9999, 1, NULL, 1672985692, 1672985692, 0);
  988. INSERT INTO `erp_zue_coin_record` VALUES (42, 4, 34, 9999, -1, 9998, 1, NULL, 1672985705, 1672985705, 0);
  989. INSERT INTO `erp_zue_coin_record` VALUES (43, 4, 34, 9998, -10, 9988, 1, NULL, 1672985738, 1672985738, 0);
  990. INSERT INTO `erp_zue_coin_record` VALUES (44, 4, 34, 9988, -1, 9988, 1, NULL, 1672985818, 1672985818, 0);
  991. INSERT INTO `erp_zue_coin_record` VALUES (45, 4, 34, 9988, -1, 9987, 1, NULL, 1672985827, 1672985827, 0);
  992. INSERT INTO `erp_zue_coin_record` VALUES (46, 4, 34, 9987, 0, 9986, 1, NULL, 1672986045, 1672986045, 0);
  993. INSERT INTO `erp_zue_coin_record` VALUES (47, 4, 35, 9986, -550, 9436, 1, NULL, 1672986194, 1672986194, 0);
  994. INSERT INTO `erp_zue_coin_record` VALUES (48, 4, 36, 9436, -1, 9435, 1, NULL, 1672987404, 1672987404, 0);
  995. INSERT INTO `erp_zue_coin_record` VALUES (49, 4, 36, 9435, 1, 9436, 3, NULL, 1673088203, 1673088203, 0);
  996. INSERT INTO `erp_zue_coin_record` VALUES (50, 4, 35, 9436, 550, 9986, 3, NULL, 1673088280, 1673088280, 0);
  997. SET FOREIGN_KEY_CHECKS = 1;