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
d133cbdf
Commit
d133cbdf
authored
Mar 09, 2021
by
mcb
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dmp_dev' of
http://gitlab.ioubuy.cn/yaobenzhang/jz-dmp-service
into dmp_dev
parents
64d76dcb
f18e3310
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
48 additions
and
30 deletions
+48
-30
AzkabanApiUtils2.java
src/main/java/com/jz/common/utils/AzkabanApiUtils2.java
+1
-1
DmpProjectConfigInfoDto.java
...s/controller/projconfig/bean/DmpProjectConfigInfoDto.java
+2
-0
DmpMemberDto.java
.../com/jz/dmp/modules/controller/sys/bean/DmpMemberDto.java
+6
-0
DmpProjectConfigEngine.java
...java/com/jz/dmp/modules/model/DmpProjectConfigEngine.java
+6
-6
DmpProjectServiceImpl.java
...om/jz/dmp/modules/service/impl/DmpProjectServiceImpl.java
+6
-1
DmpProjectConfigInfoServiceImpl.java
...vice/projconfig/impl/DmpProjectConfigInfoServiceImpl.java
+5
-0
application-test.yml
src/main/resources/application-test.yml
+1
-1
DmpComputEngineMapper.xml
...ain/resources/mapper/projconfig/DmpComputEngineMapper.xml
+1
-1
DmpProjectConfigEngineMapper.xml
...ources/mapper/projconfig/DmpProjectConfigEngineMapper.xml
+19
-19
DmpMemberMapper.xml
src/main/resources/mapper/sys/DmpMemberMapper.xml
+1
-1
No files found.
src/main/java/com/jz/common/utils/AzkabanApiUtils2.java
View file @
d133cbdf
...
@@ -142,7 +142,7 @@ public class AzkabanApiUtils2 {
...
@@ -142,7 +142,7 @@ public class AzkabanApiUtils2 {
List
<
DmpRole
>
memberProjectRoles
=
dmpMember
.
getMemberProjectRoleList
();
List
<
DmpRole
>
memberProjectRoles
=
dmpMember
.
getMemberProjectRoleList
();
for
(
DmpRole
role
:
memberProjectRoles
)
{
for
(
DmpRole
role
:
memberProjectRoles
)
{
rolePermissMap
.
put
(
role
.
getRole
Typ
e
(),
role
.
getRemark
());
rolePermissMap
.
put
(
role
.
getRole
Cod
e
(),
role
.
getRemark
());
}
}
SSOUserInfo
ssoUserInfo
=
new
SSOUserInfo
();
SSOUserInfo
ssoUserInfo
=
new
SSOUserInfo
();
ssoUserInfo
.
setUserName
(
dmpMember
.
getUsername
());
ssoUserInfo
.
setUserName
(
dmpMember
.
getUsername
());
...
...
src/main/java/com/jz/dmp/modules/controller/projconfig/bean/DmpProjectConfigInfoDto.java
View file @
d133cbdf
package
com
.
jz
.
dmp
.
modules
.
controller
.
projconfig
.
bean
;
package
com
.
jz
.
dmp
.
modules
.
controller
.
projconfig
.
bean
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.jz.dmp.modules.model.DmpProjectConfigInfo
;
import
com.jz.dmp.modules.model.DmpProjectConfigInfo
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
...
@@ -16,6 +17,7 @@ import io.swagger.annotations.ApiModelProperty;
...
@@ -16,6 +17,7 @@ import io.swagger.annotations.ApiModelProperty;
*
*
*/
*/
@ApiModel
(
value
=
"项目配置表Dto"
,
description
=
"项目配置表Dto"
)
@ApiModel
(
value
=
"项目配置表Dto"
,
description
=
"项目配置表Dto"
)
@JsonIgnoreProperties
(
value
=
{
"handler"
})
public
class
DmpProjectConfigInfoDto
extends
DmpProjectConfigInfo
{
public
class
DmpProjectConfigInfoDto
extends
DmpProjectConfigInfo
{
/**
/**
...
...
src/main/java/com/jz/dmp/modules/controller/sys/bean/DmpMemberDto.java
View file @
d133cbdf
...
@@ -27,5 +27,11 @@ public class DmpMemberDto extends DmpMember implements Serializable {
...
@@ -27,5 +27,11 @@ public class DmpMemberDto extends DmpMember implements Serializable {
@ApiModelProperty
(
value
=
"项目角色列表"
)
@ApiModelProperty
(
value
=
"项目角色列表"
)
private
List
<
String
>
roles
;
private
List
<
String
>
roles
;
/**
* 用于前端辅助字段
*/
@ApiModelProperty
(
value
=
"用于前端辅助字段"
)
private
Integer
webAssistFlag
=
0
;
}
}
src/main/java/com/jz/dmp/modules/model/DmpProjectConfigEngine.java
View file @
d133cbdf
...
@@ -29,8 +29,8 @@ public class DmpProjectConfigEngine implements Serializable{
...
@@ -29,8 +29,8 @@ public class DmpProjectConfigEngine implements Serializable{
/**
/**
* 项目主键
* 项目主键
*/
*/
@ApiModelProperty
(
value
=
"项目主键"
)
@ApiModelProperty
(
value
=
"项目
配置
主键"
)
private
Integer
project
Id
;
private
Integer
config
Id
;
/**
/**
* 引擎主键
* 引擎主键
...
@@ -87,12 +87,12 @@ public class DmpProjectConfigEngine implements Serializable{
...
@@ -87,12 +87,12 @@ public class DmpProjectConfigEngine implements Serializable{
this
.
configEngineId
=
configEngineId
;
this
.
configEngineId
=
configEngineId
;
}
}
public
Integer
get
Project
Id
()
{
public
Integer
get
Config
Id
()
{
return
project
Id
;
return
config
Id
;
}
}
public
void
set
ProjectId
(
Integer
project
Id
)
{
public
void
set
ConfigId
(
Integer
config
Id
)
{
this
.
projectId
=
project
Id
;
this
.
configId
=
config
Id
;
}
}
public
Integer
getEngineId
()
{
public
Integer
getEngineId
()
{
...
...
src/main/java/com/jz/dmp/modules/service/impl/DmpProjectServiceImpl.java
View file @
d133cbdf
...
@@ -30,6 +30,7 @@ import com.jz.dmp.modules.controller.bean.MyDmpProjectConverter;
...
@@ -30,6 +30,7 @@ import com.jz.dmp.modules.controller.bean.MyDmpProjectConverter;
import
com.jz.dmp.modules.dao.DmpProjectDao
;
import
com.jz.dmp.modules.dao.DmpProjectDao
;
import
com.jz.dmp.modules.model.DmpMember
;
import
com.jz.dmp.modules.model.DmpMember
;
import
com.jz.dmp.modules.model.DmpProject
;
import
com.jz.dmp.modules.model.DmpProject
;
import
com.jz.dmp.modules.model.DmpProjectConfigInfo
;
import
com.jz.dmp.modules.model.DmpProjectSystemInfo
;
import
com.jz.dmp.modules.model.DmpProjectSystemInfo
;
import
com.jz.dmp.modules.service.DmpProjectService
;
import
com.jz.dmp.modules.service.DmpProjectService
;
import
com.jz.dmp.modules.service.projconfig.DmpProjectConfigInfoService
;
import
com.jz.dmp.modules.service.projconfig.DmpProjectConfigInfoService
;
...
@@ -344,8 +345,12 @@ public class DmpProjectServiceImpl extends BaseService implements DmpProjectServ
...
@@ -344,8 +345,12 @@ public class DmpProjectServiceImpl extends BaseService implements DmpProjectServ
dmpProjectDao
.
insert
(
dmpProject
);
dmpProjectDao
.
insert
(
dmpProject
);
//设置projectId
DmpProjectConfigInfo
dmpProjectConfigInfo
=
dmpProject
.
getDmpProjectConfigInfo
();
dmpProjectConfigInfo
.
setProjectId
(
dmpProject
.
getId
());
//保存项目配置信息
//保存项目配置信息
dmpProjectConfigInfoService
.
addOrEdit
(
dmpProject
.
getDmpProjectConfigInfo
()
,
httpRequest
);
dmpProjectConfigInfoService
.
addOrEdit
(
dmpProject
ConfigInfo
,
httpRequest
);
baseBeanResponse
.
setCode
(
StatuConstant
.
SUCCESS_CODE
);
baseBeanResponse
.
setCode
(
StatuConstant
.
SUCCESS_CODE
);
baseBeanResponse
.
setMessage
(
"新增成功"
);
baseBeanResponse
.
setMessage
(
"新增成功"
);
...
...
src/main/java/com/jz/dmp/modules/service/projconfig/impl/DmpProjectConfigInfoServiceImpl.java
View file @
d133cbdf
...
@@ -268,6 +268,11 @@ public class DmpProjectConfigInfoServiceImpl extends BaseService implements DmpP
...
@@ -268,6 +268,11 @@ public class DmpProjectConfigInfoServiceImpl extends BaseService implements DmpP
//保存选择的引擎
//保存选择的引擎
List
<
DmpProjectConfigEngine
>
dmpProjectConfigEngines
=
dmpProjectConfigInfo
.
getDmpProjectConfigEngines
();
List
<
DmpProjectConfigEngine
>
dmpProjectConfigEngines
=
dmpProjectConfigInfo
.
getDmpProjectConfigEngines
();
dmpProjectConfigEngines
=
dmpProjectConfigEngines
.
stream
().
map
(
x
->{
x
.
setConfigId
(
dmpProjectConfigInfo
.
getProjectConfigId
());
return
x
;
}).
collect
(
Collectors
.
toList
());
dmpProjectConfigEngineMapper
.
insertBatch
(
dmpProjectConfigEngines
);
dmpProjectConfigEngineMapper
.
insertBatch
(
dmpProjectConfigEngines
);
//保存填写的私有引擎参数
//保存填写的私有引擎参数
...
...
src/main/resources/application-test.yml
View file @
d133cbdf
# 测试环境配置
# 测试环境配置
server
:
server
:
port
:
718
3
port
:
718
1
#contextPath: /resource
#contextPath: /resource
management
:
management
:
...
...
src/main/resources/mapper/projconfig/DmpComputEngineMapper.xml
View file @
d133cbdf
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
<include
refid=
"param_Column_List"
/>
<include
refid=
"param_Column_List"
/>
from dmp_comput_engine_param
from dmp_comput_engine_param
where engine_id = #{engineId,jdbcType=INTEGER}
where engine_id = #{engineId,jdbcType=INTEGER}
AND
param_type='0' AND
data_status='1'
AND data_status='1'
</select>
</select>
<!-- 根据主键查询计算引擎表 -->
<!-- 根据主键查询计算引擎表 -->
...
...
src/main/resources/mapper/projconfig/DmpProjectConfigEngineMapper.xml
View file @
d133cbdf
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<mapper
namespace=
"com.jz.dmp.modules.dao.projconfig.DmpProjectConfigEngineMapper"
>
<mapper
namespace=
"com.jz.dmp.modules.dao.projconfig.DmpProjectConfigEngineMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.jz.dmp.modules.model.DmpProjectConfigEngine"
>
<resultMap
id=
"BaseResultMap"
type=
"com.jz.dmp.modules.model.DmpProjectConfigEngine"
>
<result
column=
"config_engine_id"
property=
"configEngineId"
jdbcType=
"INTEGER"
/>
<result
column=
"config_engine_id"
property=
"configEngineId"
jdbcType=
"INTEGER"
/>
<result
column=
"
project_id"
property=
"project
Id"
jdbcType=
"INTEGER"
/>
<result
column=
"
config_id"
property=
"config
Id"
jdbcType=
"INTEGER"
/>
<result
column=
"engine_id"
property=
"engineId"
jdbcType=
"INTEGER"
/>
<result
column=
"engine_id"
property=
"engineId"
jdbcType=
"INTEGER"
/>
<result
column=
"remark"
property=
"remark"
jdbcType=
"VARCHAR"
/>
<result
column=
"remark"
property=
"remark"
jdbcType=
"VARCHAR"
/>
<result
column=
"data_status"
property=
"dataStatus"
jdbcType=
"CHAR"
/>
<result
column=
"data_status"
property=
"dataStatus"
jdbcType=
"CHAR"
/>
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
config_engine_id,
project
_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
</sql>
</sql>
...
@@ -58,8 +58,8 @@
...
@@ -58,8 +58,8 @@
<if
test=
"configEngineId != null"
>
<if
test=
"configEngineId != null"
>
AND config_engine_id = #{configEngineId,jdbcType=INTEGER}
AND config_engine_id = #{configEngineId,jdbcType=INTEGER}
</if>
</if>
<if
test=
"
project
Id != null"
>
<if
test=
"
config
Id != null"
>
AND
project_id = #{project
Id,jdbcType=INTEGER}
AND
config_id = #{config
Id,jdbcType=INTEGER}
</if>
</if>
<if
test=
"engineId != null"
>
<if
test=
"engineId != null"
>
AND engine_id = #{engineId,jdbcType=INTEGER}
AND engine_id = #{engineId,jdbcType=INTEGER}
...
@@ -102,8 +102,8 @@
...
@@ -102,8 +102,8 @@
<if
test=
"configEngineId != null"
>
<if
test=
"configEngineId != null"
>
AND config_engine_id = #{configEngineId,jdbcType=INTEGER}
AND config_engine_id = #{configEngineId,jdbcType=INTEGER}
</if>
</if>
<if
test=
"
project
Id != null"
>
<if
test=
"
config
Id != null"
>
AND
project_id = #{project
Id,jdbcType=INTEGER}
AND
config_id = #{config
Id,jdbcType=INTEGER}
</if>
</if>
<if
test=
"engineId != null"
>
<if
test=
"engineId != null"
>
AND engine_id = #{engineId,jdbcType=INTEGER}
AND engine_id = #{engineId,jdbcType=INTEGER}
...
@@ -139,11 +139,11 @@
...
@@ -139,11 +139,11 @@
<!-- 插入项目配置计算引擎关系表 -->
<!-- 插入项目配置计算引擎关系表 -->
<insert
id=
"insert"
parameterType=
"com.jz.dmp.modules.model.DmpProjectConfigEngine"
>
<insert
id=
"insert"
parameterType=
"com.jz.dmp.modules.model.DmpProjectConfigEngine"
>
insert into dmp_project_config_engine (
insert into dmp_project_config_engine (
config_engine_id,
project
_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
)
)
values (
values (
#{configEngineId,jdbcType=INTEGER}, #{
project
Id,jdbcType=INTEGER}, #{engineId,jdbcType=INTEGER}, #{remark,jdbcType=VARCHAR}, #{dataStatus,jdbcType=CHAR},
#{configEngineId,jdbcType=INTEGER}, #{
config
Id,jdbcType=INTEGER}, #{engineId,jdbcType=INTEGER}, #{remark,jdbcType=VARCHAR}, #{dataStatus,jdbcType=CHAR},
#{createUserId,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateUserId,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}
#{createUserId,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateUserId,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}
)
)
</insert>
</insert>
...
@@ -151,13 +151,13 @@
...
@@ -151,13 +151,13 @@
<!-- 批量新增项目配置计算引擎关系表 -->
<!-- 批量新增项目配置计算引擎关系表 -->
<insert
id=
"insertBatch"
parameterType=
"com.jz.dmp.modules.model.DmpProjectConfigEngine"
>
<insert
id=
"insertBatch"
parameterType=
"com.jz.dmp.modules.model.DmpProjectConfigEngine"
>
insert into dmp_project_config_engine (
insert into dmp_project_config_engine (
config_engine_id,
project
_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
)
)
values
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(
(
#{item.configEngineId,jdbcType=INTEGER}, #{item.
project
Id,jdbcType=INTEGER}, #{item.engineId,jdbcType=INTEGER}, #{item.remark,jdbcType=VARCHAR}, #{item.dataStatus,jdbcType=CHAR},
#{item.configEngineId,jdbcType=INTEGER}, #{item.
config
Id,jdbcType=INTEGER}, #{item.engineId,jdbcType=INTEGER}, #{item.remark,jdbcType=VARCHAR}, #{item.dataStatus,jdbcType=CHAR},
#{item.createUserId,jdbcType=INTEGER}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateUserId,jdbcType=INTEGER}, #{item.updateTime,jdbcType=TIMESTAMP}
#{item.createUserId,jdbcType=INTEGER}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateUserId,jdbcType=INTEGER}, #{item.updateTime,jdbcType=TIMESTAMP}
)
)
</foreach>
</foreach>
...
@@ -170,8 +170,8 @@
...
@@ -170,8 +170,8 @@
<if
test=
"configEngineId != null"
>
<if
test=
"configEngineId != null"
>
config_engine_id,
config_engine_id,
</if>
</if>
<if
test=
"
project
Id != null"
>
<if
test=
"
config
Id != null"
>
project
_id,
config
_id,
</if>
</if>
<if
test=
"engineId != null"
>
<if
test=
"engineId != null"
>
engine_id,
engine_id,
...
@@ -199,8 +199,8 @@
...
@@ -199,8 +199,8 @@
<if
test=
"configEngineId != null"
>
<if
test=
"configEngineId != null"
>
#{configEngineId,jdbcType=INTEGER},
#{configEngineId,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
project
Id != null"
>
<if
test=
"
config
Id != null"
>
#{
project
Id,jdbcType=INTEGER},
#{
config
Id,jdbcType=INTEGER},
</if>
</if>
<if
test=
"engineId != null"
>
<if
test=
"engineId != null"
>
#{engineId,jdbcType=INTEGER},
#{engineId,jdbcType=INTEGER},
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
<update
id=
"updateByPrimaryKey"
parameterType=
"com.jz.dmp.modules.model.DmpProjectConfigEngine"
>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.jz.dmp.modules.model.DmpProjectConfigEngine"
>
update dmp_project_config_engine set
update dmp_project_config_engine set
config_engine_id = #{configEngineId,jdbcType=INTEGER},
config_engine_id = #{configEngineId,jdbcType=INTEGER},
project_id = #{project
Id,jdbcType=INTEGER},
config_id = #{config
Id,jdbcType=INTEGER},
engine_id = #{engineId,jdbcType=INTEGER},
engine_id = #{engineId,jdbcType=INTEGER},
remark = #{remark,jdbcType=VARCHAR},
remark = #{remark,jdbcType=VARCHAR},
data_status = #{dataStatus,jdbcType=CHAR},
data_status = #{dataStatus,jdbcType=CHAR},
...
@@ -248,8 +248,8 @@
...
@@ -248,8 +248,8 @@
<if
test=
"configEngineId != null"
>
<if
test=
"configEngineId != null"
>
config_engine_id = #{configEngineId,jdbcType=INTEGER},
config_engine_id = #{configEngineId,jdbcType=INTEGER},
</if>
</if>
<if
test=
"
project
Id != null"
>
<if
test=
"
config
Id != null"
>
project_id = #{project
Id,jdbcType=INTEGER},
config_id = #{config
Id,jdbcType=INTEGER},
</if>
</if>
<if
test=
"engineId != null"
>
<if
test=
"engineId != null"
>
engine_id = #{engineId,jdbcType=INTEGER},
engine_id = #{engineId,jdbcType=INTEGER},
...
@@ -285,8 +285,8 @@
...
@@ -285,8 +285,8 @@
<if
test=
"configEngineId != null"
>
<if
test=
"configEngineId != null"
>
AND config_engine_id = #{configEngineId,jdbcType=INTEGER}
AND config_engine_id = #{configEngineId,jdbcType=INTEGER}
</if>
</if>
<if
test=
"
project
Id != null"
>
<if
test=
"
config
Id != null"
>
AND
project_id = #{project
Id,jdbcType=INTEGER}
AND
config_id = #{config
Id,jdbcType=INTEGER}
</if>
</if>
<if
test=
"engineId != null"
>
<if
test=
"engineId != null"
>
AND engine_id = #{engineId,jdbcType=INTEGER}
AND engine_id = #{engineId,jdbcType=INTEGER}
...
...
src/main/resources/mapper/sys/DmpMemberMapper.xml
View file @
d133cbdf
...
@@ -295,7 +295,7 @@
...
@@ -295,7 +295,7 @@
AND user_password = #{userPassword,jdbcType=VARCHAR}
AND user_password = #{userPassword,jdbcType=VARCHAR}
</if>
</if>
<if
test=
"realName != null"
>
<if
test=
"realName != null"
>
AND real_name
= #{realName,jdbcType=VARCHAR}
AND real_name
LIKE CONCAT('%',#{realName,jdbcType=VARCHAR},'%')
</if>
</if>
<if
test=
"userPhone != null"
>
<if
test=
"userPhone != null"
>
AND user_phone = #{userPhone,jdbcType=VARCHAR}
AND user_phone = #{userPhone,jdbcType=VARCHAR}
...
...
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