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
cf5353aa
Commit
cf5353aa
authored
Jan 19, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
a03ada50
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
19 deletions
+1
-19
xggsve-uc/app/base/db/impl/user/userDao.js
+1
-2
xggsve-uc/app/base/service/impl/org/orgSve.js
+0
-17
No files found.
xggsve-uc/app/base/db/impl/user/userDao.js
View file @
cf5353aa
...
...
@@ -170,9 +170,8 @@ class UserDao extends Dao {
sql
.
push
(
"SELECT"
);
sql
.
push
(
"t1.id, t1.ucid, t1.ucname, t1.uctype, t1.org_id, t1.orgpath,"
);
sql
.
push
(
"t1.isMain, t1.saas_id, t1.isEnabled, t1.created_at,"
);
sql
.
push
(
"t
2.mobile, t2
.realName"
);
sql
.
push
(
"t
1.mobile, t1
.realName"
);
sql
.
push
(
"FROM uc_user t1"
);
sql
.
push
(
"INNER JOIN uc_user_info t2 ON t1.id = t2.id"
);
sql
.
push
(
"LEFT JOIN uc_user_role t3 ON t1.id = t3.user_id"
);
sql
.
push
(
"WHERE 1 = 1 "
);
...
...
xggsve-uc/app/base/service/impl/org/orgSve.js
View file @
cf5353aa
...
...
@@ -130,23 +130,6 @@ class OrgService extends ServiceBase {
return
system
.
getResult
(
-
1
,
`参数错误 组织名称不能为空`
)
}
let
exists
=
await
this
.
findOne
({
orgname
:
params
.
orgname
,
saas_id
:
params
.
saas_id
});
if
(
id
)
{
if
(
exists
&&
id
!=
exists
.
id
)
{
return
system
.
getResult
(
-
1
,
`参数错误
${
params
.
orgname
}
组织名称已经存在`
);
}
}
else
{
if
(
exists
)
{
return
system
.
getResult
(
-
1
,
`参数错误
${
params
.
orgname
}
组织名称已经存在`
);
}
}
let
mainUser
;
let
path
=
""
;
if
(
pid
===
0
)
{
if
(
!
id
)
{
...
...
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