Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
search_server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7370dd22
authored
Feb 19, 2021
by
hcy001
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
更新分页
parent
172abb9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
service/optimum_service.go
service/optimum_service.go
View file @
7370dd22
...
...
@@ -169,6 +169,7 @@ func (qs *OptimumService) GetOptimumAttr(ctx *gin.Context) (results model.LyResp
返回供应商详情
*/
func
(
qs
*
OptimumService
)
GetOptimumAttrInfo
(
ctx
*
gin
.
Context
)
(
results
model
.
LyResponse
)
{
//修复分页数据
if
gconv
.
Int64
(
ctx
.
Request
.
FormValue
(
"page"
))
*
gconv
.
Int64
(
ctx
.
Request
.
FormValue
(
"page_size"
))
>
10000
{
results
.
ErrorCode
=
0
;
...
...
@@ -327,7 +328,7 @@ func PageClear(ctx *gin.Context,total int64) map[string]interface{}{
}
}
else
{
pageNum
:=
0
for
i
:=
1
;
i
<=
int
(
totalPage
)
;
i
++
{
for
i
:=
1
;
i
<=
checkPage
;
i
++
{
if
pageNum
==
10
{
break
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment