Browse Source

更新

master
huangjiajun 1 year ago
parent
commit
0b46ea50e3
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      db/model/plan_reward.go
  2. +1
    -0
      svc/get_plan_cfg.go

+ 1
- 0
db/model/plan_reward.go View File

@@ -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)"`


+ 1
- 0
svc/get_plan_cfg.go View File

@@ -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)


Loading…
Cancel
Save