Commit d133cbdf authored by mcb's avatar mcb

Merge branch 'dmp_dev' of http://gitlab.ioubuy.cn/yaobenzhang/jz-dmp-service into dmp_dev

parents 64d76dcb f18e3310
...@@ -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.getRoleType(), role.getRemark()); rolePermissMap.put(role.getRoleCode(), role.getRemark());
} }
SSOUserInfo ssoUserInfo = new SSOUserInfo(); SSOUserInfo ssoUserInfo = new SSOUserInfo();
ssoUserInfo.setUserName(dmpMember.getUsername()); ssoUserInfo.setUserName(dmpMember.getUsername());
......
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 {
/** /**
......
...@@ -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;
} }
...@@ -29,8 +29,8 @@ public class DmpProjectConfigEngine implements Serializable{ ...@@ -29,8 +29,8 @@ public class DmpProjectConfigEngine implements Serializable{
/** /**
* 项目主键 * 项目主键
*/ */
@ApiModelProperty(value = "项目主键") @ApiModelProperty(value = "项目配置主键")
private Integer projectId; private Integer configId;
/** /**
* 引擎主键 * 引擎主键
...@@ -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 getProjectId() { public Integer getConfigId() {
return projectId; return configId;
} }
public void setProjectId(Integer projectId) { public void setConfigId(Integer configId) {
this.projectId = projectId; this.configId = configId;
} }
public Integer getEngineId() { public Integer getEngineId() {
......
...@@ -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(dmpProjectConfigInfo, httpRequest);
baseBeanResponse.setCode(StatuConstant.SUCCESS_CODE); baseBeanResponse.setCode(StatuConstant.SUCCESS_CODE);
baseBeanResponse.setMessage("新增成功"); baseBeanResponse.setMessage("新增成功");
......
...@@ -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);
//保存填写的私有引擎参数 //保存填写的私有引擎参数
......
# 测试环境配置 # 测试环境配置
server: server:
port: 7183 port: 7181
#contextPath: /resource #contextPath: /resource
management: management:
......
...@@ -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>
<!-- 根据主键查询计算引擎表 --> <!-- 根据主键查询计算引擎表 -->
......
...@@ -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="projectId" jdbcType="INTEGER" /> <result column="config_id" property="configId" 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="projectId != null" > <if test="configId != null" >
AND project_id = #{projectId,jdbcType=INTEGER} AND config_id = #{configId,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="projectId != null" > <if test="configId != null" >
AND project_id = #{projectId,jdbcType=INTEGER} AND config_id = #{configId,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}, #{projectId,jdbcType=INTEGER}, #{engineId,jdbcType=INTEGER}, #{remark,jdbcType=VARCHAR}, #{dataStatus,jdbcType=CHAR}, #{configEngineId,jdbcType=INTEGER}, #{configId,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.projectId,jdbcType=INTEGER}, #{item.engineId,jdbcType=INTEGER}, #{item.remark,jdbcType=VARCHAR}, #{item.dataStatus,jdbcType=CHAR}, #{item.configEngineId,jdbcType=INTEGER}, #{item.configId,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="projectId != null" > <if test="configId != 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="projectId != null" > <if test="configId != null" >
#{projectId,jdbcType=INTEGER}, #{configId,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 = #{projectId,jdbcType=INTEGER}, config_id = #{configId,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="projectId != null" > <if test="configId != null" >
project_id = #{projectId,jdbcType=INTEGER}, config_id = #{configId,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="projectId != null" > <if test="configId != null" >
AND project_id = #{projectId,jdbcType=INTEGER} AND config_id = #{configId,jdbcType=INTEGER}
</if> </if>
<if test="engineId != null" > <if test="engineId != null" >
AND engine_id = #{engineId,jdbcType=INTEGER} AND engine_id = #{engineId,jdbcType=INTEGER}
......
...@@ -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}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment