|
@ -12,6 +12,7 @@ import com.yihu.wlyy.service.BaseService;
|
|
|
import com.yihu.wlyy.service.common.SMSService;
|
|
|
import com.yihu.wlyy.task.PushMsgTask;
|
|
|
import com.yihu.wlyy.util.DateUtil;
|
|
|
import com.yihu.wlyy.util.SendP2PUtil;
|
|
|
import com.yihu.wlyy.wechat.util.WeiXinAccessTokenUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.json.JSONObject;
|
|
@ -197,7 +198,9 @@ public class ExpensesRemindService extends BaseService {
|
|
|
PushMsgTask.getInstance().putWxMsg(tokenUtils.getAccessToken(), 8, p.getOpenid(), p.getName(), json);
|
|
|
wFlag = true;
|
|
|
}
|
|
|
|
|
|
//发送IM
|
|
|
SendP2PUtil.sendP2Pmsg(doc.getCode(),p.getCode(),"1",doc.getName() + "医生提醒您:为完成家庭医生签约," +
|
|
|
"尽早为您提供家庭医生服务,请尽快到" + hos.getName() + "(地址:" + hos.getAddress() + ")缴费");
|
|
|
if (ignore) {
|
|
|
redisTemplate.opsForValue().set("expenses:remind:" + p.getCode(), df.format(new Date()));
|
|
|
redisTemplate.expire("expenses:remind:" + p.getCode(), 1, TimeUnit.DAYS);
|