From d615fc515fc52d6ed970c11d59a017e48de4be32 Mon Sep 17 00:00:00 2001
From: zj <1772600164@qq.com>
Date: Tue, 16 Jun 2026 16:43:58 +0800
Subject: [PATCH] 1
---
src/main/resources/mapper/UserPositionMapper.xml | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/mapper/UserPositionMapper.xml b/src/main/resources/mapper/UserPositionMapper.xml
index 20db7a5..50034eb 100644
--- a/src/main/resources/mapper/UserPositionMapper.xml
+++ b/src/main/resources/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