分页总数量为 -1 的情况

This commit is contained in:
gong
2025-12-23 15:15:42 +08:00
parent 8635c42506
commit 658c7f14b2
2 changed files with 55 additions and 4 deletions

View File

@@ -15,10 +15,7 @@
left join tb_shop_info s on o.shop_id = s.id
left join pp_package p on o.package_id = p.id
left join tb_user_info u on o.user_id = u.id
where 1=1
<if test="shopId != null">
and o.shop_id = #{shopId}
</if>
where o.shop_id = #{shopId}
<choose>
<!-- userId为空时拼接 and o.status != 'ing' -->
<when test="userId == null or userId == ''">