|
@ -79,7 +79,7 @@ public class PhysicalExaminationRemindService extends BaseService {
|
|
|
sendSingleNotice(patient,d.getName());
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
logger.error("体征提醒失败"+e.getMessage());
|
|
|
logger.error("体检提醒失败"+e.getMessage());
|
|
|
}
|
|
|
|
|
|
return 0;
|
|
@ -104,13 +104,12 @@ public class PhysicalExaminationRemindService extends BaseService {
|
|
|
|
|
|
Doctor d = doctorDao.findByCode(doctor);
|
|
|
try{
|
|
|
sendBatchNotice(teamCode,d.getName());
|
|
|
sendBatchNotice(teamCode,d.getName(),record.getId());
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
logger.error("体征提醒失败"+e.getMessage());
|
|
|
logger.error("批量体检提醒失败"+e.getMessage());
|
|
|
}
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
@ -403,7 +402,7 @@ public class PhysicalExaminationRemindService extends BaseService {
|
|
|
* @return
|
|
|
*/
|
|
|
@Async
|
|
|
public void sendBatchNotice(long teamId, String doctName) throws Exception {
|
|
|
public void sendBatchNotice(long teamId, String doctName,Long remindId) throws Exception {
|
|
|
SimpleDateFormat format = new SimpleDateFormat("yyyy年MM月dd日 HH:mm");
|
|
|
String accessToken = accessTokenUtils.getAccessToken();
|
|
|
// 推送消息给微信端
|
|
@ -472,5 +471,10 @@ public class PhysicalExaminationRemindService extends BaseService {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//更新提醒状态
|
|
|
PatientTeamRemindRecord record = patientTeamRemindRecordDao.findOne(remindId);
|
|
|
record.setStatus(1);
|
|
|
patientTeamRemindRecordDao.save(record);
|
|
|
}
|
|
|
}
|