Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
ff8d3ead
Commit
ff8d3ead
authored
Apr 29, 2021
by
linboxuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lin tj
parent
511cdbc9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
center-app/app/base/db/dao.base.js
+1
-0
center-app/app/base/service/impl/utilsSve/utilsappSve.js
+6
-7
No files found.
center-app/app/base/db/dao.base.js
View file @
ff8d3ead
...
@@ -141,6 +141,7 @@ class Dao {
...
@@ -141,6 +141,7 @@ class Dao {
}
}
async
findAndCountAll
(
qobj
,
t
)
{
async
findAndCountAll
(
qobj
,
t
)
{
var
qc
=
this
.
buildQuery
(
qobj
);
var
qc
=
this
.
buildQuery
(
qobj
);
console
.
log
(
qc
);
var
apps
=
await
this
.
model
.
findAndCountAll
(
qc
);
var
apps
=
await
this
.
model
.
findAndCountAll
(
qc
);
return
apps
;
return
apps
;
}
}
...
...
center-app/app/base/service/impl/utilsSve/utilsappSve.js
View file @
ff8d3ead
...
@@ -80,16 +80,15 @@ class UtilsAppSve extends AppServiceBase {
...
@@ -80,16 +80,15 @@ class UtilsAppSve extends AppServiceBase {
pageInfo
:
{}
pageInfo
:
{}
};
};
if
(
pobj
.
actionBody
)
{
if
(
pobj
.
actionBody
)
{
let
current
=
1
;
if
(
pobj
.
actionBody
.
current
)
{
current
=
pobj
.
actionBody
.
current
;
tmpWhere
.
pageInfo
.
pageNo
=
current
;
}
if
(
pobj
.
actionBody
.
pageSize
)
{
if
(
pobj
.
actionBody
.
pageSize
)
{
tmpWhere
.
pageInfo
.
pageSize
=
(
current
-
1
)
*
pobj
.
actionBody
.
pageSize
?
(
current
-
1
)
*
pobj
.
actionBody
.
pageSize
:
14
;
tmpWhere
.
limit
=
pobj
.
actionBody
.
pageSize
;
}
if
(
pobj
.
actionBody
.
current
)
{
let
current
=
pobj
.
actionBody
.
current
;
tmpWhere
.
offset
=
(
current
-
1
)
*
pobj
.
actionBody
.
pageSize
;
}
}
}
}
let
result
=
await
this
.
appDao
.
findAndCountAll
(
tmpWhere
)
let
result
=
await
this
.
appDao
.
model
.
findAndCountAll
(
tmpWhere
)
return
system
.
getResultSuccess
(
result
);
return
system
.
getResultSuccess
(
result
);
}
}
}
}
...
...
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