将积分流水中sourceType改成varchar(256), 新建线下业务模块枚举

This commit is contained in:
2026-02-14 13:15:20 +08:00
parent a123ea05e8
commit d82d91aec5
26 changed files with 270 additions and 433 deletions

View File

@@ -119,7 +119,7 @@ create table benefit_point_log
amount decimal(14, 2) default 0,
last_amount decimal(14, 2) default 0, -- 上一笔金额
fee decimal(14, 2) default 0,
source_type int4, -- 来源类型 0-福利包产出 1-福利包兑换 2-用户直推 3-otc交易
source_type varchar(256), -- 来源类型 0-福利包产出 1-福利包兑换 2-用户直推 3-otc交易
source_id int8,
source_detail text,
type int4 default 1,
@@ -143,7 +143,7 @@ comment on column benefit_point_log.user_id is '用户id';
comment on column benefit_point_log.amount is '金额';
comment on column benefit_point_log.last_amount is '上一笔金额';
comment on column benefit_point_log.fee is '手续费';
comment on column benefit_point_log.source_type is '来源类型 0-福利包产出 1-福利包兑换 2-用户直推 3-otc交易';
comment on column benefit_point_log.source_type is '来源类型';
comment on column benefit_point_log.source_id is '来源id';
comment on column benefit_point_log.source_detail is '来源详情';
comment on column benefit_point_log.type is '消费类型 1-收入 2-支出';
@@ -200,7 +200,7 @@ create table cash_coupon_log
user_id int8,
amount decimal(14, 2) default 0,
last_amount decimal(14, 2) default 0, -- 上一笔金额
source_type int4, -- 来源类型 0-商城抽奖 1-福利包兑换
source_type varchar(256), -- 来源类型
source_id int8,
source_detail text,
type int4 default 1,
@@ -224,7 +224,7 @@ comment on column cash_coupon_log.id is '主键';
comment on column cash_coupon_log.user_id is '用户id';
comment on column cash_coupon_log.amount is '金额';
comment on column cash_coupon_log.last_amount is '上一笔金额';
comment on column cash_coupon_log.source_type is '来源类型 0-商城抽奖 1-福利包兑换';
comment on column cash_coupon_log.source_type is '来源类型';
comment on column cash_coupon_log.source_id is '来源id';
comment on column cash_coupon_log.source_detail is '来源详情';
comment on column cash_coupon_log.type is '消费类型 1-收入 2-支出';
@@ -281,7 +281,7 @@ create table user_point_log
user_id int8,
amount decimal(14, 2) default 0,
last_amount decimal(14, 2) default 0, -- 上一笔金额
source_type int4, -- 来源类型 0-商城订单 1-商城抽奖
source_type varchar(256), -- 来源类型
source_id int8,
source_detail text,
type int4 default 1,
@@ -305,7 +305,7 @@ comment on column user_point_log.id is '主键';
comment on column user_point_log.user_id is '用户id';
comment on column user_point_log.amount is '金额';
comment on column user_point_log.last_amount is '上一笔金额';
comment on column user_point_log.source_type is '0-商城订单 1-商城抽奖';
comment on column user_point_log.source_type is '来源类型';
comment on column user_point_log.source_id is '来源id';
comment on column user_point_log.source_detail is '来源详情';
comment on column user_point_log.type is '消费类型 1-收入 2-支出';
@@ -323,8 +323,84 @@ comment on column user_point_log.is_deleted is '是否已删除';
alter table user_point_log
owner to yicha1lu;
DROP TABLE IF EXISTS user_commission;
create table user_commission
(
id int8 not null primary key,
amount decimal(14, 2) default 0,
version int4 default 1,
create_user int8,
create_dept int8,
create_time timestamp(6),
update_user int8,
update_time timestamp(6),
status int4 default 1,
is_deleted int4 default 0
);
comment on table user_commission is '用户佣金表';
comment on column user_commission.id is '主键';
comment on column user_commission.amount is '佣金金额';
comment on column user_commission.version is '版本号';
comment on column user_commission.create_user is '创建人';
comment on column user_commission.create_dept is '创建部门';
comment on column user_commission.create_time is '创建时间';
comment on column user_commission.update_user is '修改人';
comment on column user_commission.update_time is '修改时间';
comment on column user_commission.status is '状态';
comment on column user_commission.is_deleted is '是否已删除';
alter table user_commission
owner to yicha1lu;
DROP TABLE IF EXISTS user_commission_log;
create table user_commission_log
(
id int8 not null primary key,
user_id int8,
amount decimal(14, 2) default 0,
last_amount decimal(14, 2) default 0, -- 上一笔金额
source_type varchar(256), -- 来源类型
source_id int8,
source_detail text,
type int4 default 1,
is_complete int4 default 0, -- 0-未完成 1-已完成
statistical_date timestamp(6),
remark text,
create_user int8,
create_dept int8,
create_time timestamp(6),
update_user int8,
update_time timestamp(6),
status int4 default 1,
is_deleted int4 default 0
);
comment on table user_commission_log is '用户佣金流水表';
comment on column user_commission_log.id is '主键';
comment on column user_commission_log.user_id is '用户id';
comment on column user_commission_log.amount is '金额';
comment on column user_commission_log.last_amount is '上一笔金额';
comment on column user_commission_log.source_type is '来源类型';
comment on column user_commission_log.source_id is '来源id';
comment on column user_commission_log.source_detail is '来源详情';
comment on column user_commission_log.type is '消费类型 1-收入 2-支出';
comment on column user_commission_log.statistical_date is '统计时间';
comment on column user_commission_log.is_complete is '是否完成 0-未完成 1-已完成';
comment on column user_commission_log.remark is '备注';
comment on column user_commission_log.create_user is '创建人';
comment on column user_commission_log.create_dept is '创建部门';
comment on column user_commission_log.create_time is '创建时间';
comment on column user_commission_log.update_user is '修改人';
comment on column user_commission_log.update_time is '修改时间';
comment on column user_commission_log.status is '状态';
comment on column user_commission_log.is_deleted is '是否已删除';
create index idx_ucl_uid
on user_commission_log (is_complete, user_id, type, statistical_date, create_time DESC);
alter table user_commission_log
owner to yicha1lu;
-- 佣金账户表
DROP TABLE IF EXISTS market_commission_account;
@@ -390,7 +466,7 @@ create table market_commission_goods_cost_log
user_id int8, -- 用户id
amount decimal(14, 2) default 0, -- 金额
last_amount decimal(14, 2) default 0, -- 上一笔金额
source_type int4, -- 来源类型 0-商城订单
source_type varchar(256), -- 来源类型
source_id int8, -- 来源id
source_detail text, -- 来源详情
type int4 default 1, -- 类型 1-收入 2-支出
@@ -417,7 +493,7 @@ comment on column market_commission_goods_cost_log.account_id is '账户id';
comment on column market_commission_goods_cost_log.user_id is '用户id';
comment on column market_commission_goods_cost_log.amount is '金额';
comment on column market_commission_goods_cost_log.last_amount is '上笔金额';
comment on column market_commission_goods_cost_log.source_type is '来源模块 0-商城订单';
comment on column market_commission_goods_cost_log.source_type is '来源类型';
comment on column market_commission_goods_cost_log.source_id is '来源id';
comment on column market_commission_goods_cost_log.source_detail is '来源详情';
comment on column market_commission_goods_cost_log.type is '类型 1-收入 2-支出';
@@ -444,7 +520,7 @@ create table market_commission_user_point_log
user_id int8, -- 用户id
amount decimal(14, 2) default 0, -- 变动金额
last_amount decimal(14, 2) default 0, -- 上一笔金额
source_type int4, -- 来源类型 0-商城订单 1-发放积分
source_type varchar(256), -- 来源类型
source_id int8, -- 来源id
source_detail text, -- 来源详情
type int4 default 1, -- 类型 1-收入 2-支出
@@ -472,7 +548,7 @@ comment on column market_commission_user_point_log.account_id is '账户id';
comment on column market_commission_user_point_log.user_id is '用户id';
comment on column market_commission_user_point_log.amount is '变动金额';
comment on column market_commission_user_point_log.last_amount is '上笔金额';
comment on column market_commission_user_point_log.source_type is '来源类型 0-商城订单 1-发放积分';
comment on column market_commission_user_point_log.source_type is '来源类型';
comment on column market_commission_user_point_log.source_id is '来源id';
comment on column market_commission_user_point_log.source_detail is '来源详情';
comment on column market_commission_user_point_log.type is '类型 1-收入 2-支出';
@@ -500,7 +576,7 @@ create table market_commission_direct_push_log
user_id int8, -- 用户id
amount decimal(14, 2) default 0, -- 变动金额
last_amount decimal(14, 2) default 0, -- 上一笔金额
source_type int4, -- 来源类型 0-商城订单 1-发放直推佣金
source_type varchar(256), -- 来源类型
source_id int8, -- 来源id
source_detail text, -- 来源详情
type int4 default 1, -- 类型 1-收入 2-支出
@@ -528,7 +604,7 @@ comment on column market_commission_direct_push_log.account_id is '账户id';
comment on column market_commission_direct_push_log.user_id is '用户id';
comment on column market_commission_direct_push_log.amount is '变动金额';
comment on column market_commission_direct_push_log.last_amount is '上笔金额';
comment on column market_commission_direct_push_log.source_type is '来源类型 0-商城订单 1-发放直推佣金';
comment on column market_commission_direct_push_log.source_type is '来源类型';
comment on column market_commission_direct_push_log.source_id is '来源id';
comment on column market_commission_direct_push_log.source_detail is '来源详情';
comment on column market_commission_direct_push_log.type is '类型 1-收入 2-支出';
@@ -557,7 +633,7 @@ create table market_commission_operation_log
last_amount decimal(14, 2) default 0, -- 上一笔金额
cut_amount decimal(14, 2) default 0, -- 随机立减金额
cut_detail text, -- 随机立减说明
source_type int4, -- 来源类型 0-商城订单 1-发放运营佣金
source_type varchar(256), -- 来源类型
source_id int8, -- 来源id
source_detail text, -- 来源详情
type int4 default 1, -- 类型 1-收入 2-支出
@@ -583,7 +659,7 @@ comment on column market_commission_operation_log.amount is '变动金额';
comment on column market_commission_operation_log.last_amount is '上笔金额';
comment on column market_commission_operation_log.cut_amount is '随机立减金额';
comment on column market_commission_operation_log.cut_detail is '随机立减说明';
comment on column market_commission_operation_log.source_type is '来源类型 0-商城订单 1-发放运营佣金';
comment on column market_commission_operation_log.source_type is '来源类型';
comment on column market_commission_operation_log.source_id is '来源id';
comment on column market_commission_operation_log.source_detail is '来源详情';
comment on column market_commission_operation_log.type is '类型 1-收入 2-支出';
@@ -609,7 +685,7 @@ create table market_commission_advertising_log
account_id int8, -- 佣金账户id
amount decimal(14, 2) default 0, -- 变动金额
last_amount decimal(14, 2) default 0, -- 上一笔金额
source_type int4, -- 来源类型 0-商城订单 1-发放广告佣金
source_type varchar(256), -- 来源类型
source_id int8, -- 来源id
source_detail text, -- 来源详情
type int4 default 1, -- 类型 1-收入 2-支出
@@ -660,7 +736,7 @@ create table market_commission_service_provider_log
user_id int8, -- 用户id
amount decimal(14, 2) default 0, -- 变动金额
last_amount decimal(14, 2) default 0, -- 上一笔金额
source_type int4, -- 来源类型 0-商城订单 1-发放服务商佣金
source_type varchar(256), -- 来源类型
source_id int8, -- 来源id
source_detail text, -- 来源详情
type int4 default 1, -- 类型 1-收入 2-支出
@@ -692,7 +768,7 @@ comment on column market_commission_service_provider_log.account_id is '账户id
comment on column market_commission_service_provider_log.user_id is '用户id';
comment on column market_commission_service_provider_log.amount is '变动金额';
comment on column market_commission_service_provider_log.last_amount is '上笔金额';
comment on column market_commission_service_provider_log.source_type is '来源类型 0-商城订单 1-发放服务商佣金';
comment on column market_commission_service_provider_log.source_type is '来源类型';
comment on column market_commission_service_provider_log.source_id is '来源id';
comment on column market_commission_service_provider_log.source_detail is '来源详情';
comment on column market_commission_service_provider_log.type is '类型 1-收入 2-支出';
@@ -724,7 +800,7 @@ create table market_commission_agency_log
user_id int8, -- 用户id
amount decimal(14, 2) default 0, -- 变动金额
last_amount decimal(14, 2) default 0, -- 上一笔金额
source_type int4, -- 来源类型 0-商城订单 1-发放极差代理佣金
source_type varchar(256), -- 来源类型
source_id int8, -- 来源id
source_detail text, -- 来源详情
type int4 default 1, -- 类型 1-收入 2-支出
@@ -752,7 +828,7 @@ comment on column market_commission_agency_log.account_id is '账户id';
comment on column market_commission_agency_log.user_id is '用户id';
comment on column market_commission_agency_log.amount is '变动金额';
comment on column market_commission_agency_log.last_amount is '上笔金额';
comment on column market_commission_agency_log.source_type is '来源类型 0-商城订单 1-发放极差代理佣金';
comment on column market_commission_agency_log.source_type is '来源类型';
comment on column market_commission_agency_log.source_id is '来源id';
comment on column market_commission_agency_log.source_detail is '来源详情';
comment on column market_commission_agency_log.type is '类型 1-收入 2-支出';
@@ -778,7 +854,7 @@ create table market_commission_co_creator_log
account_id int8, -- 佣金账户id
amount decimal(14, 2) default 0, -- 变动金额
last_amount decimal(14, 2) default 0, -- 上一笔金额
source_type int4, -- 来源类型 0-商城订单 1-发放联创佣金
source_type varchar(256), -- 来源类型
source_id int8, -- 来源id
source_detail text, -- 来源详情
type int4 default 1, -- 类型 1-收入 2-支出
@@ -802,7 +878,7 @@ comment on column market_commission_co_creator_log.id is '主键';
comment on column market_commission_co_creator_log.account_id is '账户id';
comment on column market_commission_co_creator_log.amount is '变动金额';
comment on column market_commission_co_creator_log.last_amount is '上笔金额';
comment on column market_commission_co_creator_log.source_type is '来源类型 0-商城订单 1-发放联创佣金';
comment on column market_commission_co_creator_log.source_type is '来源类型';
comment on column market_commission_co_creator_log.source_id is '来源id';
comment on column market_commission_co_creator_log.source_detail is '来源详情';
comment on column market_commission_co_creator_log.type is '类型 1-收入 2-支出';
@@ -863,146 +939,3 @@ comment on column user_market_package_daily_settlement.is_deleted is '是否已
alter table user_market_package_daily_settlement
owner to yicha1lu;
-------------------- 系统字典 --------------------
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022144366122496002, 0, 'point_spend_type', '-1', '积分消费类型', 29, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022144416953266178, 2022144366122496002, 'point_spend_type', '1', '收入', 1, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022144450830659586, 2022144366122496002, 'point_spend_type', '2', '支出', 2, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022145522114621442, 0, 'benefit_point_source_type', '-1', '福利积分业务类型', 30, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022145600879456257, 2022145522114621442, 'benefit_point_source_type', '0', '福利包产出', 0, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022145655191498754, 2022145522114621442, 'benefit_point_source_type', '1', '福利包兑换', 1, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022145691790995458, 2022145522114621442, 'benefit_point_source_type', '2', '用户直推', 2, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022145736523247618, 2022145522114621442, 'benefit_point_source_type', '3', 'otc交易', 3, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022146929051836418, 0, 'cash_coupon_source_type', '-1', '现金券业务类型', 31, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022147076771028993, 2022146929051836418, 'cash_coupon_source_type', '0', '商城抽奖', 0, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022147174259236865, 2022146929051836418, 'cash_coupon_source_type', '1', '福利包兑换', 1, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022148656010371074, 0, 'user_point_source_type', '-1', '商城积分业务类型', 32, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022148779134164993, 2022148656010371074, 'user_point_source_type', '0', '商城订单', 0, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022148827624513537, 2022148656010371074, 'user_point_source_type', '1', '商城抽奖', 1, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022160176320638977, 2022145522114621442, 'benefit_point_source_type', '4', '后台划拨', 4, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022168620826193922, 0, 'commission_account_type', '-1', '佣金账户类型', 33, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022168687205249026, 2022168620826193922, 'commission_account_type', '0', '商品成本', 0, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022168737859858433, 2022168620826193922, 'commission_account_type', '1', '购买人获取用户积分', 1, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022168786408927233, 2022168620826193922, 'commission_account_type', '2', '直推人佣金', 2, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022168818386300929, 2022168620826193922, 'commission_account_type', '3', '运营佣金', 3, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022168849080217602, 2022168620826193922, 'commission_account_type', '4', '广告补贴', 4, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022168886443077634, 2022168620826193922, 'commission_account_type', '5', '服务商佣金', 5, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022168918445617153, 2022168620826193922, 'commission_account_type', '6', '极差代理佣金', 6, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022168952474005505, 2022168620826193922, 'commission_account_type', '7', '联创佣金', 7, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022170571915751426, 0, 'commission_ads_source_type', '-1', '广告佣金业务类型', 34, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022170678547542017, 2022170571915751426, 'commission_ads_source_type', '0', '商城订单', 0, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022170724420644865, 2022170571915751426, 'commission_ads_source_type', '1', '发放广告佣金', 1, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022171660174061569, 0, 'commission_agency_source_type', '-1', '极差代理佣金业务类型', 35, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022171729493323777, 2022171660174061569, 'commission_agency_source_type', '0', '商城订单', 0, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022171761542000641, 2022171660174061569, 'commission_agency_source_type', '1', '发放极差代理佣金', 1, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022173005106999297, 0, 'commission_co_creator_source_type', '-1', '联创佣金业务类型', 36, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022173358410002434, 2022173005106999297, 'commission_co_creator_source_type', '0', '商城订单', 0, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022173389028421634, 2022173005106999297, 'commission_co_creator_source_type', '1', '发放联创佣金', 1, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022174499617206273, 0, 'commission_direct_source_type', '-1', '直推佣金类型', 37, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022174589887016962, 2022174499617206273, 'commission_direct_source_type', '0', '商城订单', 0, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022174624280309762, 2022174499617206273, 'commission_direct_source_type', '1', '发放直推佣金', 1, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022175491679154178, 0, 'commission_goods_source_type', '-1', '商品成本业务类型', 38, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022175561182965762, 2022175491679154178, 'commission_goods_source_type', '0', '商城订单', 0, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022176216815595522, 0, 'commission_operation_source_type', '-1', '运营佣金业务类型', 39, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022176263162654722, 2022176216815595522, 'commission_operation_source_type', '0', '商城订单', 0, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022176296293462018, 2022176216815595522, 'commission_operation_source_type', '1', '发放运营佣金', 1, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022177524079489026, 0, 'commission_vendor_source_type', '-1', '服务商佣金业务类型', 40, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022177647001956354, 2022177524079489026, 'commission_vendor_source_type', '0', '商城订单', 0, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022177688496205826, 2022177524079489026, 'commission_vendor_source_type', '1', '发放服务商佣金', 1, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022178898150256642, 0, 'commission_userPoint_source_type', '-1', '商城用户积分佣金账户业务类型', 41, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022178954244878337, 2022178898150256642, 'commission_userPoint_source_type', '0', '商城订单', 0, '', 0, 1, 0);
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022178994120126465, 2022178898150256642, 'commission_userPoint_source_type', '1', '发放积分', 1, '', 0, 1, 0);
-------------------- 菜单新增 --------------------
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021905231566614529, 0, 'market', 'market', 'menu', '/market', 'iconfont iconicon_setting', 14, 1, null, 1, null, '', 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909592443203586, 2019338015981219841, 'commonCashCouponLog', '现金券流水', 'menu', '/common/commonCashCouponLog', null, 7, 1, 0, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909592443203587, 2021909592443203586, 'commonCashCouponLog_add', '新增', 'add', '/common/commonCashCouponLog/add', 'plus', 1, 2, 1, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909592443203588, 2021909592443203586, 'commonCashCouponLog_edit', '修改', 'edit', '/common/commonCashCouponLog/edit', 'form', 2, 2, 2, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909592443203589, 2021909592443203586, 'commonCashCouponLog_delete', '删除', 'delete', '/api/common/cash-coupon-log/remove', 'delete', 3, 2, 3, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909592443203590, 2021909592443203586, 'commonCashCouponLog_view', '查看', 'view', '/common/commonCashCouponLog/view', 'file-text', 4, 2, 2, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909593357561858, 2019338015981219841, 'commonUserPointLog', '商城积分流水', 'menu', '/common/commonUserPointLog', null, 8, 1, 0, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909593357561859, 2021909593357561858, 'commonUserPointLog_add', '新增', 'add', '/common/commonUserPointLog/add', 'plus', 1, 2, 1, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909593357561860, 2021909593357561858, 'commonUserPointLog_edit', '修改', 'edit', '/common/commonUserPointLog/edit', 'form', 2, 2, 2, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909593357561861, 2021909593357561858, 'commonUserPointLog_delete', '删除', 'delete', '/api/common/user-point-log/remove', 'delete', 3, 2, 3, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909593357561862, 2021909593357561858, 'commonUserPointLog_view', '查看', 'view', '/common/commonUserPointLog/view', 'file-text', 4, 2, 2, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909594070593538, 2019338015981219841, 'commonUserPoint', '商城积分', 'menu', '/common/commonUserPoint', null, 5, 1, 0, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909594070593539, 2021909594070593538, 'commonUserPoint_add', '新增', 'add', '/common/commonUserPoint/add', 'plus', 1, 2, 1, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909594070593540, 2021909594070593538, 'commonUserPoint_edit', '修改', 'edit', '/common/commonUserPoint/edit', 'form', 2, 2, 2, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909594070593541, 2021909594070593538, 'commonUserPoint_delete', '删除', 'delete', '/api/common/user-point/remove', 'delete', 3, 2, 3, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909594070593542, 2021909594070593538, 'commonUserPoint_view', '查看', 'view', '/common/commonUserPoint/view', 'file-text', 4, 2, 2, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909594792013825, 2019338015981219841, 'commonBenefitPoint', '福利值', 'menu', '/common/commonBenefitPoint', null, 3, 1, 0, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909594792013826, 2021909594792013825, 'commonBenefitPoint_add', '新增', 'add', '/common/commonBenefitPoint/add', 'plus', 1, 2, 1, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909594792013827, 2021909594792013825, 'commonBenefitPoint_edit', '修改', 'edit', '/common/commonBenefitPoint/edit', 'form', 2, 2, 2, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909594792013828, 2021909594792013825, 'commonBenefitPoint_delete', '删除', 'delete', '/api/common/benefit-point/remove', 'delete', 3, 2, 3, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909594792013829, 2021909594792013825, 'commonBenefitPoint_view', '查看', 'view', '/common/commonBenefitPoint/view', 'file-text', 4, 2, 2, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909595383410689, 2019338015981219841, 'commonBenefitPointLog', '福利值流水', 'menu', '/common/commonBenefitPointLog', null, 6, 1, 0, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909595383410690, 2021909595383410689, 'commonBenefitPointLog_add', '新增', 'add', '/common/commonBenefitPointLog/add', 'plus', 1, 2, 1, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909595383410691, 2021909595383410689, 'commonBenefitPointLog_edit', '修改', 'edit', '/common/commonBenefitPointLog/edit', 'form', 2, 2, 2, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909595383410692, 2021909595383410689, 'commonBenefitPointLog_delete', '删除', 'delete', '/api/common/benefit-point-log/remove', 'delete', 3, 2, 3, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909595383410693, 2021909595383410689, 'commonBenefitPointLog_view', '查看', 'view', '/common/commonBenefitPointLog/view', 'file-text', 4, 2, 2, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909595903504386, 2019338015981219841, 'commonCashCoupon', '现金券', 'menu', '/common/commonCashCoupon', null, 4, 1, 0, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909595903504387, 2021909595903504386, 'commonCashCoupon_add', '新增', 'add', '/common/commonCashCoupon/add', 'plus', 1, 2, 1, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909595903504388, 2021909595903504386, 'commonCashCoupon_edit', '修改', 'edit', '/common/commonCashCoupon/edit', 'form', 2, 2, 2, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909595903504389, 2021909595903504386, 'commonCashCoupon_delete', '删除', 'delete', '/api/common/cash-coupon/remove', 'delete', 3, 2, 3, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909595903504390, 2021909595903504386, 'commonCashCoupon_view', '查看', 'view', '/common/commonCashCoupon/view', 'file-text', 4, 2, 2, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909596490706945, 2021905231566614529, 'marketCommissionGoodsCostLog', '商品成本', 'menu', '/market/marketCommissionGoodsCostLog', null, 2, 1, 0, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909596490706946, 2021909596490706945, 'marketCommissionGoodsCostLog_add', '新增', 'add', '/market/marketCommissionGoodsCostLog/add', 'plus', 1, 2, 1, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909596490706947, 2021909596490706945, 'marketCommissionGoodsCostLog_edit', '修改', 'edit', '/market/marketCommissionGoodsCostLog/edit', 'form', 2, 2, 2, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909596490706948, 2021909596490706945, 'marketCommissionGoodsCostLog_delete', '删除', 'delete', '/api//market-commission/goods-cost-log/remove', 'delete', 3, 2, 3, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909596490706949, 2021909596490706945, 'marketCommissionGoodsCostLog_view', '查看', 'view', '/market/marketCommissionGoodsCostLog/view', 'file-text', 4, 2, 2, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909597145018369, 2021905231566614529, 'marketCommissionAccount', '佣金账户', 'menu', '/market/marketCommissionAccount', null, 1, 1, 0, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909597145018370, 2021909597145018369, 'marketCommissionAccount_add', '新增', 'add', '/market/marketCommissionAccount/add', 'plus', 1, 2, 1, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909597145018371, 2021909597145018369, 'marketCommissionAccount_edit', '修改', 'edit', '/market/marketCommissionAccount/edit', 'form', 2, 2, 2, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909597145018372, 2021909597145018369, 'marketCommissionAccount_delete', '删除', 'delete', '/api/market-commission/account/remove', 'delete', 3, 2, 3, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909597145018373, 2021909597145018369, 'marketCommissionAccount_view', '查看', 'view', '/market/marketCommissionAccount/view', 'file-text', 4, 2, 2, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909597740609537, 2021905231566614529, 'marketCommissionOperationLog', '运营佣金流水', 'menu', '/market/marketCommissionOperationLog', null, 9, 1, 0, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909597740609538, 2021909597740609537, 'marketCommissionOperationLog_add', '新增', 'add', '/market/marketCommissionOperationLog/add', 'plus', 1, 2, 1, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909597740609539, 2021909597740609537, 'marketCommissionOperationLog_edit', '修改', 'edit', '/market/marketCommissionOperationLog/edit', 'form', 2, 2, 2, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909597740609540, 2021909597740609537, 'marketCommissionOperationLog_delete', '删除', 'delete', '/api/market-commission/operation-log/remove', 'delete', 3, 2, 3, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909597740609541, 2021909597740609537, 'marketCommissionOperationLog_view', '查看', 'view', '/market/marketCommissionOperationLog/view', 'file-text', 4, 2, 2, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909598386532354, 2021905231566614529, 'marketCommissionServiceProviderLog', '服务商佣金流水', 'menu', '/market/marketCommissionServiceProviderLog', null, 6, 1, 0, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909598386532355, 2021909598386532354, 'marketCommissionServiceProviderLog_add', '新增', 'add', '/market/marketCommissionServiceProviderLog/add', 'plus', 1, 2, 1, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909598386532356, 2021909598386532354, 'marketCommissionServiceProviderLog_edit', '修改', 'edit', '/market/marketCommissionServiceProviderLog/edit', 'form', 2, 2, 2, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909598386532357, 2021909598386532354, 'marketCommissionServiceProviderLog_delete', '删除', 'delete', '/api/market-commission/service-provider-log/remove', 'delete', 3, 2, 3, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909598386532358, 2021909598386532354, 'marketCommissionServiceProviderLog_view', '查看', 'view', '/market/marketCommissionServiceProviderLog/view', 'file-text', 4, 2, 2, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909598906626049, 2021905231566614529, 'marketCommissionUserPointLog', '用户积分佣金流水', 'menu', '/market/marketCommissionUserPointLog', null, 3, 1, 0, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909598906626050, 2021909598906626049, 'marketCommissionUserPointLog_add', '新增', 'add', '/market/marketCommissionUserPointLog/add', 'plus', 1, 2, 1, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909598906626051, 2021909598906626049, 'marketCommissionUserPointLog_edit', '修改', 'edit', '/market/marketCommissionUserPointLog/edit', 'form', 2, 2, 2, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909598906626052, 2021909598906626049, 'marketCommissionUserPointLog_delete', '删除', 'delete', '/api/market-commission/user-point-log/remove', 'delete', 3, 2, 3, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909598906626053, 2021909598906626049, 'marketCommissionUserPointLog_view', '查看', 'view', '/market/marketCommissionUserPointLog/view', 'file-text', 4, 2, 2, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909599426719746, 2021905231566614529, 'marketCommissionAdvertisingLog', '广告补贴佣金流水', 'menu', '/market/marketCommissionAdvertisingLog', null, 4, 1, 0, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909599426719747, 2021909599426719746, 'marketCommissionAdvertisingLog_add', '新增', 'add', '/market/marketCommissionAdvertisingLog/add', 'plus', 1, 2, 1, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909599426719748, 2021909599426719746, 'marketCommissionAdvertisingLog_edit', '修改', 'edit', '/market/marketCommissionAdvertisingLog/edit', 'form', 2, 2, 2, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909599426719749, 2021909599426719746, 'marketCommissionAdvertisingLog_delete', '删除', 'delete', '/api/market-commission/advertising-log/remove', 'delete', 3, 2, 3, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909599426719750, 2021909599426719746, 'marketCommissionAdvertisingLog_view', '查看', 'view', '/market/marketCommissionAdvertisingLog/view', 'file-text', 4, 2, 2, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909600009728001, 2021905231566614529, 'marketCommissionAgencyLog', '极差代理佣金流水', 'menu', '/market/marketCommissionAgencyLog', null, 5, 1, 0, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909600009728002, 2021909600009728001, 'marketCommissionAgencyLog_add', '新增', 'add', '/market/marketCommissionAgencyLog/add', 'plus', 1, 2, 1, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909600009728003, 2021909600009728001, 'marketCommissionAgencyLog_edit', '修改', 'edit', '/market/marketCommissionAgencyLog/edit', 'form', 2, 2, 2, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909600009728004, 2021909600009728001, 'marketCommissionAgencyLog_delete', '删除', 'delete', '/api/market-commission/agency-log/remove', 'delete', 3, 2, 3, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909600009728005, 2021909600009728001, 'marketCommissionAgencyLog_view', '查看', 'view', '/market/marketCommissionAgencyLog/view', 'file-text', 4, 2, 2, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909600664039426, 2021905231566614529, 'marketCommissionCoCreatorLog', '联创佣金流水', 'menu', '/market/marketCommissionCoCreatorLog', null, 7, 1, 0, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909600664039427, 2021909600664039426, 'marketCommissionCoCreatorLog_add', '新增', 'add', '/market/marketCommissionCoCreatorLog/add', 'plus', 1, 2, 1, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909600664039428, 2021909600664039426, 'marketCommissionCoCreatorLog_edit', '修改', 'edit', '/market/marketCommissionCoCreatorLog/edit', 'form', 2, 2, 2, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909600664039429, 2021909600664039426, 'marketCommissionCoCreatorLog_delete', '删除', 'delete', '/api/market-commission/cocreator-log/remove', 'delete', 3, 2, 3, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909600664039430, 2021909600664039426, 'marketCommissionCoCreatorLog_view', '查看', 'view', '/market/marketCommissionCoCreatorLog/view', 'file-text', 4, 2, 2, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909601184133122, 2021905231566614529, 'marketCommissionDirectPushLog', '直推佣金流水', 'menu', '/market/marketCommissionDirectPushLog', null, 8, 1, 0, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909601184133123, 2021909601184133122, 'marketCommissionDirectPushLog_add', '新增', 'add', '/market/marketCommissionDirectPushLog/add', 'plus', 1, 2, 1, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909601184133124, 2021909601184133122, 'marketCommissionDirectPushLog_edit', '修改', 'edit', '/market/marketCommissionDirectPushLog/edit', 'form', 2, 2, 2, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909601184133125, 2021909601184133122, 'marketCommissionDirectPushLog_delete', '删除', 'delete', '/api/market-commission/direct-push-log/remove', 'delete', 3, 2, 3, 1, null, null, 0);
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909601184133126, 2021909601184133122, 'marketCommissionDirectPushLog_view', '查看', 'view', '/market/marketCommissionDirectPushLog/view', 'file-text', 4, 2, 2, 1, null, null, 0);
-------------------- 菜单修改 --------------------
UPDATE blade_menu SET parent_id = 2016446332399943682, code = 'userMarketBenefitPackageTemplate', name = '积分包信息', alias = 'menu', path = '/market/marketBenefitPackageTemplate', source = null, sort = 1, category = 1, action = 0, is_open = 1, component = null, remark = null, is_deleted = 0 WHERE id = 2019438517080756225;
UPDATE blade_menu SET parent_id = 2016446332399943682, code = 'userMarketBenefitPackage', name = '用户积分包信息', alias = 'menu', path = '/market/marketBenefitPackage', source = null, sort = 2, category = 1, action = 0, is_open = 1, component = null, remark = null, is_deleted = 0 WHERE id = 2019438517579878402;
UPDATE blade_menu SET parent_id = 2016446332399943682, code = 'userMarketBenefitPackageLog', name = '划拨积分记录', alias = 'menu', path = '/market/marketBenefitPackageLog', source = null, sort = 3, category = 1, action = 0, is_open = 1, component = null, remark = null, is_deleted = 0 WHERE id = 2019438517974142978;
UPDATE blade_menu SET parent_id = 2021905231566614529, code = 'commonCashCouponLog', name = '现金券流水', alias = 'menu', path = '/market/marketCashCouponLog', source = null, sort = 13, category = 1, action = 0, is_open = 1, component = null, remark = null, is_deleted = 0 WHERE id = 2021909592443203586;
UPDATE blade_menu SET parent_id = 2021905231566614529, code = 'commonBenefitPoint', name = '福利值', alias = 'menu', path = '/market/marketBenefitPoint', source = null, sort = 10, category = 1, action = 0, is_open = 1, component = null, remark = null, is_deleted = 0 WHERE id = 2021909594792013825;
UPDATE blade_menu SET parent_id = 2021905231566614529, code = 'commonBenefitPointLog', name = '福利值流水', alias = 'menu', path = '/market/marketBenefitPointLog', source = null, sort = 11, category = 1, action = 0, is_open = 1, component = null, remark = null, is_deleted = 0 WHERE id = 2021909595383410689;
UPDATE blade_menu SET parent_id = 2021905231566614529, code = 'commonCashCoupon', name = '现金券', alias = 'menu', path = '/market/marketCashCoupon', source = null, sort = 12, category = 1, action = 0, is_open = 1, component = null, remark = null, is_deleted = 0 WHERE id = 2021909595903504386;

