<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.jeeplus.flowable.mapper.FlowMapper">

	<update id="updateProcInsIdByBusinessId">
		UPDATE ${businessTable} SET
			proc_ins_id = #{procInsId}
		<if test="procDefId != null and procDefId != ''">
			,process_definition_id = #{procDefId}
		</if>
		WHERE id = #{businessId}
	</update>

</mapper>
