Browse Source

update 大公排加入

master
DengBiao 9 months ago
parent
commit
885134dbe2
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      rule/public_platoon_relate_commission.go

+ 9
- 0
rule/public_platoon_relate_commission.go View File

@@ -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",


Loading…
Cancel
Save