|
@@ -36,6 +36,15 @@ func AddPublicPlatoonRelateCommission(engine *xorm.Engine, AddPublicPlatoonRelat |
|
|
return nil, err |
|
|
return nil, err |
|
|
} |
|
|
} |
|
|
for _, param := range AddPublicPlatoonRelateCommissionReqList { |
|
|
for _, param := range AddPublicPlatoonRelateCommissionReqList { |
|
|
|
|
|
//TODO::判断当前uid是否已加入公排网 |
|
|
|
|
|
isHasUserPublicPlatoonRelation, err := db.UserPublicPlatoonRelationGetOneByParams(engine, map[string]interface{}{ |
|
|
|
|
|
"key": "uid", |
|
|
|
|
|
"value": param.Uid, |
|
|
|
|
|
}) |
|
|
|
|
|
if isHasUserPublicPlatoonRelation != nil { |
|
|
|
|
|
continue |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
//TODO::判断是否有uid为-1 (代表等待新用户填充) 的记录 |
|
|
//TODO::判断是否有uid为-1 (代表等待新用户填充) 的记录 |
|
|
userPublicPlatoonRelation, err := db.UserPublicPlatoonRelationGetOneByParams(engine, map[string]interface{}{ |
|
|
userPublicPlatoonRelation, err := db.UserPublicPlatoonRelationGetOneByParams(engine, map[string]interface{}{ |
|
|
"key": "uid", |
|
|
"key": "uid", |
|
|