Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
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 2cb65f16
authored
Sep 27, 2023
by
huangjinxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加日志
1 parent
140b7f56
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
project-user/src/main/java/com/dituhui/pea/user/service/UserService.java
project-user/src/main/java/com/dituhui/pea/user/service/UserService.java
View file @
2cb65f1
...
...
@@ -682,11 +682,13 @@ public class UserService {
if
(
null
!=
search
.
getQueryString
())
{
querySql
.
append
(
"(su.engineer_code LIKE '%"
+
search
.
getQueryString
()
+
"%' or su.nickname like '%"
+
search
.
getQueryString
()
+
"%' or su.phone like '%"
+
search
.
getQueryString
()
+
"%' or su.email like '%"
+
search
.
getQueryString
()
+
"%' )"
);
}
log
.
info
(
"countSql:"
+
(
count
+
querySql
.
toString
()));
BigInteger
countNum
=
(
BigInteger
)
entityManager
.
createNativeQuery
(
count
+
querySql
.
toString
()).
getSingleResult
();
if
(
countNum
.
intValue
()
==
0
)
{
return
pageResult
;
}
log
.
info
(
"selectSql:"
+
(
select
+
querySql
.
toString
()
+
limit
));
Query
query
=
entityManager
.
createNativeQuery
(
select
+
querySql
.
toString
()
+
limit
);
List
<
Map
<
String
,
Object
>>
resultList1
=
query
.
getResultList
();
// log.info("resultList1:" + JSONObject.toJSONString(resultList1));
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment