|
@ -19,6 +19,7 @@ import org.apache.commons.lang3.StringUtils;
|
|
|
import org.json.JSONArray;
|
|
|
import org.json.JSONObject;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.Calendar;
|
|
@ -31,6 +32,7 @@ import java.util.List;
|
|
|
* 居民近365天无体检记录时,系统自动发送一条体检提醒信息。使用“代办事项通知”模板
|
|
|
* 代理机制还存在
|
|
|
*/
|
|
|
@Service
|
|
|
public class PatientPhysicalExaminationService extends BaseService {
|
|
|
@Autowired
|
|
|
private PushMsgTask pushMsgTask;
|
|
@ -72,7 +74,6 @@ public class PatientPhysicalExaminationService extends BaseService {
|
|
|
Patient patient = patientDao.findByCode(patientCode);
|
|
|
String url = "huanzhe/html/jiankangtijian.html?openid=" + patient.getOpenid() + "&toUser=" + patient.getCode() + "&toName=" + patient.getName();
|
|
|
json.put("url", url);
|
|
|
String mobile = patient.getMobile();
|
|
|
|
|
|
if (StringUtils.isNotBlank(patient.getOpenid())) {
|
|
|
json.put("first", first);
|