|
|
@ -19,7 +19,7 @@ |
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
|
|
|
<mapper namespace="org.apache.dolphinscheduler.dao.mapper.ProjectParameterMapper"> |
|
|
|
<mapper namespace="org.apache.dolphinscheduler.dao.mapper.ProjectParameterMapper"> |
|
|
|
<sql id="baseSql"> |
|
|
|
<sql id="baseSql"> |
|
|
|
id, param_name, param_value, code, project_code, user_id, create_time, update_time |
|
|
|
id, param_name, param_value, code, project_code, user_id, operator, create_time, update_time |
|
|
|
</sql> |
|
|
|
</sql> |
|
|
|
|
|
|
|
|
|
|
|
<select id="queryByCode" resultType="org.apache.dolphinscheduler.dao.entity.ProjectParameter"> |
|
|
|
<select id="queryByCode" resultType="org.apache.dolphinscheduler.dao.entity.ProjectParameter"> |
|
|
@ -51,11 +51,15 @@ |
|
|
|
|
|
|
|
|
|
|
|
<select id="queryProjectParameterListPaging" resultType="org.apache.dolphinscheduler.dao.entity.ProjectParameter"> |
|
|
|
<select id="queryProjectParameterListPaging" resultType="org.apache.dolphinscheduler.dao.entity.ProjectParameter"> |
|
|
|
select |
|
|
|
select |
|
|
|
<include refid="baseSql"/> |
|
|
|
pp.id, param_name, param_value, code, project_code, user_id, operator, pp.create_time, pp.update_time, |
|
|
|
from t_ds_project_parameter |
|
|
|
u.user_name as create_user, |
|
|
|
|
|
|
|
u2.user_name as modify_user |
|
|
|
|
|
|
|
from t_ds_project_parameter pp |
|
|
|
|
|
|
|
left join t_ds_user u on pp.user_id = u.id |
|
|
|
|
|
|
|
left join t_ds_user u2 on pp.operator = u2.id |
|
|
|
where project_code = #{projectCode} |
|
|
|
where project_code = #{projectCode} |
|
|
|
<if test="projectParameterIds != null and projectParameterIds.size() > 0"> |
|
|
|
<if test="projectParameterIds != null and projectParameterIds.size() > 0"> |
|
|
|
and id in |
|
|
|
and pp.id in |
|
|
|
<foreach item="id" index="index" collection="projectParameterIds" open="(" separator="," close=")"> |
|
|
|
<foreach item="id" index="index" collection="projectParameterIds" open="(" separator="," close=")"> |
|
|
|
#{id} |
|
|
|
#{id} |
|
|
|
</foreach> |
|
|
|
</foreach> |
|
|
@ -65,7 +69,7 @@ |
|
|
|
OR param_value LIKE concat('%', #{searchName}, '%') |
|
|
|
OR param_value LIKE concat('%', #{searchName}, '%') |
|
|
|
) |
|
|
|
) |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
order by update_time desc |
|
|
|
order by pp.update_time desc |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
<select id="queryByProjectCode" resultType="org.apache.dolphinscheduler.dao.entity.ProjectParameter"> |
|
|
|
<select id="queryByProjectCode" resultType="org.apache.dolphinscheduler.dao.entity.ProjectParameter"> |
|
|
|