|
@ -317,7 +317,7 @@ public class PrescriptionInfoService extends BaseService {
|
|
|
if (prescription!=null&&reviewed != null && prescription.getStatus() == PrescriptionLog.PrescriptionLogStatus.wait_pay.getValue()&&reviewed.getReviewedTime()!=null) {
|
|
|
Long s = (new Date().getTime()-reviewed.getReviewedTime().getTime()) / 1000;
|
|
|
//rs.put("time",s);
|
|
|
if (s > 172800) {
|
|
|
if (s > 86400) {
|
|
|
prescription.setStatus(PrescriptionLog.PrescriptionLogStatus.pay_outtime.getValue());
|
|
|
prescriptionDao.save(prescription);
|
|
|
}
|
|
@ -814,7 +814,7 @@ public class PrescriptionInfoService extends BaseService {
|
|
|
if (state != null && state == 1) {
|
|
|
prescriptionNoticesService.sendMessages(prescription.getPatient(), prescription.getDoctorName(), null, 1, 1, "prescription/html/re-prescription_info.html?openid=" + p.getOpenid() + "&toUser=" + p.getCode() + "&toName=" + p.getName() + "&code=" + prescription.getCode());
|
|
|
} else {
|
|
|
prescriptionNoticesService.sendMessages(prescription.getPatient(), prescription.getDoctorName(), null, 1, 2, "prescription/html/re-prescription_info.html?openid=" + p.getOpenid() + "&toUser=" + p.getCode() + "&toName=" + p.getName() + "&code=" + prescription.getCode());
|
|
|
prescriptionNoticesService.sendMessages(prescription.getPatient(), prescription.getDoctorName(), null, 1, 0, "prescription/html/re-prescription_info.html?openid=" + p.getOpenid() + "&toUser=" + p.getCode() + "&toName=" + p.getName() + "&code=" + prescription.getCode());
|
|
|
}
|
|
|
return 1;
|
|
|
} catch (Exception e) {
|