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
f2e6cae8
Commit
f2e6cae8
authored
Jan 19, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gbs
parent
cf5353aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
xggsve-uc/app/base/db/impl/user/userDao.js
+3
-6
No files found.
xggsve-uc/app/base/db/impl/user/userDao.js
View file @
f2e6cae8
...
@@ -59,7 +59,6 @@ class UserDao extends Dao {
...
@@ -59,7 +59,6 @@ class UserDao extends Dao {
sql
.
push
(
"SELECT"
);
sql
.
push
(
"SELECT"
);
sql
.
push
(
"count(1) as num"
);
sql
.
push
(
"count(1) as num"
);
sql
.
push
(
"FROM uc_user t1"
);
sql
.
push
(
"FROM uc_user t1"
);
sql
.
push
(
"INNER JOIN uc_user_info t2 ON t1.id = t2.id"
);
sql
.
push
(
"WHERE t1.deleted_at IS NULL"
);
sql
.
push
(
"WHERE t1.deleted_at IS NULL"
);
this
.
setCondition
(
sql
,
params
);
this
.
setCondition
(
sql
,
params
);
...
@@ -77,10 +76,8 @@ class UserDao extends Dao {
...
@@ -77,10 +76,8 @@ class UserDao extends Dao {
var
sql
=
[];
var
sql
=
[];
sql
.
push
(
"SELECT"
);
sql
.
push
(
"SELECT"
);
sql
.
push
(
"t1.*,"
);
sql
.
push
(
"t1.*"
);
sql
.
push
(
"t2.mobile, t2.realName"
);
sql
.
push
(
"FROM uc_user t1"
);
sql
.
push
(
"FROM uc_user t1"
);
sql
.
push
(
"INNER JOIN uc_user_info t2 ON t1.id = t2.id"
);
sql
.
push
(
"WHERE t1.deleted_at IS NULL"
);
sql
.
push
(
"WHERE t1.deleted_at IS NULL"
);
this
.
setCondition
(
sql
,
params
);
this
.
setCondition
(
sql
,
params
);
...
@@ -111,11 +108,11 @@ class UserDao extends Dao {
...
@@ -111,11 +108,11 @@ class UserDao extends Dao {
}
}
if
(
params
.
mobile
)
{
if
(
params
.
mobile
)
{
sql
.
push
(
"AND t
2
.mobile LIKE :mobile"
);
sql
.
push
(
"AND t
1
.mobile LIKE :mobile"
);
}
}
if
(
params
.
realName
)
{
if
(
params
.
realName
)
{
sql
.
push
(
"AND t
2
.realName LIKE :realName"
);
sql
.
push
(
"AND t
1
.realName LIKE :realName"
);
}
}
if
(
params
.
uctype
)
{
if
(
params
.
uctype
)
{
...
...
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