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
0dcbba29
Commit
0dcbba29
authored
May 21, 2021
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
复制装修页面
parent
deab0485
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletions
+15
-1
AppletCustomPageApiServiceImpl.java
...se/service/outer/impl/AppletCustomPageApiServiceImpl.java
+9
-1
CustomPageController.java
...m/gic/enterprise/web/controller/CustomPageController.java
+6
-0
No files found.
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/AppletCustomPageApiServiceImpl.java
View file @
0dcbba29
...
...
@@ -31,6 +31,8 @@ import org.springframework.transaction.annotation.Transactional;
import
org.springframework.transaction.interceptor.TransactionAspectSupport
;
import
java.util.*
;
import
java.util.stream.Collectors
;
/**
*
* @ClassName: AppletCustomPageApiServiceImpl
...
...
@@ -367,6 +369,7 @@ public class AppletCustomPageApiServiceImpl implements AppletCustomPageApiServic
return
ServiceResponse
.
success
();
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
public
ServiceResponse
<
Void
>
copyPage
(
Integer
pageId
)
{
TabAppletCustomPage
record
=
exist
(
pageId
);
...
...
@@ -379,7 +382,12 @@ public class AppletCustomPageApiServiceImpl implements AppletCustomPageApiServic
//复制组件数据
List
<
TabAppletPageComponent
>
componentList
=
appletPageComponentService
.
listByPageId
(
pageId
);
if
(
CollectionUtils
.
isNotEmpty
(
componentList
))
{
List
<
TabAppletPageComponent
>
copyComponent
=
componentList
.
stream
().
map
(
e
->
{
e
.
setPageId
(
newPageId
);
e
.
setComponentId
(
null
);
return
e
;
}).
collect
(
Collectors
.
toList
());
appletPageComponentService
.
saveFetch
(
copyComponent
);
}
return
ServiceResponse
.
success
();
}
...
...
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/controller/CustomPageController.java
View file @
0dcbba29
...
...
@@ -86,6 +86,12 @@ public class CustomPageController {
return
OperationResultUtils
.
operationResult
(
result
,
"设置页面序号"
);
}
@RequestMapping
(
"/copy-page"
)
public
RestResponse
copyPage
(
Integer
pageId
)
{
ServiceResponse
<
Void
>
result
=
appletCustomPageApiService
.
copyPage
(
pageId
);
return
OperationResultUtils
.
operationResult
(
result
,
"复制页面"
);
}
@RequestMapping
(
"/delete"
)
public
RestResponse
delete
(
Integer
pageId
)
{
ServiceResponse
<
String
>
result
=
appletCustomPageApiService
.
delete
(
pageId
);
...
...
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