From d89494fda1fc61f02a43b508f3eac73962da55ab Mon Sep 17 00:00:00 2001 From: penggy Date: Thu, 13 Dec 2018 13:59:04 +0800 Subject: [PATCH] update paggin --- vendor/github.com/penggy/EasyGoLib/utils/paging.go | 8 ++++---- vendor/vendor.json | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/vendor/github.com/penggy/EasyGoLib/utils/paging.go b/vendor/github.com/penggy/EasyGoLib/utils/paging.go index 4b0782be..0d7b0cde 100644 --- a/vendor/github.com/penggy/EasyGoLib/utils/paging.go +++ b/vendor/github.com/penggy/EasyGoLib/utils/paging.go @@ -106,10 +106,10 @@ func (pr *PageResult) Sort(by, order string) *PageResult { break } } - } - if byIdx == -1 { - log.Printf("%v field name[%s] not found, case insensitive", te, by) - return pr + if byIdx == -1 { + log.Printf("%v field name[%s] not found, case insensitive", te, by) + return pr + } } sort.Slice(pr.Rows, func(i, j int) (ret bool) { va := reflect.ValueOf(pr.Rows).Index(i) diff --git a/vendor/vendor.json b/vendor/vendor.json index 0cffde30..844e20bc 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -243,10 +243,10 @@ "revisionTime": "2018-09-07T02:33:35Z" }, { - "checksumSHA1": "1+jDqOOmKfkxmqBhm1hp5a70Qx4=", + "checksumSHA1": "38aBVjLg48devHs7imW6AeWQ/Ho=", "path": "github.com/penggy/EasyGoLib/utils", - "revision": "06f9b72921eecd9499778c905788e7bbcff1a217", - "revisionTime": "2018-11-29T14:20:46Z" + "revision": "c61bc7ee568dd64a40f19ff44e32db22134226d9", + "revisionTime": "2018-12-13T05:46:04Z" }, { "checksumSHA1": "SBuXxdLcdTlDcOvRYEpnP0zp810=",