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
9f3645e5
Commit
9f3645e5
authored
Mar 23, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
管理员接口调整
parent
e4858b7c
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
112 additions
and
0 deletions
+112
-0
UserApiService.java
...pi/src/main/java/com/gic/auth/service/UserApiService.java
+10
-0
TabSysUserMapper.java
...c/main/java/com/gic/auth/dao/mapper/TabSysUserMapper.java
+3
-0
UserService.java
...rvice/src/main/java/com/gic/auth/service/UserService.java
+8
-0
UserServiceImpl.java
.../main/java/com/gic/auth/service/impl/UserServiceImpl.java
+5
-0
UserApiServiceImpl.java
...a/com/gic/auth/service/outer/impl/UserApiServiceImpl.java
+10
-0
TabSysUserMapper.xml
...th-service/src/main/resources/mapper/TabSysUserMapper.xml
+11
-0
UserController.java
...main/java/com/gic/auth/web/controller/UserController.java
+6
-0
UserOfGicVO.java
...th-web/src/main/java/com/gic/auth/web/vo/UserOfGicVO.java
+59
-0
No files found.
gic-platform-auth-api/src/main/java/com/gic/auth/service/UserApiService.java
View file @
9f3645e5
...
...
@@ -187,4 +187,14 @@ public interface UserApiService {
* @return com.gic.api.base.commons.ServiceResponse<java.util.List<java.lang.Integer>>
*/
ServiceResponse
<
List
<
Integer
>>
listAllUser
(
Integer
enterpriseId
);
/**
* 查询gic用户列表
* @Title: listGicUser
* @Description:
* @author guojuxing
* @param enterpriseId
* @return com.gic.api.base.commons.ServiceResponse<java.util.List<com.gic.auth.dto.UserDTO>>
*/
ServiceResponse
<
List
<
UserDTO
>>
listGicUser
(
Integer
enterpriseId
);
}
gic-platform-auth-service/src/main/java/com/gic/auth/dao/mapper/TabSysUserMapper.java
View file @
9f3645e5
...
...
@@ -136,4 +136,6 @@ public interface TabSysUserMapper {
* @return java.util.List<java.lang.Integer>
*/
List
<
Integer
>
listAllUser
(
@Param
(
"enterpriseId"
)
Integer
enterpriseId
);
List
<
TabSysUser
>
listGicUser
(
@Param
(
"enterpriseId"
)
Integer
enterpriseId
,
@Param
(
"isGic"
)
Integer
isGic
);
}
\ No newline at end of file
gic-platform-auth-service/src/main/java/com/gic/auth/service/UserService.java
View file @
9f3645e5
...
...
@@ -136,4 +136,12 @@ public interface UserService {
* @return java.util.List<java.lang.Integer>
*/
List
<
Integer
>
listAllUser
(
Integer
enterpriseId
);
/**
* 查询用户
* @param enterpriseId
* @param isGic 0:gic 1:运营
* @return
*/
List
<
TabSysUser
>
listGicUser
(
Integer
enterpriseId
,
Integer
isGic
);
}
gic-platform-auth-service/src/main/java/com/gic/auth/service/impl/UserServiceImpl.java
View file @
9f3645e5
...
...
@@ -150,4 +150,9 @@ public class UserServiceImpl implements UserService {
public
List
<
Integer
>
listAllUser
(
Integer
enterpriseId
)
{
return
tabSysUserMapper
.
listAllUser
(
enterpriseId
);
}
@Override
public
List
<
TabSysUser
>
listGicUser
(
Integer
enterpriseId
,
Integer
isGic
)
{
return
tabSysUserMapper
.
listGicUser
(
enterpriseId
,
isGic
);
}
}
gic-platform-auth-service/src/main/java/com/gic/auth/service/outer/impl/UserApiServiceImpl.java
View file @
9f3645e5
package
com
.
gic
.
auth
.
service
.
outer
.
impl
;
import
java.util.ArrayList
;
import
java.util.Collections
;
import
java.util.Date
;
import
java.util.List
;
...
...
@@ -439,6 +440,15 @@ public class UserApiServiceImpl implements UserApiService {
return
ServiceResponse
.
success
(
userService
.
listAllUser
(
enterpriseId
));
}
@Override
public
ServiceResponse
<
List
<
UserDTO
>>
listGicUser
(
Integer
enterpriseId
)
{
List
<
TabSysUser
>
list
=
userService
.
listGicUser
(
enterpriseId
,
0
);
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
return
ServiceResponse
.
success
(
EntityUtil
.
changeEntityListNew
(
UserDTO
.
class
,
list
));
}
return
ServiceResponse
.
success
(
Collections
.
emptyList
());
}
/**
* 保存关联数据,角色关联、资源关联
* @Title: saveRole
...
...
gic-platform-auth-service/src/main/resources/mapper/TabSysUserMapper.xml
View file @
9f3645e5
...
...
@@ -361,4 +361,14 @@
and enterprise_id = #{enterpriseId}
</if>
</select>
<select
id=
"listGicUser"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
></include>
from tab_sys_user where status = 1
and enterprise_id = #{enterpriseId}
<if
test=
"isGic != null"
>
and login_type = #{isGic}
</if>
order by create_time desc
</select>
</mapper>
\ No newline at end of file
gic-platform-auth-web/src/main/java/com/gic/auth/web/controller/UserController.java
View file @
9f3645e5
package
com
.
gic
.
auth
.
web
.
controller
;
import
com.gic.auth.web.vo.SuperUserVO
;
import
com.gic.auth.web.vo.UserOfGicVO
;
import
com.gic.enterprise.base.EnterpriseInfo
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.log4j.LogManager
;
...
...
@@ -254,6 +255,11 @@ public class UserController {
return
ResultControllerUtils
.
commonResult
(
userApiService
.
listUser
(
params
));
}
@RequestMapping
(
"/list-gic-user"
)
public
RestResponse
listGicUser
()
{
return
ResultControllerUtils
.
commonResult
(
userApiService
.
listGicUser
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
()),
UserOfGicVO
.
class
);
}
/**
* 逻辑删除用户对应分组数据
*
...
...
gic-platform-auth-web/src/main/java/com/gic/auth/web/vo/UserOfGicVO.java
0 → 100644
View file @
9f3645e5
package
com
.
gic
.
auth
.
web
.
vo
;
import
java.io.Serializable
;
public
class
UserOfGicVO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
1568853891785762755L
;
/**
* 用户id
*/
private
Integer
userId
;
/**
* 用户名
*/
private
String
userName
;
/**
* 手机号码
*/
private
String
phoneNumber
;
/**
* 国际区号,如中国 86
*/
private
String
phoneAreaCode
;
public
Integer
getUserId
()
{
return
userId
;
}
public
void
setUserId
(
Integer
userId
)
{
this
.
userId
=
userId
;
}
public
String
getUserName
()
{
return
userName
;
}
public
void
setUserName
(
String
userName
)
{
this
.
userName
=
userName
;
}
public
String
getPhoneNumber
()
{
return
phoneNumber
;
}
public
void
setPhoneNumber
(
String
phoneNumber
)
{
this
.
phoneNumber
=
phoneNumber
;
}
public
String
getPhoneAreaCode
()
{
return
phoneAreaCode
;
}
public
void
setPhoneAreaCode
(
String
phoneAreaCode
)
{
this
.
phoneAreaCode
=
phoneAreaCode
;
}
}
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