diff --git a/rule/public_platoon_relate_commission.go b/rule/public_platoon_relate_commission.go index c5824e2..2d12a02 100644 --- a/rule/public_platoon_relate_commission.go +++ b/rule/public_platoon_relate_commission.go @@ -36,6 +36,15 @@ func AddPublicPlatoonRelateCommission(engine *xorm.Engine, AddPublicPlatoonRelat return nil, err } 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 (代表等待新用户填充) 的记录 userPublicPlatoonRelation, err := db.UserPublicPlatoonRelationGetOneByParams(engine, map[string]interface{}{ "key": "uid",