|
|
|
@ -218,7 +218,7 @@
|
|
|
|
|
</trim>
|
|
|
|
|
</where>
|
|
|
|
|
<if test="page != null">
|
|
|
|
|
<if test="page.sortname != null"> order by ${page.sortname} ${page.sortorder}</if>
|
|
|
|
|
<if test="page.sortname != null"> order by ${page.sortname} ${page.sortorder}</if>
|
|
|
|
|
limit ${page.start}, ${page.Pagesize}
|
|
|
|
|
</if>
|
|
|
|
|
</sql>
|
|
|
|
@ -234,7 +234,7 @@
|
|
|
|
|
<if test="pictureId != null and pictureId != ''">
|
|
|
|
|
and t1.picture_id = #{pictureId}
|
|
|
|
|
</if>
|
|
|
|
|
ORDER BY t1.max_similarity desc, t2.create_time DESC
|
|
|
|
|
ORDER BY t1.max_similarity desc,t1.similarity_group_order asc, t2.create_time DESC
|
|
|
|
|
LIMIT 1
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|