Explorar o código

只展示未删除的评价

lighter %!s(int64=2) %!d(string=hai) anos
pai
achega
6703da60c9
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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}")