소스 검색

图书详情和预约用户列表

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>