Toggle navigation
Toggle navigation
This project
Loading...
Sign in
monitor_v3
/
anji-plus-report
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
zhichao
3 years ago
Commit
144a192c3713b26cee098fae6527437a47cb7036
1 parent
351970e1
master-mj-joke
...
master-500-dev
master-500-dev-lushangqing
master-500-dev-lzc
master-mj
导入导出
1.【无】导入导出逻辑修改
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
report-core/src/main/java/com/anjiplus/template/gaea/business/modules/export/service/impl/ExportServiceImpl.java
report-core/src/main/java/com/anjiplus/template/gaea/business/modules/export/service/impl/ExportServiceImpl.java
View file @
144a192
...
...
@@ -162,6 +162,7 @@ public class ExportServiceImpl implements ExportService {
}
List
<
String
>
reportCodeList
=
reportList
.
stream
().
map
(
Report:
:
getReportCode
).
collect
(
Collectors
.
toList
());
reportService
.
delete
(
new
LambdaQueryWrapper
<
Report
>().
in
(
Report:
:
getReportCode
,
reportCodeList
));
reportList
.
forEach
(
item
->{
item
.
setId
(
null
);});
reportService
.
insertBatch
(
reportList
);
//新增大屏配置
...
...
@@ -169,6 +170,7 @@ public class ExportServiceImpl implements ExportService {
reportList
.
stream
().
map
(
Report:
:
getReportDashboardList
).
distinct
().
forEach
(
reportDashboardList:
:
addAll
);
if
(
reportDashboardList
.
size
()
!=
0
)
{
reportDashboardService
.
delete
(
new
LambdaQueryWrapper
<
ReportDashboard
>().
in
(
ReportDashboard:
:
getReportCode
,
reportCodeList
));
reportDashboardList
.
forEach
(
item
->{
item
.
setId
(
null
);});
reportDashboardService
.
insertBatch
(
reportDashboardList
);
}
...
...
@@ -179,6 +181,7 @@ public class ExportServiceImpl implements ExportService {
return
;
}
reportDashboardWidgetService
.
delete
(
new
LambdaQueryWrapper
<
ReportDashboardWidget
>().
in
(
ReportDashboardWidget:
:
getReportCode
,
reportCodeList
));
reportDashboardWidgetList
.
forEach
(
item
->{
item
.
setId
(
null
);});
reportDashboardWidgetService
.
insertBatch
(
reportDashboardWidgetList
);
//新增数据集
...
...
@@ -192,6 +195,7 @@ public class ExportServiceImpl implements ExportService {
dataSet
.
setSourceCode
(
dataSet
.
getSourceCodeChange
());
}
}
dataSetList
.
forEach
(
item
->{
item
.
setId
(
null
);});
dataSetService
.
insertBatch
(
dataSetList
);
}
...
...
@@ -200,6 +204,7 @@ public class ExportServiceImpl implements ExportService {
dataSetList
.
stream
().
map
(
DataSet:
:
getDataSetParamList
).
distinct
().
forEach
(
dataSetParamList:
:
addAll
);
if
(
dataSetParamList
.
size
()
!=
0
)
{
dataSetParamService
.
delete
(
new
LambdaQueryWrapper
<
DataSetParam
>().
in
(
DataSetParam:
:
getSetCode
,
setCodeList
));
dataSetParamList
.
forEach
(
item
->{
item
.
setId
(
null
);});
dataSetParamService
.
insertBatch
(
dataSetParamList
);
}
...
...
@@ -208,6 +213,7 @@ public class ExportServiceImpl implements ExportService {
dataSetList
.
stream
().
map
(
DataSet:
:
getDataSetTransformList
).
distinct
().
forEach
(
dataSetTransformList:
:
addAll
);
if
(
dataSetTransformList
.
size
()
!=
0
)
{
dataSetTransformService
.
delete
(
new
LambdaQueryWrapper
<
DataSetTransform
>().
in
(
DataSetTransform:
:
getSetCode
,
setCodeList
));
dataSetTransformList
.
forEach
(
item
->{
item
.
setId
(
null
);});
dataSetTransformService
.
insertBatch
(
dataSetTransformList
);
}
}
...
...
Please
register
or
login
to post a comment