20 lines
1.0 KiB
XML
Raw Normal View History

2026-03-10 14:30:24 +08:00
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="DubRegion">
<select id="findByTypes" resultType="DubRegion">
SELECT dub.type, dub.title, dub.description, dub.cover, dub.difficulty FROM dubregion as dub order by dub.orderid asc
</select>
<select id="findRegionTypeByUid" resultType="java.lang.String">
select type from
(select u.*,s.type,row_number()over(PARTITION by s.type ORDER BY u.created desc) num from dubuservoice u
INNER JOIN dubvideostatic s on u.videoid = s.videoid where u.uid = #{studentId} )a
where a.num = 1 order by created desc
</select>
<select id="findEditorByUid" parameterType="java.lang.Long" resultType="java.lang.Integer">
SELECT COUNT(recognizecode) FROM dubvideoeditor WHERE studentid = #{studentId}
</select>
</mapper>