|
@@ -49,6 +49,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="selectTElUserQuLast" parameterType="TElUserQu" resultMap="TElUserQuResult">
|
|
<select id="selectTElUserQuLast" parameterType="TElUserQu" resultMap="TElUserQuResult">
|
|
|
|
+ select * from (
|
|
<include refid="selectTElUserQuVo"/>
|
|
<include refid="selectTElUserQuVo"/>
|
|
<where>
|
|
<where>
|
|
<if test="userId != null "> and user_id = #{userId}</if>
|
|
<if test="userId != null "> and user_id = #{userId}</if>
|
|
@@ -57,9 +58,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="repoId != null "> and repo_id = #{repoId}</if>
|
|
<if test="repoId != null "> and repo_id = #{repoId}</if>
|
|
<if test="title != null and title != ''"> and title = #{title}</if>
|
|
<if test="title != null and title != ''"> and title = #{title}</if>
|
|
<if test="sort != null "> and sort = #{sort}</if>
|
|
<if test="sort != null "> and sort = #{sort}</if>
|
|
- and d.del_flag = 0 and rownum = 1
|
|
|
|
|
|
+ and d.del_flag = 0
|
|
</where>
|
|
</where>
|
|
order by d.id desc
|
|
order by d.id desc
|
|
|
|
+ )
|
|
|
|
+ where rownum = 1
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|