From 0e2f3f937e4cb7f6d4c9eb2d5bd379fe7caae175 Mon Sep 17 00:00:00 2001 From: Administrator <zhubaomin> Date: 星期一, 05 二月 2024 16:24:24 +0800 Subject: [PATCH] 2024-02-05 朱宝民 注销、挂失、冲正、解锁共用一个通用查询接口 --- pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaUserMapper.xml | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaUserMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaUserMapper.xml index 00deab6..ccf499f 100644 --- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaUserMapper.xml +++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaUserMapper.xml @@ -317,9 +317,11 @@ </if> </where> ORDER BY user.id DESC - <if test="pageCurr != null and pageSize != null"> - LIMIT ${pageCurr}, ${pageSize} - </if> + <trim prefix="limit " > + <if test="start != null and count != null"> + #{start,javaType=Integer,jdbcType=INTEGER}, #{count,javaType=Integer,jdbcType=INTEGER} + </if> + </trim> </select> <!--鏍规嵁鐢ㄦ埛缂栧彿鑾峰彇瑙掕壊ID鍒楄〃--> -- Gitblit v1.8.0