|
@@ -18,7 +18,7 @@ import ( |
|
|
|
|
|
|
|
|
// BatchGetPublicPlatoonRelateCommission 批量分佣 订单显示 |
|
|
// BatchGetPublicPlatoonRelateCommission 批量分佣 订单显示 |
|
|
func BatchGetPublicPlatoonRelateCommissionByOrder(engine *xorm.Engine, masterId string, PublicPlatoonRelateCommissionReqList []*md.PublicPlatoonRelateCommissionReq) (map[string]*md.PublicPlatoonRelateCommissionResp, error) { |
|
|
func BatchGetPublicPlatoonRelateCommissionByOrder(engine *xorm.Engine, masterId string, PublicPlatoonRelateCommissionReqList []*md.PublicPlatoonRelateCommissionReq) (map[string]*md.PublicPlatoonRelateCommissionResp, error) { |
|
|
var resp map[string]*md.PublicPlatoonRelateCommissionResp |
|
|
|
|
|
|
|
|
var resp = make(map[string]*md.PublicPlatoonRelateCommissionResp) |
|
|
userPublicPlatoonSetting, err := db.UserPublicPlatoonSettingGetOneByParams(engine, map[string]interface{}{ |
|
|
userPublicPlatoonSetting, err := db.UserPublicPlatoonSettingGetOneByParams(engine, map[string]interface{}{ |
|
|
"key": "is_open", |
|
|
"key": "is_open", |
|
|
"value": 1, |
|
|
"value": 1, |
|
@@ -106,7 +106,7 @@ func BatchGetPublicPlatoonRelateCommissionByOrder(engine *xorm.Engine, masterId |
|
|
|
|
|
|
|
|
// AddPublicPlatoonRelateCommission 新增公排用户关系记录 |
|
|
// AddPublicPlatoonRelateCommission 新增公排用户关系记录 |
|
|
func AddPublicPlatoonRelateCommission(engine *xorm.Engine, masterId string, AddPublicPlatoonRelateCommissionReqList []*md.AddPublicPlatoonRelateCommissionReq) (map[string]*model.UserPublicPlatoonRelation, error) { |
|
|
func AddPublicPlatoonRelateCommission(engine *xorm.Engine, masterId string, AddPublicPlatoonRelateCommissionReqList []*md.AddPublicPlatoonRelateCommissionReq) (map[string]*model.UserPublicPlatoonRelation, error) { |
|
|
var resp map[string]*model.UserPublicPlatoonRelation |
|
|
|
|
|
|
|
|
var resp = make(map[string]*model.UserPublicPlatoonRelation) |
|
|
//查找 `user_public_platoon_setting` 基础设置 |
|
|
//查找 `user_public_platoon_setting` 基础设置 |
|
|
userPublicPlatoonSetting, err := db.UserPublicPlatoonSettingGetOneByParams(engine, map[string]interface{}{ |
|
|
userPublicPlatoonSetting, err := db.UserPublicPlatoonSettingGetOneByParams(engine, map[string]interface{}{ |
|
|
"key": "is_open", |
|
|
"key": "is_open", |
|
|