|
@ -47,6 +47,7 @@ import com.yihu.wlyy.wechat.util.WeiXinAccessTokenUtils;
|
|
|
import com.yihu.wlyy.wechat.util.WeiXinOpenIdUtils;
|
|
|
import org.apache.commons.collections.map.HashedMap;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.apache.commons.lang3.time.DateUtils;
|
|
|
import org.json.JSONArray;
|
|
|
import org.json.JSONObject;
|
|
|
import org.slf4j.Logger;
|
|
@ -1530,7 +1531,7 @@ public class SignWebService extends BaseService {
|
|
|
//发送短信
|
|
|
String mobile = (String) signFamily.get("mobile");
|
|
|
if (StringUtils.isNotBlank(mobile)) {
|
|
|
smsService.sendMsg(mobile, name + "您好!您的家庭医生签约到期时间为6月30日,为了继续给您提供健康服务,请关注“厦门i健康”公众号,回复“续签”,进行家庭医生线上续签。");
|
|
|
smsService.sendMsg(mobile, name + "您好!您的家庭医生签约到期时间为"+ DateUtil.getNowYear()+"年6月30号,为了继续给您提供健康服务,请关注“厦门i健康”公众号,回复“续签”,进行家庭医生线上续签。");
|
|
|
}
|
|
|
}
|
|
|
|
|
@ -1592,7 +1593,7 @@ public class SignWebService extends BaseService {
|
|
|
" wlyy_sign_family a " +
|
|
|
" WHERE " +
|
|
|
" a.patient = t.patient " +
|
|
|
" AND a.status>0 " +
|
|
|
" AND a.status>=0 " +
|
|
|
" AND a.sign_year = '" + DateUtil.getSignYear() + "' " +
|
|
|
")";
|
|
|
|
|
@ -1651,7 +1652,7 @@ public class SignWebService extends BaseService {
|
|
|
//发送短信
|
|
|
String mobile = (String) signFamily.get("mobile");
|
|
|
if (StringUtils.isNotBlank(mobile)) {
|
|
|
smsService.sendMsg(mobile, name + "您好!您的家庭医生签约到期时间为6月30日,为了继续给您提供健康服务,请关注“厦门i健康”公众号,回复“续签”,进行家庭医生线上续签。");
|
|
|
smsService.sendMsg(mobile, name + "您好!您的家庭医生签约到期时间为"+ DateUtil.getNowYear()+"年6月30号,为了继续给您提供健康服务,请关注“厦门i健康”公众号,回复“续签”,进行家庭医生线上续签。");
|
|
|
}
|
|
|
}
|
|
|
|
|
@ -2296,7 +2297,7 @@ public class SignWebService extends BaseService {
|
|
|
//发送短信
|
|
|
String mobile = p.getMobile();
|
|
|
if (StringUtils.isNotBlank(mobile)) {
|
|
|
smsService.sendMsg(mobile, name + "您好!您的家庭医生将于6月30日到期,为了继续给您提供健康服务,请关注“厦门i健康”公众号,回复“续签”,进行家庭医生线上续签。");
|
|
|
smsService.sendMsg(mobile, name + "您好!您的家庭医生签约到期时间为"+ DateUtil.getNowYear()+"年6月30号,为了继续给您提供健康服务,请关注“厦门i健康”公众号,回复“续签”,进行家庭医生线上续签。");
|
|
|
patientSetReminFlag(patientCode);
|
|
|
return 2;
|
|
|
}
|