Bläddra i källkod

add reverse:for v3.6.2 公排推荐人读取调整

tags/v3.6.2
huangjiajun 2 år sedan
förälder
incheckning
407bf9027a
2 ändrade filer med 12 tillägg och 5 borttagningar
  1. +6
    -2
      svc/public_platoon_relate_commission.go
  2. +6
    -3
      svc/small_public_platoon_relate_commission.go

+ 6
- 2
svc/public_platoon_relate_commission.go Visa fil

@@ -8,7 +8,6 @@ import (
"encoding/json"
"errors"
"fmt"
"strconv"
"strings"
"xorm.io/xorm"
)
@@ -120,11 +119,16 @@ func BatchGetPublicPlatoonRelateCommissionByOrder(engine *xorm.Engine, masterId
return nil, errors.New("更新公排关系记录失败")
}
}
recommendUid := ""
userProfile, _ := db.UserProfileFindByID(engine, param.Uid)
if userProfile != nil && userProfile.ParentUid > 0 {
recommendUid = zhios_order_relate_utils.IntToStr(userProfile.ParentUid)
}
///
resp[param.Oid] = &md.PublicPlatoonRelateCommissionResp{
Uid: param.Uid,
CommonWealthBenefitUid: nowBenefitUid,
DirectPushBenefitUid: strconv.Itoa(userPublicPlatoonRelation.RecommendUid),
DirectPushBenefitUid: recommendUid,
PendingAmount: param.PendingAmount,
PendingIntegral: param.PendingIntegral,
Oid: param.Oid,


+ 6
- 3
svc/small_public_platoon_relate_commission.go Visa fil

@@ -8,7 +8,6 @@ import (
"encoding/json"
"errors"
"fmt"
"strconv"
"strings"
"xorm.io/xorm"
)
@@ -122,11 +121,15 @@ func BatchSmallGetPublicPlatoonRelateCommission(engine *xorm.Engine, masterId st
return nil, errors.New("更新公排关系记录失败")
}
}

recommendUid := ""
userProfile, _ := db.UserProfileFindByID(engine, param.Uid)
if userProfile != nil && userProfile.ParentUid > 0 {
recommendUid = zhios_order_relate_utils.IntToStr(userProfile.ParentUid)
}
resp[param.Oid] = &md.SmallPublicPlatoonRelateCommissionResp{
Uid: param.Uid,
CommonWealthBenefitUid: nowBenefitUid,
DirectPushBenefitUid: strconv.Itoa(userPublicPlatoonRelation.RecommendUid),
DirectPushBenefitUid: recommendUid,
PendingAmount: param.PendingAmount,
Oid: param.Oid,
SelfRateList: selfRateList,


Laddar…
Avbryt
Spara