View File

@@ -1,78 +0,0 @@
DROP TABLE IF EXISTS user_commission;
create table user_commission
(
id int8 not null primary key,
amount decimal(14, 2) default 0,
version int4 default 1,
create_user int8,
create_dept int8,
create_time timestamp(6),
update_user int8,
update_time timestamp(6),
status int4 default 1,
is_deleted int4 default 0
);
alter table user_commission
owner to yicha1lu;
comment on table user_commission is '用户佣金表';
comment on column user_commission.id is '主键';
comment on column user_commission.amount is '佣金金额';
comment on column user_commission.version is '版本号';
comment on column user_commission.create_user is '创建人';
comment on column user_commission.create_dept is '创建部门';
comment on column user_commission.create_time is '创建时间';
comment on column user_commission.update_user is '修改人';
comment on column user_commission.update_time is '修改时间';
comment on column user_commission.status is '状态';
comment on column user_commission.is_deleted is '是否已删除';
DROP TABLE IF EXISTS user_commission_log;
create table user_commission_log
(
id int8 not null primary key,
user_id int8,
amount decimal(14, 2) default 0,
last_amount decimal(14, 2) default 0, -- 上一笔金额
source_type varchar(256), -- 业务类型
source_id int8,
source_detail text,
type int4 default 1,
is_complete int4 default 0, -- 0-未完成 1-已完成
statistical_date timestamp(6),
remark text,
create_user int8,
create_dept int8,
create_time timestamp(6),
update_user int8,
update_time timestamp(6),
status int4 default 1,
is_deleted int4 default 0
);
comment on table user_commission_log is '用户佣金流水表';
comment on column user_commission_log.id is '主键';
comment on column user_commission_log.user_id is '用户id';
comment on column user_commission_log.amount is '金额';
comment on column user_commission_log.last_amount is '上一笔金额';
comment on column user_commission_log.source_type is '业务类型';
comment on column user_commission_log.source_id is '来源id';
comment on column user_commission_log.source_detail is '来源详情';
comment on column user_commission_log.type is '消费类型 1-收入 2-支出';
comment on column user_commission_log.statistical_date is '统计时间';
comment on column user_commission_log.is_complete is '是否完成 0-未完成 1-已完成';
comment on column user_commission_log.remark is '备注';
comment on column user_commission_log.create_user is '创建人';
comment on column user_commission_log.create_dept is '创建部门';
comment on column user_commission_log.create_time is '创建时间';
comment on column user_commission_log.update_user is '修改人';
comment on column user_commission_log.update_time is '修改时间';
comment on column user_commission_log.status is '状态';
comment on column user_commission_log.is_deleted is '是否已删除';
create index idx_ucl_uid
on user_commission_log (is_complete, user_id, type, statistical_date, create_time DESC);
alter table user_commission_log
owner to yicha1lu;

