From cd969de1f50903ca87deda67bff2d6fcc35b4107 Mon Sep 17 00:00:00 2001
From: zj <1772600164@qq.com>
Date: Sun, 07 Jun 2026 02:42:32 +0800
Subject: [PATCH] 1

---
 target/classes/mapper/UserPositionMapper.xml |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/target/classes/mapper/UserPositionMapper.xml b/target/classes/mapper/UserPositionMapper.xml
index 20db7a5..50034eb 100644
--- a/target/classes/mapper/UserPositionMapper.xml
+++ b/target/classes/mapper/UserPositionMapper.xml
@@ -519,7 +519,17 @@
         and agent_id = #{searchId}
       </if>
       <if test="state != null">
-        and status = #{state, jdbcType=INTEGER}
+        <choose>
+          <when test="state == 0">
+            and status = 1
+          </when>
+          <when test="state == 1">
+            and status = 2
+          </when>
+          <otherwise>
+            and status = #{state, jdbcType=INTEGER}
+          </otherwise>
+        </choose>
       </if>
       <if test="userId != null and userId != '' ">
         and user_id = #{userId}

--
Gitblit v1.9.3