Przeglądaj źródła

只展示未删除的评价

lighter 2 lat temu
rodzic
commit
6703da60c9

+ 2 - 2
src/main/java/thyyxxk/wxservice_server/dao/CommentDao.java

@@ -20,8 +20,8 @@ public interface CommentDao {
             "#{patientName},#{commentLevel},#{commentContent})")
     int insertNewComment(WechatPatientComment comment);
 
-    @Select("select top ${pageSize} *,commentTime=convert(varchar(10),comment_time,21) " +
-            "from t_wechat_patient_comment where doctor_code=#{doctorCode} and id<#{minId} order by id desc")
+    @Select("select top ${pageSize} *,commentTime=convert(varchar(10),comment_time,21) from t_wechat_patient_comment " +
+            "where doctor_code=#{doctorCode} and deleted=0 and id<#{minId} order by id desc")
     List<WechatPatientComment> selectDoctorComments(CommentsInquiry inquiry);
 
     @Select("select count(1) from t_wechat_patient_comment where doctor_code=#{doctorCode} and id<#{minId}")