|
@@ -21,11 +21,12 @@
|
|
|
<result column="type" property="type"/>
|
|
|
<result column="insertType" property="insertType"/>
|
|
|
<result column="organizationId" property="organizationId"/>
|
|
|
+ <result column="fileId" property="fileId"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<insert id="save" parameterType="com.bosshand.virgo.api.workark.model.DifyWorkFlow" useGeneratedKeys="true" keyProperty="id">
|
|
|
- INSERT INTO dify_work_flow(`simpleUUID`, `difyTypeId`, `date`, `userId`, `workflowRunId`, `status`, `inputs`, `outputs`, `createdAt`, `finishedAt`, `elapsedTime`, `error`, `totalSteps`, `totalTokens`, `type`, `insertType`, `organizationId`)
|
|
|
- VALUES (#{simpleUUID}, #{difyTypeId}, now(), #{userId}, #{workflowRunId}, #{status}, #{inputs}, #{outputs}, #{createdAt}, #{finishedAt}, #{elapsedTime}, #{error}, #{totalSteps}, #{totalTokens}, #{type}, #{insertType}, #{organizationId})
|
|
|
+ INSERT INTO dify_work_flow(`simpleUUID`, `difyTypeId`, `date`, `userId`, `workflowRunId`, `status`, `inputs`, `outputs`, `createdAt`, `finishedAt`, `elapsedTime`, `error`, `totalSteps`, `totalTokens`, `type`, `insertType`, `organizationId`, `fileId`)
|
|
|
+ VALUES (#{simpleUUID}, #{difyTypeId}, now(), #{userId}, #{workflowRunId}, #{status}, #{inputs}, #{outputs}, #{createdAt}, #{finishedAt}, #{elapsedTime}, #{error}, #{totalSteps}, #{totalTokens}, #{type}, #{insertType}, #{organizationId}, #{fileId})
|
|
|
</insert>
|
|
|
|
|
|
<select id="getSimpleUUID" resultMap="result">
|
|
@@ -73,6 +74,9 @@
|
|
|
<if test="organizationId != 0">
|
|
|
and organizationId = #{organizationId}
|
|
|
</if>
|
|
|
+ <if test="fileId != 0">
|
|
|
+ and fileId = #{fileId}
|
|
|
+ </if>
|
|
|
<if test="simpleUUID != null">
|
|
|
and simpleUUID = #{simpleUUID}
|
|
|
</if>
|