Browse Source

Merge branch 'dev' of liubing/wlyy2.0 into dev

liubing 3 years ago
parent
commit
025ed199cd

+ 4 - 2
svr/svr-cloud-job/src/main/java/com/yihu/jw/care/job/message/DoctorSendUnreadJob.java

@ -40,9 +40,11 @@ public class DoctorSendUnreadJob implements Job {
            if (StringUtils.isNotBlank(mobile)){
                if (MobileUtils.checkCellphone(mobile)){
                    String doctorName = tmp.get("name").toString();
                    String unReadCount = imUtil.SessionsUnreadMessageCountByUserId(doctorId)+"";
                    Integer unReadCount = imUtil.SessionsUnreadMessageCountByUserId(doctorId);
                    try {
                        messageUtil.sendTXYSJson("974597",mobile,doctorName,unReadCount);
                        if (unReadCount>0){
                            messageUtil.sendTXYSJson("974597",mobile,doctorName,unReadCount+"");
                        }
                    }catch (Exception e){
                        e.printStackTrace();
                    }