|
@@ -429,16 +429,19 @@ func BatchSmallGetPublicPlatoonRelateCommissionLevel(engine *xorm.Engine, master |
|
|
//共富简历 |
|
|
//共富简历 |
|
|
if zhios_order_relate_utils.StrToInt(nowBenefitUid) > 0 { |
|
|
if zhios_order_relate_utils.StrToInt(nowBenefitUid) > 0 { |
|
|
parentUid, _ := db.UserFindByID(engine, nowBenefitUid) |
|
|
parentUid, _ := db.UserFindByID(engine, nowBenefitUid) |
|
|
lvGrade := subsidyTmp[zhios_order_relate_utils.IntToStr(parentUid.Level)] |
|
|
|
|
|
if lvGrade != nil { |
|
|
|
|
|
for _, coinId := range lvGrade.ReturnType { |
|
|
|
|
|
var pendingAmount = param.PendingAmount |
|
|
|
|
|
if zhios_order_relate_utils.StrToInt(coinId) > 0 { //积分更换基数 |
|
|
|
|
|
pendingAmount = param.PendingIntegral |
|
|
|
|
|
|
|
|
if parentUid != nil { |
|
|
|
|
|
lvGrade := subsidyTmp[zhios_order_relate_utils.IntToStr(parentUid.Level)] |
|
|
|
|
|
if lvGrade != nil { |
|
|
|
|
|
for _, coinId := range lvGrade.ReturnType { |
|
|
|
|
|
var pendingAmount = param.PendingAmount |
|
|
|
|
|
if zhios_order_relate_utils.StrToInt(coinId) > 0 { //积分更换基数 |
|
|
|
|
|
pendingAmount = param.PendingIntegral |
|
|
|
|
|
} |
|
|
|
|
|
commonWealthSystem[coinId] = zhios_order_relate_utils.Float64ToStrByPrec(zhios_order_relate_utils.StrToFloat64(lvGrade.CommonWealthSystem[coinId])*zhios_order_relate_utils.StrToFloat64(pendingAmount)/100, 9) |
|
|
} |
|
|
} |
|
|
commonWealthSystem[coinId] = zhios_order_relate_utils.Float64ToStrByPrec(zhios_order_relate_utils.StrToFloat64(lvGrade.CommonWealthSystem[coinId])*zhios_order_relate_utils.StrToFloat64(pendingAmount)/100, 9) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
resp[param.Oid] = &md.SmallPublicPlatoonRelateCommissionResp{ |
|
|
resp[param.Oid] = &md.SmallPublicPlatoonRelateCommissionResp{ |
|
|