|
|
@@ -20,11 +20,13 @@
|
|
|
<result property="delFlag" column="del_flag"/>
|
|
|
<result property="companyUserId" column="company_user_id"/>
|
|
|
<result property="companyId" column="company_id"/>
|
|
|
+ <result property="startNodeKey" column="start_node_key"/>
|
|
|
+ <result property="endNodeKey" column="end_node_key"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectCompanyWorkflowVo">
|
|
|
select workflow_id, workflow_name, workflow_desc, workflow_type, status, version,
|
|
|
- canvas_data, start_node_key, end_node_key, create_by, create_time, update_by, update_time, remark, del_flag, company_user_id, company_id
|
|
|
+ canvas_data, start_node_key, end_node_key, create_by, create_time, update_by, update_time, remark, del_flag, company_user_id, company_id,start_node_key,end_node_key
|
|
|
from company_ai_workflow
|
|
|
</sql>
|
|
|
<update id="deleteAiWorkflowCompanyUserVoice" >
|
|
|
@@ -127,6 +129,8 @@
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
<if test="remark != null">remark,</if>
|
|
|
<if test="companyUserId != null">company_user_id,</if>
|
|
|
+ <if test="startNodeKey != null">start_node_key,</if>
|
|
|
+ <if test="endNodeKey != null">end_node_key,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="workflowName != null and workflowName != ''">#{workflowName},</if>
|
|
|
@@ -139,6 +143,8 @@
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="remark != null">#{remark},</if>
|
|
|
<if test="companyUserId != null">#{companyUserId},</if>
|
|
|
+ <if test="startNodeKey != null">#{startNodeKey},</if>
|
|
|
+ <if test="endNodeKey != null">#{endNodeKey},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<insert id="insertCompanyWorkflowCompanyUser">
|
|
|
@@ -179,6 +185,8 @@
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
+ <if test="startNodeKey != null">start_node_key = #{startNodeKey},</if>
|
|
|
+ <if test="endNodeKey != null">end_node_key = #{endNodeKey},</if>
|
|
|
</trim>
|
|
|
where workflow_id = #{workflowId}
|
|
|
</update>
|