TASK:aida;

This commit is contained in:
shahaibo
2024-06-27 15:33:26 +08:00
parent 58a78a5366
commit 9b438c78a3
19 changed files with 312 additions and 60 deletions

View File

@@ -29,6 +29,10 @@
<if test="attributeRetrievalAttrDict.silhouette != null">
AND silhouette = #{attributeRetrievalAttrDict.silhouette}
</if>
<if test="style != null">
AND style = #{style}
</if>
AND deprecated = 0
</trim>
ORDER BY
RAND()
@@ -40,6 +44,12 @@
*
FROM
${tableName}
<trim prefix="WHERE" prefixOverrides="AND">
<if test="style != null">
AND style = #{style}
</if>
AND deprecated = 0
</trim>
ORDER BY
RAND()
LIMIT 1
@@ -60,6 +70,10 @@
<if test="attributeRetrievalAttrDict.subtype != null">
AND subtype = #{attributeRetrievalAttrDict.subtype}
</if>
<if test="style != null">
AND style = #{style}
</if>
AND deprecated = 0
</trim>
ORDER BY
RAND()
@@ -79,4 +93,13 @@
set style = #{style}
where ID = #{id}
</update>
<update id="updateStyleByFileName">
UPDATE
${tableName}
SET
style = #{style}
WHERE
image_name = #{fileName}
</update>
</mapper>