Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
framework-tools
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 ff638cdc
authored
Jul 08, 2024
by
renrui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[add]提交新功能
1 parent
4e775b2c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
24 deletions
system-manage/pom.xml
system-manage/src/main/java/org/arch/manage/service/impl/UserServiceImpl.java
system-manage/src/main/java/org/arch/manage/util/UserUtil.java
system-manage/src/main/resources/mapper/UserMapper.xml
system-manage/pom.xml
View file @
ff638cd
...
...
@@ -18,25 +18,15 @@
</properties>
<dependencies>
<dependency>
<groupId>
com.github.davidfantasy
</groupId>
<artifactId>
mybatis-plus-generator-ui
</artifactId>
</dependency>
<dependency>
<groupId>
org.arch
</groupId>
<artifactId>
nacos
</artifactId>
<artifactId>
log
</artifactId>
<version>
1.0-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
org.arch
</groupId>
<artifactId>
storage
</artifactId>
<version>
1.0-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
org.arch
</groupId>
<artifactId>
filters
</artifactId>
<artifactId>
nacos
</artifactId>
<version>
1.0-SNAPSHOT
</version>
</dependency>
</dependencies>
</project>
system-manage/src/main/java/org/arch/manage/service/impl/UserServiceImpl.java
View file @
ff638cd
...
...
@@ -48,8 +48,8 @@ public class UserServiceImpl extends BaseServiceImpl<UserMapper, User> implement
@Value
(
"${refreshTokenExpireTime}"
)
private
Long
refreshTokenExpireTime
;
@Value
(
"${isc.start}"
)
private
boolean
iscStart
;
/*
@Value("${isc.start}")
private boolean iscStart;
*/
@Autowired
private
UserMapper
userMapper
;
...
...
@@ -478,7 +478,7 @@ public class UserServiceImpl extends BaseServiceImpl<UserMapper, User> implement
*/
private
void
setToken
(
UserDto
userDto
)
{
String
token
=
null
;
/*
String token=null;
if(userDto != null&&iscStart){
String tkval=redisService.get("isc_token:");
if(tkval!=null){
...
...
@@ -496,7 +496,7 @@ public class UserServiceImpl extends BaseServiceImpl<UserMapper, User> implement
userDto.setToken(token);
}
}
*/
}
/**
...
...
@@ -547,7 +547,7 @@ public class UserServiceImpl extends BaseServiceImpl<UserMapper, User> implement
*/
public
void
setMenu
(
UserDto
userDto
,
Long
userId
)
throws
Exception
{
Set
<
Menu
>
menus
=
null
;
if
(
iscStart
){
//
if(iscStart){
String
token
=
null
;
String
tkval
=
redisService
.
get
(
"isc_token:"
);
...
...
@@ -565,7 +565,7 @@ public class UserServiceImpl extends BaseServiceImpl<UserMapper, User> implement
// iscids.add(i);
// }
// userDto.setMenuIds(iscids);
}
//
}
if
(
isAdmin
(
userDto
)){
menus
=
menuService
.
findAllForSet
();
}
else
if
(
userId
!=
null
)
{
...
...
system-manage/src/main/java/org/arch/manage/util/UserUtil.java
View file @
ff638cd
...
...
@@ -24,8 +24,8 @@ public class UserUtil {
@Autowired
private
UserService
userService
;
@Value
(
"${isc.start}"
)
private
Boolean
isc_start
;
/*
@Value("${isc.start}")
private Boolean isc_start;
*/
@Autowired
private
RedisService
redisService
;
...
...
system-manage/src/main/resources/mapper/UserMapper.xml
View file @
ff638cd
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"
com.xcasz.modules.system.servic
e.mapper.UserMapper"
>
<select
id=
"getUserList3"
resultType=
"
com.xcasz.modules.system.domain.User
"
>
<mapper
namespace=
"
org.arch.manag
e.mapper.UserMapper"
>
<select
id=
"getUserList3"
resultType=
"
org.arch.common.modules.sysmange.dto.UserDto
"
>
SELECT DISTINCT
( sur.user_id ) AS xx,
su.*,
...
...
@@ -22,7 +22,7 @@
</foreach>
AND su.id IS NOT NULL AND is_delete = '0' )
</select>
<select
id=
"getUserList"
resultType=
"
com.xcasz.modules.system.servic
e.dto.UserDto"
>
<select
id=
"getUserList"
resultType=
"
org.arch.common.modules.sysmang
e.dto.UserDto"
>
SELECT
su.*,
s.org_simple_name
...
...
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