|
@@ -9,25 +9,33 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="flowId" column="flow_id" />
|
|
|
<result property="eventCode" column="event_code" />
|
|
|
<result property="accessUrl" column="access_url" />
|
|
|
+ <result property="accessMethod" column="access_method" />
|
|
|
<result property="accessParam" column="access_param" />
|
|
|
+ <result property="accessType" column="access_type" />
|
|
|
<result property="callbackUrl" column="callback_url" />
|
|
|
+ <result property="callbackMothed" column="callback_mothed" />
|
|
|
<result property="callbackParam" column="callback_param" />
|
|
|
+ <result property="callbackType" column="callback_type" />
|
|
|
<result property="createTime" column="create_time" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFlowConfigEventVo">
|
|
|
- select id, flow_id, event_code, access_url, access_param, callback_url, callback_param, create_time from flow_config_event
|
|
|
+ select id, flow_id, event_code, access_url, access_method, access_param, access_type, callback_url, callback_mothed, callback_param, callback_type, create_time from flow_config_event
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFlowConfigEventList" parameterType="FlowConfigEvent" resultMap="FlowConfigEventResult">
|
|
|
<include refid="selectFlowConfigEventVo"/>
|
|
|
- <where>
|
|
|
- <if test="flowId != null "> and flow_id = #{flowId}</if>
|
|
|
- <if test="eventCode != null and eventCode != ''"> and event_code = #{eventCode}</if>
|
|
|
- <if test="accessUrl != null and accessUrl != ''"> and access_url = #{accessUrl}</if>
|
|
|
- <if test="accessParam != null and accessParam != ''"> and access_param = #{accessParam}</if>
|
|
|
- <if test="callbackUrl != null and callbackUrl != ''"> and callback_url = #{callbackUrl}</if>
|
|
|
- <if test="callbackParam != null and callbackParam != ''"> and callback_param = #{callbackParam}</if>
|
|
|
+ <where>
|
|
|
+ <if test="flowId != null"> and flow_id = #{flowId}</if>
|
|
|
+ <if test="eventCode != null"> and event_code = #{eventCode}</if>
|
|
|
+ <if test="accessUrl != null"> and access_url = #{accessUrl}</if>
|
|
|
+ <if test="accessMethod != null"> and access_method = #{accessMethod}</if>
|
|
|
+ <if test="accessParam != null"> and access_param = #{accessParam}</if>
|
|
|
+ <if test="accessType != null"> and access_type = #{accessType}</if>
|
|
|
+ <if test="callbackUrl != null"> and callback_url = #{callbackUrl}</if>
|
|
|
+ <if test="callbackMothed != null"> and callback_method = #{callbackMothed}</if>
|
|
|
+ <if test="callbackParam != null"> and callback_param = #{callbackParam}</if>
|
|
|
+ <if test="callbackType != null"> and callback_type = #{callbackType}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -42,18 +50,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="flowId != null">flow_id,</if>
|
|
|
<if test="eventCode != null">event_code,</if>
|
|
|
<if test="accessUrl != null">access_url,</if>
|
|
|
+ <if test="accessMethod != null">access_method,</if>
|
|
|
<if test="accessParam != null">access_param,</if>
|
|
|
+ <if test="accessType != null">access_type,</if>
|
|
|
<if test="callbackUrl != null">callback_url,</if>
|
|
|
+ <if test="callbackMothed != null">callback_mothed,</if>
|
|
|
<if test="callbackParam != null">callback_param,</if>
|
|
|
+ <if test="callbackType != null">callback_type,</if>
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="flowId != null">#{flowId},</if>
|
|
|
<if test="eventCode != null">#{eventCode},</if>
|
|
|
<if test="accessUrl != null">#{accessUrl},</if>
|
|
|
+ <if test="accessMethod != null">#{accessMethod},</if>
|
|
|
<if test="accessParam != null">#{accessParam},</if>
|
|
|
+ <if test="accessType != null">#{accessType},</if>
|
|
|
<if test="callbackUrl != null">#{callbackUrl},</if>
|
|
|
+ <if test="callbackMothed != null">#{callbackMothed},</if>
|
|
|
<if test="callbackParam != null">#{callbackParam},</if>
|
|
|
+ <if test="callbackType != null">#{callbackType},</if>
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
@@ -64,9 +80,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="flowId != null">flow_id = #{flowId},</if>
|
|
|
<if test="eventCode != null">event_code = #{eventCode},</if>
|
|
|
<if test="accessUrl != null">access_url = #{accessUrl},</if>
|
|
|
+ <if test="accessMethod != null">access_method = #{accessMethod},</if>
|
|
|
<if test="accessParam != null">access_param = #{accessParam},</if>
|
|
|
+ <if test="accessType != null">access_type = #{accessType},</if>
|
|
|
<if test="callbackUrl != null">callback_url = #{callbackUrl},</if>
|
|
|
+ <if test="callbackMothed != null">callback_mothed = #{callbackMothed},</if>
|
|
|
<if test="callbackParam != null">callback_param = #{callbackParam},</if>
|
|
|
+ <if test="callbackType != null">callback_type = #{callbackType},</if>
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
@@ -76,21 +96,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
delete from flow_config_event where id = #{id}
|
|
|
</delete>
|
|
|
|
|
|
- <delete id="deleteFlowConfigEventByFlowID" parameterType="Long">
|
|
|
- delete from flow_config_event where flow_id = #{id}
|
|
|
- </delete>
|
|
|
-
|
|
|
<delete id="deleteFlowConfigEventByIds" parameterType="String">
|
|
|
delete from flow_config_event where id in
|
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
#{id}
|
|
|
</foreach>
|
|
|
</delete>
|
|
|
-
|
|
|
- <insert id="batchFlowConfigEvent">
|
|
|
- insert into flow_config_event( id, flow_id, event_code, access_url, access_param, callback_url, callback_param, create_time) values
|
|
|
- <foreach item="item" index="index" collection="list" separator=",">
|
|
|
- ( #{item.id}, #{item.flowId}, #{item.eventCode}, #{item.accessUrl}, #{item.accessParam}, #{item.callbackUrl}, #{item.callbackParam}, #{item.createTime})
|
|
|
- </foreach>
|
|
|
- </insert>
|
|
|
</mapper>
|