From 218df5ac3135ba47954a324e0507cef82683754e Mon Sep 17 00:00:00 2001 From: wuchunlei Date: Mon, 27 Nov 2023 14:20:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=BB=E6=A1=88=E6=8E=A8=E8=8D=90=E4=B9=A6?= =?UTF-8?q?=E7=B1=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/mapper/book/BookMedicalRecordsDao.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/mapper/book/BookMedicalRecordsDao.xml b/src/main/resources/mapper/book/BookMedicalRecordsDao.xml index fc831a99..8c80db9c 100644 --- a/src/main/resources/mapper/book/BookMedicalRecordsDao.xml +++ b/src/main/resources/mapper/book/BookMedicalRecordsDao.xml @@ -18,7 +18,7 @@ select b.* from book_medical_records bmr left join book b on bmr.book_id = b.id where bmr.book_id not in (select book_id from user_ebook_buy where user_id = #{userId}) - and b.del_flag = 0 and b.state = 1 + and bmr.del_flag = 0 and b.del_flag = 0 and b.state = 1 GROUP BY bmr.book_id limit #{page},#{limit} @@ -28,7 +28,7 @@ select distinct book_id from book_medical_records bmr left join book b on bmr.book_id = b.id where bmr.book_id not in (select book_id from user_ebook_buy where user_id = #{userId}) - and b.del_flag = 0 and b.state = 1) t + and bmr.del_flag = 0 and b.del_flag = 0 and b.state = 1) t \ No newline at end of file