Sfoglia il codice sorgente

新增咨询,居民成员时间为null

zhangdan 6 anni fa
parent
commit
b19b0b6604

+ 1 - 0
readme.md

@ -179,6 +179,7 @@ REST API遵循REST最佳实践,规范命名URL中的每个部分。注意POST
            17、续方咨询随访问卷消息
            18、个人名片
            19、消息转发
            20、康复计划发送
    **会话类型** 
    
        sessions的type字段

+ 1 - 0
src/server/include/commons.js

@ -92,6 +92,7 @@ const CONTENT_TYPES = {
    PrescriptionCheck:15,//续方审核消息消息
    PrescriptionBloodStatus:16,//续方咨询血糖血压咨询消息
    PrescriptionFollowupContent:17,//续方咨询随访问卷消息
    Rehabilitation: 20, //康复计划发送
    typeToDescription: function (type, defaultDescription) {
        if (CONTENT_TYPES.Image == type) {
            return '[图片]';

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

@ -262,7 +262,7 @@ class ParticipantRepo {
    static saveParticipantsToMysql(sessionId, users, handler) {
        let sql = "INSERT INTO " + DB_TABLES.Participants + " (session_id,participant_id,participant_role,last_fetch_time) VALUES ";
        let args = [];
        let nowDate = new Date();
        let nowDate = null;
        for (let j in users) {
            let tokens = users[j].split(":");
            sql += "(?,?,?,?)";