Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
c0bb88d2
Commit
c0bb88d2
authored
Nov 29, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改app克隆
parent
8ed0eda9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
base-manager/src/main/java/com/mortals/xhx/module/app/service/impl/AppServiceImpl.java
...m/mortals/xhx/module/app/service/impl/AppServiceImpl.java
+6
-4
No files found.
base-manager/src/main/java/com/mortals/xhx/module/app/service/impl/AppServiceImpl.java
View file @
c0bb88d2
...
@@ -101,7 +101,6 @@ public class AppServiceImpl extends AbstractCRUDServiceImpl<AppDao, AppEntity, L
...
@@ -101,7 +101,6 @@ public class AppServiceImpl extends AbstractCRUDServiceImpl<AppDao, AppEntity, L
AppQuery
appQuery
=
new
AppQuery
();
AppQuery
appQuery
=
new
AppQuery
();
appQuery
.
setAppCode
(
appEntity
.
getAppCode
());
appQuery
.
setAppCode
(
appEntity
.
getAppCode
());
appQuery
.
setSiteId
(
siteEntity
.
getId
());
appQuery
.
setSiteId
(
siteEntity
.
getId
());
int
count
=
this
.
count
(
appQuery
,
context
);
int
count
=
this
.
count
(
appQuery
,
context
);
if
(
count
==
0
)
{
if
(
count
==
0
)
{
//不存在,可以克隆当前应用到当前站点
//不存在,可以克隆当前应用到当前站点
...
@@ -125,8 +124,11 @@ public class AppServiceImpl extends AbstractCRUDServiceImpl<AppDao, AppEntity, L
...
@@ -125,8 +124,11 @@ public class AppServiceImpl extends AbstractCRUDServiceImpl<AppDao, AppEntity, L
BeanUtils
.
copyProperties
(
appDatasetEntity
,
appDatasetClone
,
BeanUtil
.
getNullPropertyNames
(
appDatasetEntity
));
BeanUtils
.
copyProperties
(
appDatasetEntity
,
appDatasetClone
,
BeanUtil
.
getNullPropertyNames
(
appDatasetEntity
));
appDatasetClone
.
setAppId
(
appClone
.
getId
());
appDatasetClone
.
setAppId
(
appClone
.
getId
());
appDatasetService
.
save
(
appDatasetClone
,
context
);
appDatasetService
.
save
(
appDatasetClone
,
context
);
//查询属性列表
List
<
AppInfoFieldEntity
>
appInfoFieldList
=
appInfoFieldService
.
find
(
new
AppInfoFieldQuery
().
datasetId
(
appDatasetEntity
.
getId
()));
//保存属性列表
//保存属性列表
List
<
AppInfoFieldEntity
>
appInfoFieldList
=
appDatasetEntity
.
getAppInfoFieldList
();
//
List<AppInfoFieldEntity> appInfoFieldList = appDatasetEntity.getAppInfoFieldList();
if
(!
ObjectUtils
.
isEmpty
(
appInfoFieldList
))
{
if
(!
ObjectUtils
.
isEmpty
(
appInfoFieldList
))
{
ArrayList
<
AppInfoFieldEntity
>
cloneList
=
new
ArrayList
<>();
ArrayList
<
AppInfoFieldEntity
>
cloneList
=
new
ArrayList
<>();
for
(
AppInfoFieldEntity
appInfoFieldEntity
:
appInfoFieldList
)
{
for
(
AppInfoFieldEntity
appInfoFieldEntity
:
appInfoFieldList
)
{
...
@@ -160,7 +162,7 @@ public class AppServiceImpl extends AbstractCRUDServiceImpl<AppDao, AppEntity, L
...
@@ -160,7 +162,7 @@ public class AppServiceImpl extends AbstractCRUDServiceImpl<AppDao, AppEntity, L
}
}
//克隆版本历史
//克隆版本历史
List
<
AppVersionEntity
>
appVersionEntities
=
appVersionService
.
find
(
new
AppVersionQuery
().
appId
(
appEntity
.
getId
()));
/*
List<AppVersionEntity> appVersionEntities = appVersionService.find(new AppVersionQuery().appId(appEntity.getId()));
if (!ObjectUtils.isEmpty(appVersionEntities)) {
if (!ObjectUtils.isEmpty(appVersionEntities)) {
List<AppVersionEntity> appVersionCloneList = new ArrayList<>();
List<AppVersionEntity> appVersionCloneList = new ArrayList<>();
for (AppVersionEntity appVersionEntity : appVersionEntities) {
for (AppVersionEntity appVersionEntity : appVersionEntities) {
...
@@ -174,7 +176,7 @@ public class AppServiceImpl extends AbstractCRUDServiceImpl<AppDao, AppEntity, L
...
@@ -174,7 +176,7 @@ public class AppServiceImpl extends AbstractCRUDServiceImpl<AppDao, AppEntity, L
if (!ObjectUtils.isEmpty(appVersionCloneList)) {
if (!ObjectUtils.isEmpty(appVersionCloneList)) {
appVersionService.save(appVersionCloneList, context);
appVersionService.save(appVersionCloneList, context);
}
}
}
}
*/
}
}
}
}
...
...
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