|
@ -47,8 +47,6 @@ public class PatientConfirmReceiptJob implements Job {
|
|
|
private WeiXinAccessTokenUtils weiXinAccessTokenUtils;
|
|
|
@Autowired
|
|
|
private WeiXinOpenIdUtils weiXinOpenIdUtils;
|
|
|
@Value("${server.server_url}")
|
|
|
private String server_url;
|
|
|
|
|
|
@Override
|
|
|
public void execute(JobExecutionContext context) throws JobExecutionException {
|
|
@ -74,8 +72,6 @@ public class PatientConfirmReceiptJob implements Job {
|
|
|
long days = DateUtil.getDays(today,payTime);
|
|
|
if(days == 3){
|
|
|
//支付后第三天发送自动确认预提醒
|
|
|
prescription.setStatus(PrescriptionLog.PrescriptionLogStatus.finish.getValue());
|
|
|
list.add(prescription);
|
|
|
sendWechatTemplate(1,patient,prescription.getCode());
|
|
|
}
|
|
|
int result = today.compareTo(confirm);
|
|
@ -117,7 +113,7 @@ public class PatientConfirmReceiptJob implements Job {
|
|
|
JSONObject sendJson = new JSONObject();
|
|
|
|
|
|
if (type == 1) {
|
|
|
String url = server_url+"wx/html/prescription/html/order_tracking.html?code=" + PrescriptionCode +"&represented="+patient;
|
|
|
String url = "prescription/html/order_tracking.html?code=" + PrescriptionCode +"&represented="+patient;
|
|
|
|
|
|
String first = name + "您好,您的续方订单将在4天后自动确认收药,如您已经取药,请点击本消息完成确认收药操作,结束订单";
|
|
|
String remark = "如果您希望延长自动确认收药时间,请点击本消息后进行延长收药操作。";
|
|
@ -147,7 +143,7 @@ public class PatientConfirmReceiptJob implements Job {
|
|
|
}
|
|
|
logger.info("sendJson: " + sendJson);
|
|
|
}else if (type == 2) {
|
|
|
String url = server_url+"wx/html/prescription/html/order_tracking.html?code=" + PrescriptionCode +"&represented="+patient;
|
|
|
String url = "prescription/html/order_tracking.html?code=" + PrescriptionCode +"&represented="+patient;
|
|
|
String first = name + "您好,您的续方订单已自动确认收药";
|
|
|
String remark = "如果您未收到续方药品,请及时与社区药房工作人员联系。";
|
|
|
sendJson.put("keyword1", name);
|