maven
4 天以前 23ca5b2b418630b54b58b24621416a7b40c1d3b1
src/main/resources/mapper/system/SysUserMapper.xml
@@ -65,6 +65,9 @@
         GROUP BY T1.user_id
      ) T2 on T2.user_id = u.user_id
      where u.del_flag = '0'
      <if test="tenantId != null and tenantId != 0">
         and u.tenant_id = #{tenantId}
      </if>
      <if test="userId != null and userId != 0">
         AND u.user_id = #{userId}
      </if>