瀏覽代碼

update 大公排加入

master
DengBiao 9 月之前
父節點
當前提交
885134dbe2
共有 1 個檔案被更改,包括 9 行新增0 行删除
  1. +9
    -0
      rule/public_platoon_relate_commission.go

+ 9
- 0
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",


Loading…
取消
儲存