fix(订单中心):新增二维码是否只显示一键成片的属性字段,v2接口根据该属性进行素材的显示

This commit is contained in:
2025-08-26 00:05:07 +08:00
parent 7a75f7278d
commit c4d74f9d21
10 changed files with 153 additions and 45 deletions
@@ -33,6 +33,9 @@
<if test="p.qrcodeType != null">
AND q.qrcode_type = #{p.qrcodeType}
</if>
<if test="p.showVideoEditOnly != null">
AND q.show_video_edit_only = #{p.showVideoEditOnly}
</if>
</where>
ORDER BY q.create_time DESC
</select>
@@ -56,4 +59,13 @@
ORDER BY create_time DESC
LIMIT 1
</select>
<select id="getByCodeIds" resultMap="QrCodeResultMap">
SELECT * FROM qrcodes
WHERE code_id IN
<foreach collection="codeIds" item="codeId" open="(" separator="," close=")">
#{codeId}
</foreach>
AND is_del = 0
</select>
</mapper>