浏览代码

查询未读数

wangzhinan 5 年之前
父节点
当前提交
1fb9930c5f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/server/models/user/users.js

+ 2 - 2
src/server/models/user/users.js

@ -394,7 +394,7 @@ class Users extends RedisModel {
     * @param callback
     * @param callback
     */
     */
    static updatePatientStatus(userId,online, handler) {
    static updatePatientStatus(userId,online, handler) {
        let sql = "update " + DB_TABLES.Patients + " set online=? where id = ?";
        let sql = "update " + DB_TABLES.Patients + " set on_line=? where id = ?";
        ImDb.execQuery({
        ImDb.execQuery({
            "sql": sql,
            "sql": sql,
            "args": [online, userId],
            "args": [online, userId],
@ -411,7 +411,7 @@ class Users extends RedisModel {
     * @param handler
     * @param handler
     */
     */
    static updateDoctorStatus(userId,online, handler) {
    static updateDoctorStatus(userId,online, handler) {
        let sql = "update " + DB_TABLES.Doctors + " set online=? where id = ?";
        let sql = "update " + DB_TABLES.Doctors + " set on_line=? where id = ?";
        ImDb.execQuery({
        ImDb.execQuery({
            "sql": sql,
            "sql": sql,
            "args": [online, userId],
            "args": [online, userId],