View File

@@ -5,7 +5,7 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springblade.common.utils.date.DateUtil;
import org.springblade.modules.common.eums.BenefitPointSourceType;
import org.springblade.modules.market.eums.MarketBusinessModule;
import org.springblade.modules.market.pojo.entity.MarketBenefitPackageEntity;
import org.springblade.modules.market.pojo.entity.MarketBenefitPointEntity;
import org.springblade.modules.market.pojo.entity.MarketBenefitPointLogEntity;
@@ -132,7 +132,7 @@ public class BenefitPackageSendPointProcessor implements BasicProcessor {
.setAmount(amountDay)
.setLastAmount(lastAmount)
.setFee(BigDecimal.ZERO)
.setSourceType(BenefitPointSourceType.BENEFIT_PACK_OUTPUT.getCode())
.setSourceType(MarketBusinessModule.BENEFIT_PACKAGE.getCode())
.setSourceId(pkg.getId())
.setSourceDetail(JSONObject.toJSONString(pkg))
.setIsComplete(0)

View File

@@ -12,12 +12,9 @@ import org.springblade.core.mp.support.Query;
import org.springblade.core.secure.utils.AuthUtil;
import org.springblade.core.tool.api.R;
import org.springblade.modules.api.request.AcquireBenefitPackageRequest;
import org.springblade.modules.api.vo.CommonUserNoticeApiVO;
import org.springblade.modules.api.vo.CommonUserNoticeDetailApiVO;
import org.springblade.modules.api.vo.MarketDirectInfoApiVO;
import org.springblade.modules.api.vo.*;
import org.springblade.modules.common.service.ICommonUserNoticeService;
import org.springblade.modules.market.manager.MarketUserManager;
import org.springblade.modules.api.vo.MarketBenefitPackageVO;
import org.springblade.modules.market.service.IMarketBenefitPackageService;
import org.springframework.web.bind.annotation.*;
@@ -96,8 +93,15 @@ public class MarketUserController {
@PostMapping("/acquire-benefit-package")
@GetMapping("/benefit-package")
@ApiOperationSupport(order = 8)
@Operation(summary = "福利包列表")
public R<List<MarketPackageTemplateVO>> benefitPackageList() {
return R.data(marketUserManager.benefitPackageList());
}
@PostMapping("/acquire-benefit-package")
@ApiOperationSupport(order = 9)
@Operation(summary = "兑换福利包", description = "传入acquireBenefitPackageRequest")
public R<Boolean> acquireBenefitPackage(@RequestBody AcquireBenefitPackageRequest request) {
return R.status(marketUserManager.acquireBenefitPackage(request));

View File

@@ -0,0 +1,54 @@
package org.springblade.modules.api.vo;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
/**
* 用户积分包信息表 视图实体类
*
* @author BladeX
* @since 2026-02-05
*/
@Data
public class MarketPackageTemplateVO implements Serializable {
private Long id;
private String packageName;
/**
* 最大购买数量
*/
private Integer userLimit;
/**
* 全网最大兑换数量
*/
private Integer maxLimit;
/**
* 产出总天数
*/
private Integer dayLimit;
/**
* 总产出福利积分
*/
private BigDecimal benefitPointAmount;
/**
* 购买赠与福利值
*/
private BigDecimal benefitValueAmount;
/**
* 兑换包需要的福利积分
*/
private BigDecimal benefitPointPrice;
/**
* 兑换包需要的现金券
*/
private BigDecimal cashCouponPrice;
/**
* 已兑换数量
*/
private Integer exchangedQuantity;
}

View File

@@ -1,56 +0,0 @@
package org.springblade.modules.common.eums;
import lombok.Getter;
@Getter
public enum BenefitPointSourceType {
/**
* 福利包产出
*/
BENEFIT_PACK_OUTPUT(0),
/**
* 福利包兑换
*/
BENEFIT_PACK_EXCHANGE(1),
/**
* 用户直推
*/
USERS_PUSH_DIRECTLY(2),
/**
* otc交易
*/
OTC_TRADING(3),
/**
* 后台划拨
*/
BACKEND_TRANSFER(4)
;
private final int code;
BenefitPointSourceType(int code) {
this.code = code;
}
/**
* 根据 code 值获取对应的枚举项
*
* @param code 福利积分来源类型
* @return 对应的 BenefitPointSourceType 枚举
* @throws IllegalArgumentException 如果 code 无效
*/
public static BenefitPointSourceType fromCode(int code) {
for (BenefitPointSourceType type : BenefitPointSourceType.values()) {
if (type.code == code) {
return type;
}
}
throw new IllegalArgumentException("Invalid notification type code: " + code);
}
}

View File

@@ -1,40 +0,0 @@
package org.springblade.modules.common.eums;
import lombok.Getter;
@Getter
public enum CashCouponSourceType {
/**
* 商城抽奖
*/
MALL_LOTTERY(0),
/**
* 福利包兑换
*/
BENEFIT_PACK_EXCHANGE(1);
private final int code;
CashCouponSourceType(int code) {
this.code = code;
}
/**
* 根据 code 值获取对应的枚举项
*
* @param code 现金券来源类型
* @return 对应的 CashCouponSourceType 枚举
* @throws IllegalArgumentException 如果 code 无效
*/
public static CashCouponSourceType fromCode(int code) {
for (CashCouponSourceType type : CashCouponSourceType.values()) {
if (type.code == code) {
return type;
}
}
throw new IllegalArgumentException("Invalid notification type code: " + code);
}
}

View File

@@ -1,40 +0,0 @@
package org.springblade.modules.common.eums;
import lombok.Getter;
@Getter
public enum UserPointSourceType {
/**
* 商城订单
*/
MALL_ORDERS(0),
/**
* 商城抽奖
*/
MALL_LOTTERY(1);
private final int code;
UserPointSourceType(int code) {
this.code = code;
}
/**
* 根据 code 值获取对应的枚举项
*
* @param code 商城积分来源类型
* @return 对应的 UserPointSourceType 枚举
* @throws IllegalArgumentException 如果 code 无效
*/
public static UserPointSourceType fromCode(int code) {
for (UserPointSourceType type : UserPointSourceType.values()) {
if (type.code == code) {
return type;
}
}
throw new IllegalArgumentException("Invalid notification type code: " + code);
}
}

View File

@@ -2,7 +2,7 @@ package org.springblade.modules.common.pojo.dto;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springblade.modules.common.eums.UserPointSourceType;
import org.springblade.modules.common.eums.BusinessModule;
import java.math.BigDecimal;
@@ -22,7 +22,7 @@ public class CommonUserPointApiDTO {
/**
* 来源类型 0-商城订单 1-商城抽奖
*/
private UserPointSourceType sourceType;
private BusinessModule sourceType;
/**
* 来源id
*/

View File

@@ -45,10 +45,10 @@ public class CommonUserPointLogEntity extends BaseEntity {
@Schema(description = "上一笔金额")
private BigDecimal lastAmount;
/**
* 0-商城订单 1-商城抽奖
* 来源类型
*/
@Schema(description = "0-商城订单 1-商城抽奖")
private Integer sourceType;
@Schema(description = "来源类型")
private String sourceType;
/**
* 来源id
*/

View File

@@ -3,7 +3,11 @@ package org.springblade.modules.market.convert;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import org.springblade.modules.api.vo.MarketBenefitPackageVO;
import org.springblade.modules.api.vo.MarketPackageTemplateVO;
import org.springblade.modules.market.pojo.entity.MarketBenefitPackageEntity;
import org.springblade.modules.market.pojo.entity.MarketBenefitPackageTemplateEntity;
import java.util.List;
@Mapper
public interface MarketUserMarketBenefitPackageConvert {
@@ -12,4 +16,9 @@ public interface MarketUserMarketBenefitPackageConvert {
MarketBenefitPackageVO convertMarketBenefitPackageVO(MarketBenefitPackageEntity userMarketBenefitPackageEntity);
MarketPackageTemplateVO convertMarketPackageTemplateToVO(MarketBenefitPackageTemplateEntity entity);
List<MarketPackageTemplateVO> convertMarketPackageTemplateListToVO(List<MarketBenefitPackageTemplateEntity> list);
}

View File

@@ -0,0 +1,44 @@
package org.springblade.modules.market.eums;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
@RequiredArgsConstructor
public enum MarketBusinessModule {
BENEFIT_PACKAGE("福利包", "benefit_package"),
TRANSFER("转账", "transfer"),
;
@Getter
private final String displayName;
@Getter
private final String code;
// ========================
// 根据 code 查找(忽略大小写)
// ========================
public static MarketBusinessModule fromCodeIgnoreCase(String code) {
MarketBusinessModule module = fromCodeIgnoreCaseOrNull(code);
if (module == null) {
throw new IllegalArgumentException("未知的业务模块 code: " + code);
}
return module;
}
public static MarketBusinessModule fromCodeIgnoreCaseOrNull(String code) {
if (code == null || code.trim().isEmpty()) {
return null;
}
String normalized = code.trim().toLowerCase();
for (MarketBusinessModule module : values()) {
if (module.code.equals(normalized)) {
return module;
}
}
return null;
}
}

View File

@@ -9,8 +9,9 @@ import org.springblade.core.secure.utils.AuthUtil;
import org.springblade.core.tool.sensitive.SensitiveUtil;
import org.springblade.modules.api.request.AcquireBenefitPackageRequest;
import org.springblade.modules.api.vo.MarketDirectInfoApiVO;
import org.springblade.modules.common.eums.BenefitPointSourceType;
import org.springblade.modules.common.eums.CashCouponSourceType;
import org.springblade.modules.api.vo.MarketPackageTemplateVO;
import org.springblade.modules.market.convert.MarketUserMarketBenefitPackageConvert;
import org.springblade.modules.market.eums.MarketBusinessModule;
import org.springblade.modules.market.pojo.dto.MarketBenefitPointApiDTO;
import org.springblade.modules.market.pojo.dto.MarketCashCouponApiDTO;
import org.springblade.modules.market.pojo.entity.*;
@@ -199,7 +200,7 @@ public class MarketUserManager {
.setUserId(userId)
.setAmount(template.getBenefitPointPrice())
.setFee(BigDecimal.ZERO)
.setSourceType(BenefitPointSourceType.BENEFIT_PACK_EXCHANGE)
.setSourceType(MarketBusinessModule.BENEFIT_PACKAGE)
.setSourceId(template.getId())
.setSourceDetail(JSONObject.toJSONString(template))
.setRemark(remake);
@@ -207,7 +208,7 @@ public class MarketUserManager {
MarketCashCouponApiDTO deductCashCouponDto = new MarketCashCouponApiDTO()
.setUserId(userId)
.setAmount(template.getCashCouponPrice())
.setSourceType(CashCouponSourceType.BENEFIT_PACK_EXCHANGE)
.setSourceType(MarketBusinessModule.BENEFIT_PACKAGE)
.setSourceId(template.getId())
.setSourceDetail(JSONObject.toJSONString(template))
.setRemark(remake);
@@ -234,6 +235,11 @@ public class MarketUserManager {
return Boolean.TRUE;
}
public List<MarketPackageTemplateVO> benefitPackageList() {
List<MarketBenefitPackageTemplateEntity> templateList = benefitPackageTemplateService.list();
return MarketUserMarketBenefitPackageConvert.INSTANCE.convertMarketPackageTemplateListToVO(templateList);
}
@@ -244,4 +250,5 @@ public class MarketUserManager {
}
}

View File

@@ -3,7 +3,7 @@ package org.springblade.modules.market.pojo.dto;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springblade.modules.common.eums.BenefitPointSourceType;
import org.springblade.modules.market.eums.MarketBusinessModule;
import org.springblade.modules.market.pojo.entity.MarketBenefitPointLogEntity;
import java.io.Serial;
@@ -31,7 +31,7 @@ public class MarketBenefitPointApiDTO {
/**
* 来源类型 0-福利包产出 1-福利包兑换 2-用户直推 3-otc交易
*/
private BenefitPointSourceType sourceType;
private MarketBusinessModule sourceType;
/**
* 来源id
*/

View File

@@ -2,7 +2,7 @@ package org.springblade.modules.market.pojo.dto;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springblade.modules.common.eums.CashCouponSourceType;
import org.springblade.modules.market.eums.MarketBusinessModule;
import java.math.BigDecimal;
@@ -22,7 +22,7 @@ public class MarketCashCouponApiDTO {
/**
* 来源类型 0-福利包产出 1-福利包兑换 2-用户直推 3-otc交易
*/
private CashCouponSourceType sourceType;
private MarketBusinessModule sourceType;
/**
* 来源id
*/

View File

@@ -50,10 +50,10 @@ public class MarketBenefitPointLogEntity extends BaseEntity {
@Schema(description = "手续费")
private BigDecimal fee;
/**
* 来源类型 0-福利包产出 1-福利包兑换 2-用户直推 3-otc交易 4-后台划拨
* 来源类型
*/
@Schema(description = "来源类型 0-福利包产出 1-福利包兑换 2-用户直推 3-otc交易 4-后台划拨")
private Integer sourceType;
@Schema(description = "来源类型")
private String sourceType;
/**
* 来源id
*/

View File

@@ -46,10 +46,10 @@ public class MarketCashCouponLogEntity extends BaseEntity {
@Schema(description = "上一笔金额")
private BigDecimal lastAmount;
/**
* 来源类型 0-商城抽奖 1-福利包兑换
*
*/
@Schema(description = "来源类型 0-商城抽奖 1-福利包兑换")
private Integer sourceType;
@Schema(description = "来源类型")
private String sourceType;
/**
* 来源id
*/

View File

@@ -40,10 +40,10 @@ public class MarketCommissionAdvertisingLogEntity extends BaseEntity {
@Schema(description = "上笔金额")
private BigDecimal lastAmount;
/**
* 来源类型 0-商城订单 1-发放广告佣金
*
*/
@Schema(description = "来源类型 0-商城订单 1-发放广告佣金")
private Integer sourceType;
@Schema(description = "来源类型")
private String sourceType;
/**
* 来源id
*/

View File

@@ -45,10 +45,10 @@ public class MarketCommissionAgencyLogEntity extends BaseEntity {
@Schema(description = "上笔金额")
private BigDecimal lastAmount;
/**
* 来源类型 0-商城订单 1-发放极差代理佣金
*
*/
@Schema(description = "来源类型 0-商城订单 1-发放极差代理佣金")
private Integer sourceType;
@Schema(description = "来源类型")
private String sourceType;
/**
* 来源id
*/

View File

@@ -40,10 +40,10 @@ public class MarketCommissionCoCreatorLogEntity extends BaseEntity {
@Schema(description = "上笔金额")
private BigDecimal lastAmount;
/**
* 来源类型 0-商城订单 1-发放联创佣金
* 来源类型
*/
@Schema(description = "来源类型 0-商城订单 1-发放联创佣金")
private Integer sourceType;
@Schema(description = "来源类型")
private String sourceType;
/**
* 来源id
*/

View File

@@ -45,10 +45,10 @@ public class MarketCommissionDirectPushLogEntity extends BaseEntity {
@Schema(description = "上笔金额")
private BigDecimal lastAmount;
/**
* 来源类型 0-商城订单 1-发放直推佣金
* 来源类型
*/
@Schema(description = "来源类型 0-商城订单 1-发放直推佣金")
private Integer sourceType;
@Schema(description = "来源类型")
private String sourceType;
/**
* 来源id
*/

View File

@@ -45,10 +45,10 @@ public class MarketCommissionGoodsCostLogEntity extends BaseEntity {
@Schema(description = "上笔金额")
private BigDecimal lastAmount;
/**
* 来源模块 0-商城订单
* 来源模块
*/
@Schema(description = "来源模块 0-商城订单")
private Integer sourceType;
@Schema(description = "来源模块")
private String sourceType;
/**
* 来源id
*/

View File

@@ -50,10 +50,10 @@ public class MarketCommissionOperationLogEntity extends BaseEntity {
@Schema(description = "随机立减说明")
private String cutDetail;
/**
* 来源类型 0-商城订单 1-发放运营佣金
* 来源类型
*/
@Schema(description = "来源类型 0-商城订单 1-发放运营佣金")
private Integer sourceType;
@Schema(description = "来源类型")
private String sourceType;
/**
* 来源id
*/

View File

@@ -45,10 +45,10 @@ public class MarketCommissionServiceProviderLogEntity extends BaseEntity {
@Schema(description = "上笔金额")
private BigDecimal lastAmount;
/**
* 来源类型 0-商城订单 1-发放服务商佣金
* 来源类型
*/
@Schema(description = "来源类型 0-商城订单 1-发放服务商佣金")
private Integer sourceType;
@Schema(description = "来源类型")
private String sourceType;
/**
* 来源id
*/

View File

@@ -45,10 +45,10 @@ public class MarketCommissionUserPointLogEntity extends BaseEntity {
@Schema(description = "上笔金额")
private BigDecimal lastAmount;
/**
* 来源类型 0-商城订单 1-发放积分
* 来源类型
*/
@Schema(description = "来源类型 0-商城订单 1-发放积分")
private Integer sourceType;
@Schema(description = "来源类型")
private String sourceType;
/**
* 来源id
*/

View File

@@ -5,8 +5,8 @@ import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springblade.common.exception.OptimisticLockException;
import org.springblade.common.utils.date.DateUtil;
import org.springblade.modules.common.eums.BenefitPointSourceType;
import org.springblade.modules.market.convert.MarketUserMarketInfoConvert;
import org.springblade.modules.market.eums.MarketBusinessModule;
import org.springblade.modules.market.pojo.dto.MarketBenefitPointApiDTO;
import org.springblade.modules.market.pojo.entity.MarketBenefitPointEntity;
import org.springblade.modules.market.pojo.entity.MarketBenefitPointLogEntity;
@@ -146,7 +146,7 @@ public class MarketBenefitPointServiceImpl extends BaseServiceImpl<MarketBenefit
.setFee(BigDecimal.ZERO)
.setLastAmount(lastFromAmount)
.setType(2)
.setSourceType(BenefitPointSourceType.BACKEND_TRANSFER.getCode())
.setSourceType(MarketBusinessModule.TRANSFER.getCode())
.setSourceId(from)
.setIsComplete(1)
.setSourceDetail("福利积分转让-扣款")
@@ -160,7 +160,7 @@ public class MarketBenefitPointServiceImpl extends BaseServiceImpl<MarketBenefit
.setLastAmount(lastToAmount)
.setFee(BigDecimal.ZERO)
.setType(1)
.setSourceType(BenefitPointSourceType.BACKEND_TRANSFER.getCode())
.setSourceType(MarketBusinessModule.TRANSFER.getCode())
.setSourceId(from)
.setIsComplete(1)
.setSourceDetail("福利积分转让-到账")