From 0b46ea50e3fb86d89aafe604cce3ccc2b87c9635 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 13 Dec 2023 10:26:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/model/plan_reward.go | 1 + svc/get_plan_cfg.go | 1 + 2 files changed, 2 insertions(+) diff --git a/db/model/plan_reward.go b/db/model/plan_reward.go index 6d0cb5f..01bafc1 100644 --- a/db/model/plan_reward.go +++ b/db/model/plan_reward.go @@ -9,6 +9,7 @@ type PlanReward struct { RegionSubRate float32 `json:"region_sub_rate" xorm:"not null default 0.0000 comment('区域代理抽成比例') FLOAT(6,4)"` GlobalRate float32 `json:"global_rate" xorm:"not null default 0.0000 comment('全球分红抽成比例') FLOAT(6,4)"` SelfBuyGlobalRate float64 `json:"self_buy_global_rate" xorm:"not null default 0.0000 comment('全球分红抽成比例') FLOAT(6,4)"` + BuckleRate float64 `json:"buckle_rate_rate" xorm:"not null default 0.0000 comment('抽成比例') FLOAT(6,4)"` SettleMode int `json:"settle_mode" xorm:"not null default 1 comment('0.手动方案,1.自动方案') TINYINT(1)"` PlanCommissionId int `json:"plan_commission_id" xorm:"not null default 0 comment('佣金方案0未设置,>0对应方案') TINYINT(3)"` PlanSettleId int `json:"plan_settle_id" xorm:"not null default 0 comment('结算方案0未设置,>0对应方案') TINYINT(3)"` diff --git a/svc/get_plan_cfg.go b/svc/get_plan_cfg.go index e838aa9..c9dbe76 100644 --- a/svc/get_plan_cfg.go +++ b/svc/get_plan_cfg.go @@ -33,6 +33,7 @@ func GetAllPlan(eg *xorm.Engine, dbName string) (map[string]*model.PlanReward, m plan := make(map[string]*model.PlanReward, 0) pvds, _ := db.DbsPlanRewardByPvds(eg) for _, v := range pvds { + v.BuckleRate = v.BuckleRate / 100 plan[v.Pvd] = v } list, _ := db.SecondGetAllPriceTypeList(eg)