|
|
@@ -45,6 +45,7 @@ func BatchGetCommissionByGoods(eg *xorm.Engine, dbName string, commissionParamLi |
|
|
|
} |
|
|
|
param.CommissionParam.Oid = param.GoodsId |
|
|
|
param.CommissionParam.IsGoods = "1" |
|
|
|
param.CommissionParam.ShowLevel=param.ShowLevel |
|
|
|
|
|
|
|
_, _, _, _, lvUser, err := svc.GetRewardCommission(eg, ¶m.CommissionParam, isShare, param.Uid, param.Provider, dbName, isAllLevelReturn, map[string]string{}, virType) |
|
|
|
if err != nil { |
|
|
@@ -199,6 +200,7 @@ func SettleCommWithGoodsDetail(eg *xorm.Engine, dbName string, CommissionParam m |
|
|
|
} |
|
|
|
CommissionParam.CommissionParam.Oid = CommissionParam.GoodsId |
|
|
|
CommissionParam.CommissionParam.IsGoods = "1" |
|
|
|
CommissionParam.CommissionParam.ShowLevel=CommissionParam.ShowLevel |
|
|
|
|
|
|
|
profit, pvdFee, sysFee, subsidyFee, lvUser, err := svc.GetRewardCommission(eg, &CommissionParam.CommissionParam, isShare, CommissionParam.Uid, CommissionParam.Provider, dbName, isAllLevelReturn, mapData, virType) |
|
|
|
return profit, pvdFee, sysFee, subsidyFee, lvUser, err |
|
|
@@ -280,6 +282,7 @@ func GetRewardCommission(eg *xorm.Engine, dbName, mode string, CommissionParam m |
|
|
|
} |
|
|
|
CommissionParam.CommissionParam.Oid = CommissionParam.GoodsId |
|
|
|
CommissionParam.CommissionParam.IsGoods = "1" |
|
|
|
CommissionParam.CommissionParam.ShowLevel=CommissionParam.ShowLevel |
|
|
|
|
|
|
|
var lvUser = &comm_plan.LvUser{} |
|
|
|
var mapsDta = map[string]string{"show_level": CommissionParam.ShowLevel} |
|
|
|