Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-auth
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
base_platform_enterprise
gic-platform-auth
Commits
7913f00a
Commit
7913f00a
authored
Jul 17, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报名修改
parent
ad052f2e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
37 additions
and
0 deletions
+37
-0
UserApiService.java
...pi/src/main/java/com/gic/auth/service/UserApiService.java
+7
-0
TabUserMapper.java
...ain/java/com/gic/enterprise/dao/mapper/TabUserMapper.java
+3
-0
UserService.java
...src/main/java/com/gic/enterprise/service/UserService.java
+2
-0
UserServiceImpl.java
...java/com/gic/enterprise/service/impl/UserServiceImpl.java
+5
-0
UserApiServiceImpl.java
.../com/gic/enterprise/service/outer/UserApiServiceImpl.java
+9
-0
TabUserMapper.xml
...-auth-service/src/main/resources/mapper/TabUserMapper.xml
+11
-0
No files found.
gic-platform-auth-api/src/main/java/com/gic/auth/service/UserApiService.java
View file @
7913f00a
...
...
@@ -24,4 +24,11 @@ public interface UserApiService {
ServiceResponse
editUser
(
UserDTO
userDTO
);
ServiceResponse
<
UserDTO
>
getUserById
(
Integer
userId
);
/**
* 企业查询超级管理员
* @param enterpriseId
* @return
*/
ServiceResponse
<
UserDTO
>
getUserByEnterpriseId
(
Integer
enterpriseId
);
}
gic-platform-auth-service/src/main/java/com/gic/enterprise/dao/mapper/TabUserMapper.java
View file @
7913f00a
...
...
@@ -59,4 +59,6 @@ public interface TabUserMapper {
* @return
*/
int
countByPhone
(
@Param
(
"phone"
)
String
phone
,
@Param
(
"userId"
)
Integer
userId
);
TabUser
selectByEnterpriseId
(
@Param
(
"enterpriseId"
)
Integer
enterpriseId
);
}
\ No newline at end of file
gic-platform-auth-service/src/main/java/com/gic/enterprise/service/UserService.java
View file @
7913f00a
...
...
@@ -32,4 +32,6 @@ public interface UserService {
* @return
*/
boolean
isPhoneRepeat
(
Integer
userId
,
String
phone
);
TabUser
getUserByEnterpriseId
(
Integer
enterpriseId
);
}
gic-platform-auth-service/src/main/java/com/gic/enterprise/service/impl/UserServiceImpl.java
View file @
7913f00a
...
...
@@ -42,4 +42,9 @@ public class UserServiceImpl implements UserService{
}
return
false
;
}
@Override
public
TabUser
getUserByEnterpriseId
(
Integer
enterpriseId
)
{
return
null
;
}
}
gic-platform-auth-service/src/main/java/com/gic/enterprise/service/outer/UserApiServiceImpl.java
View file @
7913f00a
...
...
@@ -65,4 +65,13 @@ public class UserApiServiceImpl implements UserApiService{
}
return
ServiceResponse
.
success
(
EntityUtil
.
changeEntityNew
(
UserDTO
.
class
,
tabUser
));
}
@Override
public
ServiceResponse
<
UserDTO
>
getUserByEnterpriseId
(
Integer
enterpriseId
)
{
TabUser
tabUser
=
userService
.
getUserByEnterpriseId
(
enterpriseId
);
if
(
enterpriseId
==
null
)
{
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"商户ID输入有误"
);
}
return
ServiceResponse
.
success
(
EntityUtil
.
changeEntityNew
(
UserDTO
.
class
,
tabUser
));
}
}
gic-platform-auth-service/src/main/resources/mapper/TabUserMapper.xml
View file @
7913f00a
...
...
@@ -159,4 +159,14 @@
</if>
and phone_number = #{phone}
</select>
<select
id=
"selectByEnterpriseId"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_user
where enterprise_id = #{enterpriseId,jdbcType=INTEGER}
and status = 1
and super_admin = 1
</select>
</mapper>
\ No newline at end of file
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