Ver código fonte

图书详情和预约用户列表

5 anos atrás
pai
commit
7910870d40

+ 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>