|
|
|
@@ -287,7 +287,7 @@ func ResourceSpecOffShelf(id int64) (int64, error) { |
|
|
|
|
|
|
|
func GetResourceSpecificationByIds(ids []int64) ([]*Specification, error) { |
|
|
|
r := make([]*Specification, 0) |
|
|
|
err := x.In("id", ids). |
|
|
|
err := x.In("resource_specification.id", ids). |
|
|
|
Join("INNER", "resource_queue", "resource_queue.id = resource_specification.queue_id"). |
|
|
|
Find(&r) |
|
|
|
return r, err |
|
|
|
|