diff --git a/yudao-server/src/main/resources/db/migration/V5.0.6__insert_order_enum_to_dict.sql b/yudao-server/src/main/resources/db/migration/V5.0.6__insert_order_enum_to_dict.sql new file mode 100644 index 0000000000..174342d171 --- /dev/null +++ b/yudao-server/src/main/resources/db/migration/V5.0.6__insert_order_enum_to_dict.sql @@ -0,0 +1,69 @@ +-- 创建字典类型 +INSERT INTO `system_dict_type` (`name`, `type`, `status`, `remark`, `creator`, `updater`, `deleted`) +VALUES ('订单销售渠道', 'haoka_order_channel', 0, '', '1', '1', b'0'); + +-- 插入字典数据 +INSERT INTO `system_dict_data` (`sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `updater`, `deleted`) +VALUES + (1, '天猫', '0', 'haoka_order_channel', 0, '', '', NULL, '1', '1', b'0'), + (2, '快手', '1', 'haoka_order_channel', 0, '', '', NULL, '1', '1', b'0'), + (3, '抖音', '2', 'haoka_order_channel', 0, '', '', NULL, '1', '1', b'0'), + (4, '拼多多', '3', 'haoka_order_channel', 0, '', '', NULL, '1', '1', b'0'), + (4, '京东', '4', 'haoka_order_channel', 0, '', '', NULL, '1', '1', b'0'); + + + +-- 创建字典类型 +INSERT INTO `system_dict_type` (`name`, `type`, `status`, `remark`, `creator`, `updater`, `deleted`) +VALUES ('订单状态', 'haoka_order_status', 0, '', '1', '1', b'0'); + +-- 插入字典数据 +INSERT INTO `system_dict_data` (`sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `updater`, `deleted`) +VALUES + (1, '订单未就绪', '-100', 'haoka_order_status', 0, '', '', NULL, '1', '1', b'0'), + (2, '订单已就绪', '100', 'haoka_order_status', 0, '', '', NULL, '1', '1', b'0'), + (3, '待解密', '101', 'haoka_order_status', 0, '', '', NULL, '1', '1', b'0'), + (4, '刷单拦截', '110', 'haoka_order_status', 0, '', '', NULL, '1', '1', b'0'), + (5, '初步审核', '120', 'haoka_order_status', 0, '', '', NULL, '1', '1', b'0'), + (6, '订单欠费', '122', 'haoka_order_status', 0, '', '', NULL, '1', '1', b'0'), + (7, '敏感地区待审核', '125', 'haoka_order_status', 0, '', '', NULL, '1', '1', b'0'), + (8, '待完善证件信息', '150', 'haoka_order_status', 0, '', '', NULL, '1', '1', b'0'), + (9, '照片待审核', '200', 'haoka_order_status', 0, '', '', NULL, '1', '1', b'0'), + (10, '待开卡', '450', 'haoka_order_status', 0, '', '', NULL, '1', '1', b'0'), + (11, '已领取', '460', 'haoka_order_status', 0, '', '', NULL, '1', '1', b'0'), + (12, '开卡中', '470', 'haoka_order_status', 0, '', '', NULL, '1', '1', b'0'), + (13, '待发货', '500', 'haoka_order_status', 0, '', '', NULL, '1', '1', b'0'), + (14, '已发货', '550', 'haoka_order_status', 0, '', '', NULL, '1', '1', b'0'), + (15, '已退货', '-700', 'haoka_order_status', 0, '', '', NULL, '1', '1', b'0'), + (16, '发货后失败', '-560', 'haoka_order_status', 0, '', '', NULL, '1', '1', b'0'), + (17, '初审失败', '-451', 'haoka_order_status', 0, '', '', NULL, '1', '1', b'0'), + (18, '开卡失败', '-460', 'haoka_order_status', 0, '', '', NULL, '1', '1', b'0'), + (19, '证件不合格待重传', '-200', 'haoka_order_status', 0, '', '', NULL, '1', '1', b'0'), + (20, '订单终止', '0', 'haoka_order_status', 0, '', '', NULL, '1', '1', b'0'); + + + +-- 创建字典类型 +INSERT INTO `system_dict_type` (`name`, `type`, `status`, `remark`, `creator`, `updater`, `deleted`) +VALUES ('激活状态', 'haoka_order_active_status', 0, '', '1', '1', b'0'); + +-- 插入字典数据 +INSERT INTO `system_dict_data` (`sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `updater`, `deleted`) +VALUES + (1, '无', '0', 'haoka_order_active_status', 0, '', '', NULL, '1', '1', b'0'), + (2, '已激活', '100', 'haoka_order_active_status', 0, '', '', NULL, '1', '1', b'0'), + (3, '激活且充值', '200', 'haoka_order_active_status', 0, '', '', NULL, '1', '1', b'0'); + + +-- 创建字典类型 +INSERT INTO `system_dict_type` (`name`, `type`, `status`, `remark`, `creator`, `updater`, `deleted`) +VALUES ('交易状态', 'haoka_order_refund_status', 0, '', '1', '1', b'0'); + +-- 插入字典数据 +INSERT INTO `system_dict_data` (`sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `updater`, `deleted`) +VALUES + (1, '正常', '100', 'haoka_order_refund_status', 0, '', '', NULL, '1', '1', b'0'), + (2, '退款中', '200', 'haoka_order_refund_status', 0, '', '', NULL, '1', '1', b'0'), + (3, '退款成功', '300', 'haoka_order_refund_status', 0, '', '', NULL, '1', '1', b'0'), + (4, '已支付', '800', 'haoka_order_refund_status', 0, '', '', NULL, '1', '1', b'0'), + (5, '待支付', '900', 'haoka_order_refund_status', 0, '', '', NULL, '1', '1', b'0'); \ No newline at end of file