Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
ocrCloudPlatForm
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
ocr-cloud-platform
ocrCloudPlatForm
Commits
db866c53
Commit
db866c53
authored
Jan 23, 2024
by
黄明步
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
a84ffea7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
src/main/java/com/gxmailu/ocrCloudPlatform/service/impl/ConfigAbilityServiceImpl.java
+1
-1
src/main/java/com/gxmailu/ocrCloudPlatform/service/impl/ConfigApplicationServiceImpl.java
+2
-0
No files found.
src/main/java/com/gxmailu/ocrCloudPlatform/service/impl/ConfigAbilityServiceImpl.java
View file @
db866c53
...
@@ -33,7 +33,7 @@ public class ConfigAbilityServiceImpl implements ConfigAbilityService {
...
@@ -33,7 +33,7 @@ public class ConfigAbilityServiceImpl implements ConfigAbilityService {
if
(
ObjUtil
.
isNotNull
(
obj
))
{
if
(
ObjUtil
.
isNotNull
(
obj
))
{
return
JSONUtil
.
toList
(
obj
.
toString
(),
ConfigAbility
.
class
);
return
JSONUtil
.
toList
(
obj
.
toString
(),
ConfigAbility
.
class
);
}
else
{
}
else
{
List
<
ConfigAbility
>
list
=
configAbilityMapper
.
selectList
(
Wrappers
.
lambdaQuery
(
ConfigAbility
.
class
));
List
<
ConfigAbility
>
list
=
configAbilityMapper
.
selectList
(
Wrappers
.
lambdaQuery
(
ConfigAbility
.
class
)
.
isNotNull
(
ConfigAbility:
:
getParentId
).
in
(
ConfigAbility:
:
getSdkType
,
"kv"
,
"ft"
,
"tb"
)
);
redisService
.
set
(
RedisConstant
.
CONFIG_ABILITY_ALL
,
list
,
1
,
TimeUnit
.
DAYS
);
redisService
.
set
(
RedisConstant
.
CONFIG_ABILITY_ALL
,
list
,
1
,
TimeUnit
.
DAYS
);
return
list
;
return
list
;
}
}
...
...
src/main/java/com/gxmailu/ocrCloudPlatform/service/impl/ConfigApplicationServiceImpl.java
View file @
db866c53
...
@@ -76,6 +76,7 @@ public class ConfigApplicationServiceImpl implements ConfigApplicationService {
...
@@ -76,6 +76,7 @@ public class ConfigApplicationServiceImpl implements ConfigApplicationService {
int
result
=
this
.
configApplicationMapper
.
updateById
(
info
);
int
result
=
this
.
configApplicationMapper
.
updateById
(
info
);
if
(
result
>
0
)
{
if
(
result
>
0
)
{
redisService
.
remove
(
RedisConstant
.
CONFIG_APPLICATION_ALL
);
redisService
.
remove
(
RedisConstant
.
CONFIG_APPLICATION_ALL
);
redisService
.
remove
(
RedisConstant
.
CONFIG_ABILITY_ALL
);
//直接删掉旧的重新新增
//直接删掉旧的重新新增
//先删除
//先删除
...
@@ -158,6 +159,7 @@ public class ConfigApplicationServiceImpl implements ConfigApplicationService {
...
@@ -158,6 +159,7 @@ public class ConfigApplicationServiceImpl implements ConfigApplicationService {
result
=
this
.
configApplicationMapper
.
insert
(
info
);
result
=
this
.
configApplicationMapper
.
insert
(
info
);
if
(
result
>=
1
)
{
if
(
result
>=
1
)
{
redisService
.
remove
(
RedisConstant
.
CONFIG_APPLICATION_ALL
);
redisService
.
remove
(
RedisConstant
.
CONFIG_APPLICATION_ALL
);
redisService
.
remove
(
RedisConstant
.
CONFIG_ABILITY_ALL
);
//保存应用功能关联
//保存应用功能关联
this
.
batchSaveConfigAppAbility
(
configAppVo
,
info
.
getId
());
this
.
batchSaveConfigAppAbility
(
configAppVo
,
info
.
getId
());
}
}
...
...
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