|
@@ -16,7 +16,7 @@ func GetGoodstalentList(ctx context.Context, request http_model.GetGoodsTalentRe
|
|
query := db.Model(&gorm_model.EnterpriseTalentCooperate{}).Where("enterprise_id = ? AND cooperate_type = ?", request.EnterpriseId, 1)
|
|
query := db.Model(&gorm_model.EnterpriseTalentCooperate{}).Where("enterprise_id = ? AND cooperate_type = ?", request.EnterpriseId, 1)
|
|
|
|
|
|
// 根据平台筛选
|
|
// 根据平台筛选
|
|
- if request.Platform != nil {
|
|
|
|
|
|
+ if request.Platform != -1 {
|
|
query.Where("platform = ?", request.Platform)
|
|
query.Where("platform = ?", request.Platform)
|
|
}
|
|
}
|
|
|
|
|
|
@@ -146,7 +146,7 @@ func GetProjecttalentList(ctx context.Context, request http_model.GetProjectTale
|
|
query := db.Model(&gorm_model.EnterpriseTalentCooperate{}).Where("enterprise_id = ? AND cooperate_type = ?", request.EnterpriseId, 2)
|
|
query := db.Model(&gorm_model.EnterpriseTalentCooperate{}).Where("enterprise_id = ? AND cooperate_type = ?", request.EnterpriseId, 2)
|
|
|
|
|
|
// 根据平台筛选
|
|
// 根据平台筛选
|
|
- if request.Platform != nil {
|
|
|
|
|
|
+ if request.Platform != -1 {
|
|
query.Where("platform = ?", request.Platform)
|
|
query.Where("platform = ?", request.Platform)
|
|
}
|
|
}
|
|
|
|
|
|
@@ -262,7 +262,7 @@ func GetLocallifetalentList(ctx context.Context, request http_model.GetLocallife
|
|
query := db.Model(&gorm_model.EnterpriseTalentCooperate{}).Where("enterprise_id = ? AND cooperate_type = ?", request.EnterpriseId, 3)
|
|
query := db.Model(&gorm_model.EnterpriseTalentCooperate{}).Where("enterprise_id = ? AND cooperate_type = ?", request.EnterpriseId, 3)
|
|
|
|
|
|
// 根据平台筛选
|
|
// 根据平台筛选
|
|
- if request.Platform != nil {
|
|
|
|
|
|
+ if request.Platform != -1 {
|
|
query.Where("platform = ?", &request.Platform)
|
|
query.Where("platform = ?", &request.Platform)
|
|
}
|
|
}
|
|
|
|
|