Преглед изворни кода

图书详情和预约用户列表

пре 5 година
родитељ
комит
7910870d40
1 измењених фајлова са 5 додато и 2 уклоњено
  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>