|
@@ -6,6 +6,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<resultMap type="TBuildFlow" id="TBuildFlowResult">
|
|
<resultMap type="TBuildFlow" id="TBuildFlowResult">
|
|
<result property="id" column="id" />
|
|
<result property="id" column="id" />
|
|
|
|
+ <result property="subTaskId" column="sub_task_id" />
|
|
|
|
+ <result property="errorAppearance" column="error_appearance" />
|
|
<result property="errorCode" column="error_code" />
|
|
<result property="errorCode" column="error_code" />
|
|
<result property="flowEncode" column="flow_encode" />
|
|
<result property="flowEncode" column="flow_encode" />
|
|
<result property="flowTreeJson" column="flow_tree_json" />
|
|
<result property="flowTreeJson" column="flow_tree_json" />
|
|
@@ -16,13 +18,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTBuildFlowVo">
|
|
<sql id="selectTBuildFlowVo">
|
|
- select id, error_code, flow_encode, flow_tree_json, create_by, create_time, update_by, update_time from t_build_flow
|
|
|
|
|
|
+ select id, sub_task_id, error_appearance, error_code, flow_encode, flow_tree_json, create_by, create_time, update_by, update_time from t_build_flow
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectTBuildFlowList" parameterType="TBuildFlow" resultMap="TBuildFlowResult">
|
|
<select id="selectTBuildFlowList" parameterType="TBuildFlow" resultMap="TBuildFlowResult">
|
|
<include refid="selectTBuildFlowVo"/>
|
|
<include refid="selectTBuildFlowVo"/>
|
|
<where>
|
|
<where>
|
|
- <if test="errorCode != null and errorCode != ''"> and error_code = #{errorCode}</if>
|
|
|
|
|
|
+ <if test="errorAppearance != null and errorAppearance != ''"> and error_appearance = #{errorAppearance}</if>
|
|
<if test="flowEncode != null and flowEncode != ''"> and flow_encode = #{flowEncode}</if>
|
|
<if test="flowEncode != null and flowEncode != ''"> and flow_encode = #{flowEncode}</if>
|
|
<if test="flowTreeJson != null and flowTreeJson != ''"> and flow_tree_json = #{flowTreeJson}</if>
|
|
<if test="flowTreeJson != null and flowTreeJson != ''"> and flow_tree_json = #{flowTreeJson}</if>
|
|
</where>
|
|
</where>
|
|
@@ -36,6 +38,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<insert id="insertTBuildFlow" parameterType="TBuildFlow" useGeneratedKeys="true" keyProperty="id">
|
|
<insert id="insertTBuildFlow" parameterType="TBuildFlow" useGeneratedKeys="true" keyProperty="id">
|
|
insert into t_build_flow
|
|
insert into t_build_flow
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
+ <if test="subTaskId != null">sub_task_id,</if>
|
|
|
|
+ <if test="errorAppearance != null">error_appearance,</if>
|
|
<if test="errorCode != null">error_code,</if>
|
|
<if test="errorCode != null">error_code,</if>
|
|
<if test="flowEncode != null">flow_encode,</if>
|
|
<if test="flowEncode != null">flow_encode,</if>
|
|
<if test="flowTreeJson != null">flow_tree_json,</if>
|
|
<if test="flowTreeJson != null">flow_tree_json,</if>
|
|
@@ -45,6 +49,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="updateTime != null">update_time,</if>
|
|
<if test="updateTime != null">update_time,</if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
+ <if test="subTaskId != null">#{subTaskId},</if>
|
|
|
|
+ <if test="errorAppearance != null">#{errorAppearance},</if>
|
|
<if test="errorCode != null">#{errorCode},</if>
|
|
<if test="errorCode != null">#{errorCode},</if>
|
|
<if test="flowEncode != null">#{flowEncode},</if>
|
|
<if test="flowEncode != null">#{flowEncode},</if>
|
|
<if test="flowTreeJson != null">#{flowTreeJson},</if>
|
|
<if test="flowTreeJson != null">#{flowTreeJson},</if>
|
|
@@ -58,6 +64,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<update id="updateTBuildFlow" parameterType="TBuildFlow">
|
|
<update id="updateTBuildFlow" parameterType="TBuildFlow">
|
|
update t_build_flow
|
|
update t_build_flow
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
+ <if test="subTaskId != null">sub_task_id = #{subTaskId},</if>
|
|
|
|
+ <if test="errorAppearance != null">error_appearance = #{errorAppearance},</if>
|
|
<if test="errorCode != null">error_code = #{errorCode},</if>
|
|
<if test="errorCode != null">error_code = #{errorCode},</if>
|
|
<if test="flowEncode != null">flow_encode = #{flowEncode},</if>
|
|
<if test="flowEncode != null">flow_encode = #{flowEncode},</if>
|
|
<if test="flowTreeJson != null">flow_tree_json = #{flowTreeJson},</if>
|
|
<if test="flowTreeJson != null">flow_tree_json = #{flowTreeJson},</if>
|
|
@@ -79,4 +87,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
#{id}
|
|
#{id}
|
|
</foreach>
|
|
</foreach>
|
|
</delete>
|
|
</delete>
|
|
|
|
+
|
|
|
|
+ <select id="getFlow" resultType="Map">
|
|
|
|
+ select
|
|
|
|
+ id,
|
|
|
|
+ sub_task_id subTaskId,
|
|
|
|
+ error_appearance errorAppearance,
|
|
|
|
+ error_code errorCode,
|
|
|
|
+ flow_encode flowEncode,
|
|
|
|
+ flow_tree_json flowTreeJson
|
|
|
|
+ from
|
|
|
|
+ t_build_flow tbf where tbf.sub_task_id = #{subTaskId}
|
|
|
|
+ </select>
|
|
</mapper>
|
|
</mapper>
|