Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-operate-sys-cscec
Project
Project
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
fulixin
dsk-operate-sys-cscec
Commits
7c4e90b3
Commit
7c4e90b3
authored
Oct 30, 2023
by
施翔轲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化修改企业状态时过期时间改为当前时间
parent
06d3b882
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
ISysTenantServiceImpl.java
...va/com/dsk/system/service/impl/ISysTenantServiceImpl.java
+3
-0
No files found.
dsk-system/src/main/java/com/dsk/system/service/impl/ISysTenantServiceImpl.java
View file @
7c4e90b3
...
@@ -342,6 +342,9 @@ public class ISysTenantServiceImpl implements ISysTenantService {
...
@@ -342,6 +342,9 @@ public class ISysTenantServiceImpl implements ISysTenantService {
@CacheEvict
(
cacheNames
=
CacheNames
.
SYS_TENANT
,
key
=
"#bo.tenantId"
)
@CacheEvict
(
cacheNames
=
CacheNames
.
SYS_TENANT
,
key
=
"#bo.tenantId"
)
public
Boolean
updateByBo
(
SysTenantBo
bo
)
{
public
Boolean
updateByBo
(
SysTenantBo
bo
)
{
SysTenant
tenant
=
BeanUtil
.
toBean
(
bo
,
SysTenant
.
class
);
SysTenant
tenant
=
BeanUtil
.
toBean
(
bo
,
SysTenant
.
class
);
if
(
TenantConstants
.
DISABLE
.
equals
(
bo
.
getStatus
()))
{
tenant
.
setExpireTime
(
new
DateTime
());
}
tenant
.
setTenantId
(
null
);
tenant
.
setTenantId
(
null
);
return
baseMapper
.
updateById
(
tenant
)
>
0
;
return
baseMapper
.
updateById
(
tenant
)
>
0
;
}
}
...
...
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