|
|
|
@ -19,7 +19,7 @@
|
|
|
|
|
<!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"> |
|
|
|
|
<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> |
|
|
|
|
|
|
|
|
|
<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 |
|
|
|
|
<include refid="baseSql"/> |
|
|
|
|
from t_ds_project_parameter |
|
|
|
|
pp.id, param_name, param_value, code, project_code, user_id, operator, pp.create_time, pp.update_time, |
|
|
|
|
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} |
|
|
|
|
<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=")"> |
|
|
|
|
#{id} |
|
|
|
|
</foreach> |
|
|
|
@ -65,7 +69,7 @@
|
|
|
|
|
OR param_value LIKE concat('%', #{searchName}, '%') |
|
|
|
|
) |
|
|
|
|
</if> |
|
|
|
|
order by update_time desc |
|
|
|
|
order by pp.update_time desc |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="queryByProjectCode" resultType="org.apache.dolphinscheduler.dao.entity.ProjectParameter"> |
|
|
|
|