{"action":"created","issue":{"url":"https://api.github.com/repos/zblogcn/zblogphp/issues/66","labels_url":"https://api.github.com/repos/zblogcn/zblogphp/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/zblogcn/zblogphp/issues/66/comments","events_url":"https://api.github.com/repos/zblogcn/zblogphp/issues/66/events","html_url":"https://github.com/zblogcn/zblogphp/issues/66","id":118260649,"number":66,"title":"ParseWhere的一点bug。。。","user":{"login":"birdol","id":8532202,"avatar_url":"https://avatars.githubusercontent.com/u/8532202?v=3","gravatar_id":"","url":"https://api.github.com/users/birdol","html_url":"https://github.com/birdol","followers_url":"https://api.github.com/users/birdol/followers","following_url":"https://api.github.com/users/birdol/following{/other_user}","gists_url":"https://api.github.com/users/birdol/gists{/gist_id}","starred_url":"https://api.github.com/users/birdol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/birdol/subscriptions","organizations_url":"https://api.github.com/users/birdol/orgs","repos_url":"https://api.github.com/users/birdol/repos","events_url":"https://api.github.com/users/birdol/events{/privacy}","received_events_url":"https://api.github.com/users/birdol/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zblogcn/zblogphp/labels/%E9%9C%80%E8%A6%81%E8%BF%9B%E4%B8%80%E6%AD%A5%E5%8D%8F%E8%B0%83","name":"需要进一步协调","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-22T12:32:05Z","updated_at":"2015-12-21T05:01:56Z","closed_at":null,"body":"当整个sql语句中option同时包含pagebar和groupby参数的时候，由于pagebar的个数是通过\r\n$s2 = $this->Count($table,array(array('COUNT','*','num')),$where);\r\n这种方式查询计算出来的，但是整个语句由于groupby进行了合并，导致实际上的分页条没有那么多。\r\n\r\n看看怎么处理吧。。。"},"comment":{"url":"https://api.github.com/repos/zblogcn/zblogphp/issues/comments/166203196","html_url":"https://github.com/zblogcn/zblogphp/issues/66#issuecomment-166203196","issue_url":"https://api.github.com/repos/zblogcn/zblogphp/issues/66","id":166203196,"user":{"login":"birdol","id":8532202,"avatar_url":"https://avatars.githubusercontent.com/u/8532202?v=3","gravatar_id":"","url":"https://api.github.com/users/birdol","html_url":"https://github.com/birdol","followers_url":"https://api.github.com/users/birdol/followers","following_url":"https://api.github.com/users/birdol/following{/other_user}","gists_url":"https://api.github.com/users/birdol/gists{/gist_id}","starred_url":"https://api.github.com/users/birdol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/birdol/subscriptions","organizations_url":"https://api.github.com/users/birdol/orgs","repos_url":"https://api.github.com/users/birdol/repos","events_url":"https://api.github.com/users/birdol/events{/privacy}","received_events_url":"https://api.github.com/users/birdol/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T05:01:56Z","updated_at":"2015-12-21T05:01:56Z","body":"提供一个暂时的解决办法：\r\n不把pagebar作为option传给sql语句，然后输出pagebar之前判断一下页面数据，缺点是最后一页多一个按钮，优点就是，也就多一个按钮。。。\r\nif(count($arrayinfo)>0){\r\n$p->Count=$p->PageNow*$p->PageBarCount+1;//11;//按钮个数＝$p->PageBarCount*x＋1\r\n}else{\r\n$p->Count=$p->PageNow*$p->PageBarCount;//11;//按钮个数＝$p->PageBarCount*x＋1\r\n    \r\n}\r\n$p->make();\r\n－－－－－－－－－－－\r\n坐等dbsql完善。"}}