Bladeren bron

修改未读数

huangwenjie 4 jaren geleden
bovenliggende
commit
94f9c68758
2 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 2 2
      src/server/models/sessions/sessions.js
  2. 1 1
      src/server/repository/oracle/session.repo.js

+ 2 - 2
src/server/models/sessions/sessions.js

@ -1367,8 +1367,8 @@ class Sessions extends RedisModel {
        let doctorCount = 0;
        let patientEndCount = 0;
        if(type){
            SessionRepo.findAllBySessionType(userId, type,function (err, res) {
                // SessionRepo.findUnEndAll(userId, function (err, res) {
            // SessionRepo.findAllBySessionType(userId, type,function (err, res) {
            SessionRepo.findUnEndAll(userId, function (err, res) {
                if (err) {
                    if(handler)
                    {

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

@ -86,7 +86,7 @@ class SessionRepo {
        let sql = "SELECT SESSION_ID FROM " + DB_TABLES.Participants + " W WHERE W.PARTICIPANT_ID = :PARTICIPANT_ID AND PARTICIPANT_ROLE =0  GROUP BY W.SESSION_ID";
        let sys_session = "SELECT SESSION_ID FROM " + DB_TABLES.Participants + " W WHERE W.PARTICIPANT_ID = 'SYSTEM' AND PARTICIPANT_ROLE =0  GROUP BY W.SESSION_ID";
        let sessionSQL = "SELECT S.\"ID\" AS \"id\",S.\"NAME\" AS \"name\",S.\"TYPE\" AS \"type\",S.\"BUSINESS_TYPE\" AS \"business_type\",S.\"STATUS\" AS \"status\",S.\"CREATE_DATE\" AS \"create_date\",S.\"LAST_SENDER_ID\" AS \"last_sender_id\",S.\"LAST_SENDER_NAME\" AS \"last_sender_name\",S.\"LAST_CONTENT_TYPE\" AS \"last_content_type\",S.\"LAST_CONTENT\" AS \"last_content\",S.\"LAST_MESSAGE_TIME\" AS \"last_message_time\",S.\"BAK_ID\" AS \"bak_id\" FROM "
            + DB_TABLES.Sessions + " S WHERE S.ID IN(" + sql + ") AND S.ID NOT IN ("+sys_session+") AND S.`STATUS` = 0";
            + DB_TABLES.Sessions + " S WHERE S.ID IN(" + sql + ") AND S.ID NOT IN ("+sys_session+") AND S.STATUS = 0";
        oracledbUtil.query({
            "sql": sessionSQL,