sketch暂时修改为java端推荐,根据style进行推荐

This commit is contained in:
litianxiang
2025-11-12 13:49:01 +08:00
parent 15f2b78c94
commit e4e6cfbff7
9 changed files with 88 additions and 35 deletions

View File

@@ -27,5 +27,10 @@
<select id="selectWorkspacePage" resultMap="BaseResultMap">
select * from workspace where is_deleted = 0
</select>
<select id="getStyleByProjectId" resultType="java.lang.String">
select name from style where id =
(select style_id from workspace_rel_style where workspace_id =
(select id from workspace where project_id = #{projectId}))
</select>
</mapper>

View File

@@ -110,4 +110,21 @@
${tableName}
WHERE img_name = #{replace}
</select>
<select id="getCountByStyle" resultType="java.lang.Integer">
SELECT
count(*)
FROM
${tableName}
WHERE style = #{style} and deprecated = 0
</select>
<select id="getOneSystemSketchRadom" resultType="java.lang.String">
SELECT
img_name
FROM
${tableName}
WHERE style = #{style}
and deprecated = 0
ORDER BY ID LIMIT #{randomNum},1
</select>
</mapper>