...
|
...
|
@@ -182,8 +182,8 @@ func (repository *CooperationContractUndertakerRepository) Find(queryOptions map |
|
|
cooperationContractUndertakers := make([]*domain.CooperationContractUndertaker, 0)
|
|
|
query := sqlbuilder.BuildQuery(tx.Model(&cooperationContractUndertakerModels), queryOptions)
|
|
|
offsetLimitFlag := true
|
|
|
if limit, ok := queryOptions["limit"]; ok {
|
|
|
offsetLimitFlag = limit.(bool)
|
|
|
if offsetLimit, ok := queryOptions["offsetLimit"]; ok {
|
|
|
offsetLimitFlag = offsetLimit.(bool)
|
|
|
}
|
|
|
if offsetLimitFlag {
|
|
|
query.SetOffsetAndLimit(20)
|
...
|
...
|
|