Explorar o código

图书详情和预约用户列表

%!s(int64=5) %!d(string=hai) anos
pai
achega
7910870d40
Modificáronse 1 ficheiros con 5 adicións e 2 borrados
  1. 5 2
      bms/src/main/resources/mapper/UserAppointmentMapper.xml

+ 5 - 2
bms/src/main/resources/mapper/UserAppointmentMapper.xml

@@ -45,7 +45,10 @@
           user_appointment ua
           left join institutional_information ii
           on ii.id = ua.org_id
-          where ii.sys_id = #{user.id}
+          <where>
+              <if test="user.id != 1">
+                  ii.sys_id = #{user.id}
+              </if>
+          </where>
     </select>
-
 </mapper>