|
|
@@ -8,6 +8,7 @@ import ( |
|
|
|
"code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git/rabbit" |
|
|
|
"code.fnuoos.com/go_rely_warehouse/zyos_go_o2o_business.git/o2o" |
|
|
|
"code.fnuoos.com/go_rely_warehouse/zyos_go_order_relate_rule.git/lib/comm_plan" |
|
|
|
"code.fnuoos.com/go_rely_warehouse/zyos_model.git/src/implement" |
|
|
|
"fmt" |
|
|
|
"github.com/tidwall/gjson" |
|
|
|
"strings" |
|
|
@@ -649,8 +650,12 @@ func OrderSaveCreateUpdate(eg *xorm.Engine, pvd string, ordData *[]md.OrderInfo, |
|
|
|
} |
|
|
|
commissionReqList = append(commissionReqList, req) |
|
|
|
if secondOpts[req.Provider] != nil && opts[req.Provider].PlanCommissionId > 0 { |
|
|
|
//TODO 待确认 |
|
|
|
req.ServiceUid = "" |
|
|
|
NewServiceAwardDividendRelationDb := implement.NewServiceAwardDividendRelationDb(eg) |
|
|
|
relation, _ := NewServiceAwardDividendRelationDb.GetServiceAwardDividendRelationByUid(uid) |
|
|
|
if relation != nil { |
|
|
|
req.ServiceUid = utils.IntToStr(relation.BindUid) |
|
|
|
} |
|
|
|
if utils.StrToInt(req.ServiceUid) > 0 { |
|
|
|
secondCommissionReqList = append(secondCommissionReqList, req) |
|
|
|
} |
|
|
|