|
@@ -8,16 +8,19 @@
|
|
<result column="date" property="date"/>
|
|
<result column="date" property="date"/>
|
|
<result column="updateDate" property="updateDate"/>
|
|
<result column="updateDate" property="updateDate"/>
|
|
<result column="userId" property="userId"/>
|
|
<result column="userId" property="userId"/>
|
|
|
|
+ <result column="status" property="status"/>
|
|
|
|
+ <result column="simpleUUID" property="simpleUUID"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<insert id="save" parameterType="com.bosshand.virgo.api.workark.model.HtmlCode" useGeneratedKeys="true" keyProperty="id">
|
|
<insert id="save" parameterType="com.bosshand.virgo.api.workark.model.HtmlCode" useGeneratedKeys="true" keyProperty="id">
|
|
- INSERT INTO dify_html_code(`data`, `date`, `userId`) VALUES (#{data}, now(), #{userId})
|
|
|
|
|
|
+ INSERT INTO dify_html_code(`data`, `date`, `userId`, `simpleUUID`) VALUES (#{data}, now(), #{userId}, #{simpleUUID})
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<update id="update" parameterType="com.bosshand.virgo.api.workark.model.HtmlCode">
|
|
<update id="update" parameterType="com.bosshand.virgo.api.workark.model.HtmlCode">
|
|
UPDATE dify_html_code
|
|
UPDATE dify_html_code
|
|
<trim prefix="set" suffixOverrides=",">
|
|
<trim prefix="set" suffixOverrides=",">
|
|
<if test="data != null">data = #{data},</if>
|
|
<if test="data != null">data = #{data},</if>
|
|
|
|
+ <if test="status != 0">status = #{status},</if>
|
|
updateDate = now(),
|
|
updateDate = now(),
|
|
</trim>
|
|
</trim>
|
|
WHERE id=#{id}
|
|
WHERE id=#{id}
|
|
@@ -36,4 +39,8 @@
|
|
select * from dify_html_code where id =#{id}
|
|
select * from dify_html_code where id =#{id}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
+ <select id="getSimpleUUID" resultMap="result">
|
|
|
|
+ select * from dify_html_code where simpleUUID =#{simpleUUID}
|
|
|
|
+ </select>
|
|
|
|
+
|
|
</mapper>
|
|
</mapper>
|