bug优化

This commit is contained in:
mashuai 2024-10-10 17:21:31 +08:00
parent c753cd5f64
commit b0602caadc
1 changed files with 3 additions and 1 deletions

View File

@ -30,9 +30,11 @@
*/ */
<if test="isAll != null and isAll == 0"> <if test="isAll != null and isAll == 0">
and tp.team_id is null and tp.team_id is null
</if>
<if test="isAll != null and isAll == 1">
ORDER BY CASE WHEN tp.id = tt.rel_id THEN 0 ELSE 1 END, tp.id ORDER BY CASE WHEN tp.id = tt.rel_id THEN 0 ELSE 1 END, tp.id
</if> </if>
<if test="isAll == null or isAll != 0"> <if test="isAll == null">
ORDER BY tp.create_time DESC ORDER BY tp.create_time DESC
</if> </if>
</select> </select>