第一次上传
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
USE youlai_admin;
|
||||
|
||||
-- 分销配置演示数据
|
||||
-- 说明:
|
||||
-- 1. 仅当当前不存在启用中的分销配置时插入。
|
||||
-- 2. 佣金比例示例:一级 10%,二级 3%。
|
||||
|
||||
INSERT INTO `xxk_distribution_config`
|
||||
(`distribution_enabled`, `first_level_rate`, `second_level_rate`, `withdraw_threshold`, `withdraw_fee_rate`, `settle_rule`, `status`, `remark`, `create_by`, `create_time`, `update_by`, `update_time`)
|
||||
SELECT 1, 0.1000, 0.0300, 0.00, 0.0000, 'OPEN_SUCCESS_AMOUNT', 1, '代理平台演示分销配置', 1, now(), 1, now()
|
||||
FROM DUAL
|
||||
WHERE NOT EXISTS (
|
||||
SELECT 1
|
||||
FROM `xxk_distribution_config`
|
||||
WHERE `distribution_enabled` = 1
|
||||
AND `status` = 1
|
||||
);
|
||||
Reference in New Issue
Block a user