Parcourir la source

只展示未删除的评价

lighter il y a 2 ans
Parent
commit
6703da60c9
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/main/java/thyyxxk/wxservice_server/dao/CommentDao.java

+ 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}")