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