Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-enterprise
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-enterprise
Commits
70bc4626
Commit
70bc4626
authored
Aug 07, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
74d1abcf
0ae089c6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
TabAppletServiceConfigMapper.java
...c/enterprise/dao/mapper/TabAppletServiceConfigMapper.java
+2
-1
AppletServiceConfigServiceImpl.java
...terprise/service/impl/AppletServiceConfigServiceImpl.java
+2
-2
TabAppletServiceConfigMapper.xml
...rc/main/resources/mapper/TabAppletServiceConfigMapper.xml
+1
-1
No files found.
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/dao/mapper/TabAppletServiceConfigMapper.java
View file @
70bc4626
...
...
@@ -69,5 +69,5 @@ public interface TabAppletServiceConfigMapper {
void
updateTime
(
@Param
(
"appId"
)
String
appId
,
@Param
(
"type"
)
int
type
,
@Param
(
"updateTime"
)
Date
date
);
void
delByConfigIdList
(
@Param
(
"ids"
)
List
<
Long
>
configIdList
,
@Param
(
"enterpriseId"
)
Integer
enterpriseId
);
void
delByConfigIdList
(
@Param
(
"ids"
)
List
<
Long
>
configIdList
,
@Param
(
"enterpriseId"
)
Integer
enterpriseId
,
@Param
(
"type"
)
int
type
);
}
\ No newline at end of file
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/impl/AppletServiceConfigServiceImpl.java
View file @
70bc4626
...
...
@@ -53,7 +53,7 @@ public class AppletServiceConfigServiceImpl implements AppletServiceConfigServic
// 先删除configId不在入参里的 如果入参是空的 就全部删除
List
<
Long
>
configIdList
=
Optional
.
ofNullable
(
responseResult
).
orElse
(
Collections
.
emptyList
())
.
stream
().
map
(
AppletsConfigSimpleOutputDTO:
:
getAppletConfigId
).
collect
(
Collectors
.
toList
());
tabAppletServiceConfigMapper
.
delByConfigIdList
(
configIdList
,
enterpriseId
);
tabAppletServiceConfigMapper
.
delByConfigIdList
(
configIdList
,
enterpriseId
,
AppletServiceConfigEnum
.
APPLET
.
getCode
()
);
List
<
TabAppletServiceConfig
>
configList
=
Optional
.
ofNullable
(
responseResult
).
orElse
(
Collections
.
emptyList
()).
stream
()
.
filter
(
e
->
tabAppletServiceConfigMapper
.
getByConfigId
(
enterpriseId
,
e
.
getAppletConfigId
())
==
null
)
...
...
@@ -77,7 +77,7 @@ public class AppletServiceConfigServiceImpl implements AppletServiceConfigServic
public
void
syncServiceConfig
(
List
<
ServiceConfigSimpleOutputDTO
>
responseResult
,
Integer
enterpriseId
)
{
List
<
Long
>
configIdList
=
Optional
.
ofNullable
(
responseResult
).
orElse
(
Collections
.
emptyList
())
.
stream
().
map
(
ServiceConfigSimpleOutputDTO:
:
getServiceConfigId
).
collect
(
Collectors
.
toList
());
tabAppletServiceConfigMapper
.
delByConfigIdList
(
configIdList
,
enterpriseId
);
tabAppletServiceConfigMapper
.
delByConfigIdList
(
configIdList
,
enterpriseId
,
AppletServiceConfigEnum
.
SERVICE_CONFIG
.
getCode
()
);
List
<
TabAppletServiceConfig
>
configList
=
Optional
.
ofNullable
(
responseResult
).
orElse
(
Collections
.
emptyList
()).
stream
()
.
filter
(
e
->
tabAppletServiceConfigMapper
.
getByConfigId
(
enterpriseId
,
e
.
getServiceConfigId
())
==
null
)
...
...
gic-platform-enterprise-service/src/main/resources/mapper/TabAppletServiceConfigMapper.xml
View file @
70bc4626
...
...
@@ -211,7 +211,7 @@
</update>
<!-- delByConfigIdList-->
<update
id=
"delByConfigIdList"
>
update tab_applet_service_config set status = 0 where enterprise_id = #{enterpriseId}
update tab_applet_service_config set status = 0 where enterprise_id = #{enterpriseId}
and type = #{type}
<if
test=
"null != ids and ids.size > 0"
>
and config_id not in
<foreach
collection=
"ids"
index=
"index"
item=
"item"
open=
"("
separator=
","
close=
")"
>
...
...
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