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