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
73f02b3b
Commit
73f02b3b
authored
Aug 05, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
同步修改
parent
cabbed29
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletions
+12
-1
TabAppletServiceConfigMapper.java
...c/enterprise/dao/mapper/TabAppletServiceConfigMapper.java
+2
-0
AppletServiceConfigServiceImpl.java
...terprise/service/impl/AppletServiceConfigServiceImpl.java
+2
-1
TabAppletServiceConfigMapper.xml
...rc/main/resources/mapper/TabAppletServiceConfigMapper.xml
+8
-0
No files found.
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/dao/mapper/TabAppletServiceConfigMapper.java
View file @
73f02b3b
...
...
@@ -65,6 +65,8 @@ public interface TabAppletServiceConfigMapper {
TabAppletServiceConfig
getAppByAppId
(
@Param
(
"enterpriseId"
)
Integer
enterpriseId
,
@Param
(
"appId"
)
String
appId
);
TabAppletServiceConfig
getByConfigId
(
@Param
(
"enterpriseId"
)
Integer
enterpriseId
,
@Param
(
"configId"
)
Long
configId
);
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
);
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/impl/AppletServiceConfigServiceImpl.java
View file @
73f02b3b
...
...
@@ -56,6 +56,7 @@ public class AppletServiceConfigServiceImpl implements AppletServiceConfigServic
tabAppletServiceConfigMapper
.
delByConfigIdList
(
configIdList
,
enterpriseId
);
List
<
TabAppletServiceConfig
>
configList
=
Optional
.
ofNullable
(
responseResult
).
orElse
(
Collections
.
emptyList
()).
stream
()
.
filter
(
e
->
tabAppletServiceConfigMapper
.
getByConfigId
(
enterpriseId
,
e
.
getAppletConfigId
())
==
null
)
.
map
(
e
->
{
TabAppletServiceConfig
appletServiceConfig
=
new
TabAppletServiceConfig
();
appletServiceConfig
.
setEnterpriseId
(
enterpriseId
);
...
...
@@ -79,7 +80,7 @@ public class AppletServiceConfigServiceImpl implements AppletServiceConfigServic
tabAppletServiceConfigMapper
.
delByConfigIdList
(
configIdList
,
enterpriseId
);
List
<
TabAppletServiceConfig
>
configList
=
Optional
.
ofNullable
(
responseResult
).
orElse
(
Collections
.
emptyList
()).
stream
()
// .filter(e -> tabAppletServiceConfigMapper.getAppByAppId(enterpriseId, e.getApp
Id()) == null)
.
filter
(
e
->
tabAppletServiceConfigMapper
.
getByConfigId
(
enterpriseId
,
e
.
getServiceConfig
Id
())
==
null
)
.
map
(
e
->
{
TabAppletServiceConfig
appletServiceConfig
=
new
TabAppletServiceConfig
();
appletServiceConfig
.
setEnterpriseId
(
enterpriseId
);
...
...
gic-platform-enterprise-service/src/main/resources/mapper/TabAppletServiceConfigMapper.xml
View file @
73f02b3b
...
...
@@ -185,6 +185,14 @@
and enterprise_id = #{enterpriseId}
and status = 1
</select>
<select
id=
"getByConfigId"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_applet_service_config
where config_id = #{configId}
and enterprise_id = #{enterpriseId}
and status = 1
</select>
<update
id=
"delByAppIdList"
>
update tab_applet_service_config set status = 0
where enterprise_id = #{enterpriseId}
...
...
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