全渠道分佣数据存储图
2023-10-10 17:56:51 6 举报
全渠道分佣数据存储图
作者其他创作
大纲/内容
匹配成功,保存分佣信息
执行佣金汇总
RocketMQ
匹配成功
查询待结算金额
上传失败
匹配结算策略
UPDATE tr_third_settle_order SET divide_accounts_status = 6 (建行文件处理成功)UPDATE tr_third_settle_order_gather SET divide_accounts_status = 6 (建行文件处理成功)UPDATE st_cm_file_req_batch SET batch_status = 3 (建行文件处理完成)
审核打款成功
sc_channel_shop_finance(渠道商家电子登记簿信息)audit_status:商户申请状态(0 预开立 1待激活 2 开通成功 3 开通失败)=0
tr_third_settle_order(平台渠道订单分佣记录表)tr_third_settle_order_item(平台渠道订单分佣商品关联表)
it_third_item_info(渠道商品信息表)
处理失败
分账校验
匹配渠道商家对应的电子登记簿
修改tr_platform_withdraw_bill_log.status(入账状态:0 来账通知成功;1 来账匹配成功;2 入账成功)=1
修改tr_platform_withdraw_bill_log.status(入账状态:0 来账通知成功;1 来账匹配成功;2 入账成功)=2
处理成功
渠道商品和中台商品关联关系维护
预开立成功保存电子登记簿信息
tr_third_order_cycle(平台渠道结算周期表)
关联电子登记簿
UPDATE tr_third_settle_order SET divide_accounts_status = 7 (处理文件下载失败)UPDATE tr_third_settle_order_gather SET divide_accounts_status = 7 (处理文件下载失败)
平台渠道商品关联
下载失败
结算策略维护
tr_third_settle_order_gather(平台渠道订单分佣汇总表)
UPDATE tr_third_settle_order SET divide_accounts_status = 10 (文件解析成功)UPDATE tr_third_settle_order_gather SET divide_accounts_status = 10 (文件解析成功)UPDATE tr_third_settle_order SET store_settle_status = 1 (门店结算状态:0 未分佣;1 已分佣)UPDATE tr_third_settle_order SET platform_settle_status = 1 (平台结算状态:0 未分佣;1 已分佣)UPDATE tr_third_settle_order_gather SET store_settle_status = 1 (门店结算状态:0 未分佣;1 已分佣)UPDATE tr_third_settle_order_gather SET platform_settle_status = 1 (平台结算状态:0 未分佣;1 已分佣)
上传成功
UPDATE tr_third_settle_order SET divide_accounts_status = 1 (汇总失败)UPDATE tr_third_settle_order_gather SET divide_accounts_status = 1 (汇总失败)
全渠道分佣数据存储图
消息通知
保存商品零售价
新增平台提现流水
it_third_item_mapping(渠道商品对照关系表)
UPDATE tr_third_settle_order SET divide_accounts_status = 9 (文件解析失败)UPDATE tr_third_settle_order_gather SET divide_accounts_status = 9 (文件解析失败)
sc_channel_shop_info(渠道商家信息表)
sc_platform(平台信息表)
tr_platform_withdraw_bill(平台提现流水表)
平台关系维护
来账通知
tr_order(中台订单表)
建行文件处理
tr_platform_withdraw_bill_log(建行平台来账信息流水表)
预开立电子登记簿
根据渠道商家+门店+结算周期进行汇总
渠道商家和财务信息维护
it_third_item_price(渠道商品价格信息表)
修改sc_channel_shop_finance.audit_status:商户申请状态(0 预开立 1待激活 2 开通成功 3 开通失败)=2
tr_platform_settled_amount_log(平台待结算金额查询记录表)
建行审核
it_third_item_policy(渠道商品结算策略表)
完成打款认证和审核
解析失败
处理文件下载
订单导入
保存汇总信息
UPDATE tr_third_settle_order SET divide_accounts_status = 2 (已汇总)UPDATE tr_third_settle_order_gather SET divide_accounts_status = 2 (已汇总)st_cm_file_req_batch(分佣文件上传请求批次表)st_cm_file_req_batch_detail(分佣文件上传请求批次明细)
UPDATE tr_third_settle_order SET divide_accounts_status = 5 (建行文件处理失败)UPDATE tr_third_settle_order_gather SET divide_accounts_status = 5 (建行文件处理失败)UPDATE st_cm_file_req_batch SET batch_status = 4 (建行文件处理失败)
sc_platform_channel(平台渠道信息表)
结算周期维护
渠道商品零售价维护
转化成中台订单
保存建行来账通知记录
校验失败
解析成功
UPDATE tr_third_settle_order SET divide_accounts_status = 4 (分账文件上传成功)UPDATE tr_third_settle_order_gather SET divide_accounts_status = 4 (分账文件上传成功)UPDATE st_cm_file_req_batch SET batch_status = 1 (分账文件已上传)
分账文件上传
文件解析
UPDATE tr_third_settle_order SET divide_accounts_status = 3 (分账文件上传失败)UPDATE tr_third_settle_order_gather SET divide_accounts_status = 3 (分账文件上传失败)UPDATE st_cm_file_req_batch SET batch_status = 2 (分账文件上传失败)
UPDATE tr_third_settle_order SET divide_accounts_status = 8 (处理文件下载成功)UPDATE tr_third_settle_order_gather SET divide_accounts_status = 8 (处理文件下载成功)
校验成功
关联关系保存
下载成功
激活电子登记簿
平台信息维护
0 条评论
下一页