Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jz-dmp-service
Project
Project
Details
Activity
Releases
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
姚本章
jz-dmp-service
Commits
84cb5794
Commit
84cb5794
authored
Mar 09, 2021
by
sml
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码提交
parent
0ee7d414
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
17 deletions
+25
-17
DmpProjectConfigInfoServiceImpl.java
...vice/projconfig/impl/DmpProjectConfigInfoServiceImpl.java
+21
-13
DmpProjectConfigEngineMapper.xml
...ources/mapper/projconfig/DmpProjectConfigEngineMapper.xml
+2
-2
DmpProjectConfigInfoMapper.xml
...esources/mapper/projconfig/DmpProjectConfigInfoMapper.xml
+2
-2
No files found.
src/main/java/com/jz/dmp/modules/service/projconfig/impl/DmpProjectConfigInfoServiceImpl.java
View file @
84cb5794
...
@@ -268,19 +268,27 @@ public class DmpProjectConfigInfoServiceImpl extends BaseService implements DmpP
...
@@ -268,19 +268,27 @@ public class DmpProjectConfigInfoServiceImpl extends BaseService implements DmpP
//保存选择的引擎
//保存选择的引擎
List
<
DmpProjectConfigEngine
>
dmpProjectConfigEngines
=
dmpProjectConfigInfo
.
getDmpProjectConfigEngines
();
List
<
DmpProjectConfigEngine
>
dmpProjectConfigEngines
=
dmpProjectConfigInfo
.
getDmpProjectConfigEngines
();
dmpProjectConfigEngines
=
dmpProjectConfigEngines
.
stream
().
map
(
x
->{
for
(
DmpProjectConfigEngine
dmpProjectConfigEngine
:
dmpProjectConfigEngines
)
{
x
.
setConfigId
(
dmpProjectConfigInfo
.
getProjectConfigId
());
return
x
;
dmpProjectConfigEngine
.
setConfigId
(
dmpProjectConfigInfo
.
getProjectConfigId
());
}).
collect
(
Collectors
.
toList
());
dmpProjectConfigEngine
.
setDataStatus
(
"1"
);
dmpProjectConfigEngine
.
setCreateUserId
(
getHttpRequestUserId
(
httpRequest
));
dmpProjectConfigEngineMapper
.
insertBatch
(
dmpProjectConfigEngines
);
dmpProjectConfigEngine
.
setCreateTime
(
new
Date
());
//保存填写的私有引擎参数
dmpProjectConfigEngineMapper
.
insert
(
dmpProjectConfigEngine
);
List
<
DmpProjectEngineParam
>
dmpProjectEngineParams
=
dmpProjectConfigEngines
.
stream
()
.
flatMap
(
x
->{
//保存填写的私有引擎参数
return
x
.
getDmpProjectEngineParams
().
stream
();
List
<
DmpProjectEngineParam
>
dmpProjectEngineParams
=
dmpProjectConfigEngine
.
getDmpProjectEngineParams
();
}).
collect
(
Collectors
.
toList
());
dmpProjectEngineParams
=
dmpProjectEngineParams
.
stream
().
map
(
x
->{
dmpProjectEngineParamMapper
.
insertBatch
(
dmpProjectEngineParams
);
x
.
setConfigEngineId
(
dmpProjectConfigEngine
.
getConfigEngineId
());
x
.
setDataStatus
(
"1"
);
x
.
setCreateUserId
(
getHttpRequestUserId
(
httpRequest
));
x
.
setCreateTime
(
new
Date
());
return
x
;
}).
collect
(
Collectors
.
toList
());
dmpProjectEngineParamMapper
.
insertBatch
(
dmpProjectEngineParams
);
}
baseBeanResponse
.
setCode
(
StatuConstant
.
SUCCESS_CODE
);
baseBeanResponse
.
setCode
(
StatuConstant
.
SUCCESS_CODE
);
baseBeanResponse
.
setMessage
(
"新增成功"
);
baseBeanResponse
.
setMessage
(
"新增成功"
);
...
...
src/main/resources/mapper/projconfig/DmpProjectConfigEngineMapper.xml
View file @
84cb5794
...
@@ -137,7 +137,7 @@
...
@@ -137,7 +137,7 @@
</update>
</update>
<!-- 插入项目配置计算引擎关系表 -->
<!-- 插入项目配置计算引擎关系表 -->
<insert
id=
"insert"
parameterType=
"com.jz.dmp.modules.model.DmpProjectConfigEngine"
>
<insert
id=
"insert"
parameterType=
"com.jz.dmp.modules.model.DmpProjectConfigEngine"
useGeneratedKeys=
"true"
keyProperty=
"configEngineId"
>
insert into dmp_project_config_engine (
insert into dmp_project_config_engine (
config_engine_id, config_id, engine_id, remark, data_status,
config_engine_id, config_id, engine_id, remark, data_status,
create_user_id, create_time, update_user_id, update_time
create_user_id, create_time, update_user_id, update_time
...
@@ -164,7 +164,7 @@
...
@@ -164,7 +164,7 @@
</insert>
</insert>
<!-- 选择性插入项目配置计算引擎关系表 -->
<!-- 选择性插入项目配置计算引擎关系表 -->
<insert
id=
"insertSelective"
parameterType=
"com.jz.dmp.modules.model.DmpProjectConfigEngine"
>
<insert
id=
"insertSelective"
parameterType=
"com.jz.dmp.modules.model.DmpProjectConfigEngine"
useGeneratedKeys=
"true"
keyProperty=
"configEngineId"
>
insert into dmp_project_config_engine
insert into dmp_project_config_engine
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"configEngineId != null"
>
<if
test=
"configEngineId != null"
>
...
...
src/main/resources/mapper/projconfig/DmpProjectConfigInfoMapper.xml
View file @
84cb5794
...
@@ -185,7 +185,7 @@
...
@@ -185,7 +185,7 @@
</update>
</update>
<!-- 插入项目配置表 -->
<!-- 插入项目配置表 -->
<insert
id=
"insert"
parameterType=
"com.jz.dmp.modules.model.DmpProjectConfigInfo"
>
<insert
id=
"insert"
parameterType=
"com.jz.dmp.modules.model.DmpProjectConfigInfo"
useGeneratedKeys=
"true"
keyProperty=
"projectConfigId"
>
insert into dmp_project_config_info (
insert into dmp_project_config_info (
project_config_id, project_id, remark, data_status, create_user_id,
project_config_id, project_id, remark, data_status, create_user_id,
create_time, update_user_id, update_time
create_time, update_user_id, update_time
...
@@ -212,7 +212,7 @@
...
@@ -212,7 +212,7 @@
</insert>
</insert>
<!-- 选择性插入项目配置表 -->
<!-- 选择性插入项目配置表 -->
<insert
id=
"insertSelective"
parameterType=
"com.jz.dmp.modules.model.DmpProjectConfigInfo"
>
<insert
id=
"insertSelective"
parameterType=
"com.jz.dmp.modules.model.DmpProjectConfigInfo"
useGeneratedKeys=
"true"
keyProperty=
"projectConfigId"
>
insert into dmp_project_config_info
insert into dmp_project_config_info
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"projectConfigId != null"
>
<if
test=
"projectConfigId != null"
>
...
...
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