Bläddra i källkod

查询未读数

wangzhinan 5 år sedan
förälder
incheckning
8656ef223b
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/server/repository/mysql/session.repo.js

+ 1 - 1
src/server/repository/mysql/session.repo.js

@ -124,7 +124,7 @@ class SessionRepo {
    static findAllByTypes(userId, type, handler) {
    static findAllByTypes(userId, type, handler) {
        let sql = "select session_id from " + DB_TABLES.Participants + " w where w.participant_id = ?  group by w.session_id";
        let sql = "select session_id from " + DB_TABLES.Participants + " w where w.participant_id = ?  group by w.session_id";
        let sessionSQL = "select id, name, type, create_date, last_sender_id, last_sender_name, last_content_type, last_content, last_message_time from "
        let sessionSQL = "select id, name, type, create_date, last_sender_id, last_sender_name, last_content_type, last_content, last_message_time from "
            + DB_TABLES.Sessions + " s where s.id in(" + sql + ") and type in(?) ";
            + DB_TABLES.Sessions + " s where s.id in(" + sql + ") and type in(?) AND S.STATUS = 0 ";
        log.info("获取用户全部会话: sql :" + sessionSQL);
        log.info("获取用户全部会话: sql :" + sessionSQL);
        log.info("userId"+userId+"=========type"+type);
        log.info("userId"+userId+"=========type"+type);
        ImDb.execQuery({
        ImDb.execQuery({