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}