| @@ -466,7 +466,7 @@ type CloudbrainsOptions struct { | |||||
| NeedDeleteInfo string | NeedDeleteInfo string | ||||
| Cluster string | Cluster string | ||||
| AccCardType string | AccCardType string | ||||
| AccCardsNum string | |||||
| AccCardsNum int | |||||
| WorkServerNumber int | WorkServerNumber int | ||||
| } | } | ||||
| @@ -2341,7 +2341,7 @@ func CloudbrainAll(opts *CloudbrainsOptions) ([]*CloudbrainInfo, int64, error) { | |||||
| if opts.AccCardType != "" { | if opts.AccCardType != "" { | ||||
| cond = cond.And(builder.Eq{"cloudbrain_spec.acc_card_type": opts.AccCardType}) | cond = cond.And(builder.Eq{"cloudbrain_spec.acc_card_type": opts.AccCardType}) | ||||
| } | } | ||||
| if opts.AccCardsNum != "" { | |||||
| if opts.AccCardsNum >= 0 { | |||||
| cond = cond.And(builder.Eq{"cloudbrain_spec.acc_cards_num": opts.AccCardsNum}) | cond = cond.And(builder.Eq{"cloudbrain_spec.acc_cards_num": opts.AccCardsNum}) | ||||
| } | } | ||||
| @@ -719,7 +719,7 @@ func GetCloudbrainsDetailData(ctx *context.Context) { | |||||
| needDeleteInfo := ctx.Query("needDeleteInfo") | needDeleteInfo := ctx.Query("needDeleteInfo") | ||||
| accCardType := ctx.Query("accCardType") | accCardType := ctx.Query("accCardType") | ||||
| accCardsNum := ctx.Query("accCardsNum") | |||||
| accCardsNum := ctx.QueryInt("accCardsNum") | |||||
| workServerNumber := ctx.QueryInt("workServerNumber") | workServerNumber := ctx.QueryInt("workServerNumber") | ||||
| beginTimeStr := ctx.QueryTrim("beginTime") | beginTimeStr := ctx.QueryTrim("beginTime") | ||||
| endTimeStr := ctx.QueryTrim("endTime") | endTimeStr := ctx.QueryTrim("endTime") | ||||