|
|
@@ -332,6 +332,10 @@ func FindSubUserRelationshipMap(c *gin.Context) { |
|
|
|
e.OutErr(c, e.ERR_DB_ORM, err4.Error()) |
|
|
|
return |
|
|
|
} |
|
|
|
if parentUser == nil { |
|
|
|
e.OutErr(c, e.ERR_NO_DATA, errors.New("该用户不存在上级用户")) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
platoonUserRelationDb := implement.NewPublicPlatoonUserRelationDb(db.Db) |
|
|
|
parentRelation, err := platoonUserRelationDb.PublicPlatoonUserRelationGetOneByParams(map[string]interface{}{ |
|
|
|