|
|
|
@@ -374,6 +374,12 @@ func QueryModel(opts *AiModelQueryOptions) ([]*AiModelManage, int64, error) { |
|
|
|
) |
|
|
|
} |
|
|
|
|
|
|
|
if (opts.Status) >= 0 { |
|
|
|
cond = cond.And( |
|
|
|
builder.Eq{"ai_model_manage.status": opts.Status}, |
|
|
|
) |
|
|
|
} |
|
|
|
|
|
|
|
count, err := sess.Where(cond).Count(new(AiModelManage)) |
|
|
|
if err != nil { |
|
|
|
return nil, 0, fmt.Errorf("Count: %v", err) |
|
|
|
|