|
@ -16,14 +16,12 @@ import com.yihu.jw.entity.hospital.article.KnowledgeArticleUserDO;
|
|
import com.yihu.jw.entity.hospital.httplog.WlyyHttpLogDO;
|
|
import com.yihu.jw.entity.hospital.httplog.WlyyHttpLogDO;
|
|
import com.yihu.jw.entity.hospital.prescription.WlyyPrescriptionDO;
|
|
import com.yihu.jw.entity.hospital.prescription.WlyyPrescriptionDO;
|
|
import com.yihu.jw.entity.hospital.prescription.WlyyPrescriptionInfoDO;
|
|
import com.yihu.jw.entity.hospital.prescription.WlyyPrescriptionInfoDO;
|
|
|
|
import com.yihu.jw.entity.hospital.prescription.WlyyPrescriptionLogDO;
|
|
import com.yihu.jw.entity.order.BusinessOrderDO;
|
|
import com.yihu.jw.entity.order.BusinessOrderDO;
|
|
import com.yihu.jw.entity.ylzinfo.OauthYlzConfigDO;
|
|
import com.yihu.jw.entity.ylzinfo.OauthYlzConfigDO;
|
|
import com.yihu.jw.hospital.dao.consult.KnowledgeArticleUserDao;
|
|
import com.yihu.jw.hospital.dao.consult.KnowledgeArticleUserDao;
|
|
import com.yihu.jw.hospital.httplog.dao.WlyyHttpLogDao;
|
|
import com.yihu.jw.hospital.httplog.dao.WlyyHttpLogDao;
|
|
import com.yihu.jw.hospital.prescription.dao.OauthYlzConfigDao;
|
|
|
|
import com.yihu.jw.hospital.prescription.dao.OutpatientDao;
|
|
|
|
import com.yihu.jw.hospital.prescription.dao.PrescriptionDao;
|
|
|
|
import com.yihu.jw.hospital.prescription.dao.PrescriptionInfoDao;
|
|
|
|
|
|
import com.yihu.jw.hospital.prescription.dao.*;
|
|
import com.yihu.jw.hospital.prescription.service.PayInfoNoticeService;
|
|
import com.yihu.jw.hospital.prescription.service.PayInfoNoticeService;
|
|
import com.yihu.jw.hospital.prescription.service.PrescriptionExpressageService;
|
|
import com.yihu.jw.hospital.prescription.service.PrescriptionExpressageService;
|
|
import com.yihu.jw.hospital.prescription.service.PrescriptionService;
|
|
import com.yihu.jw.hospital.prescription.service.PrescriptionService;
|
|
@ -151,6 +149,8 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
private PayInfoNoticeService payInfoNoticeService;
|
|
private PayInfoNoticeService payInfoNoticeService;
|
|
@Autowired
|
|
@Autowired
|
|
private OutpatientDao outpatientDao;
|
|
private OutpatientDao outpatientDao;
|
|
|
|
@Autowired
|
|
|
|
private PrescriptionLogDao prescriptionLogDao;
|
|
|
|
|
|
|
|
|
|
private String successxml = "SUCCESS";
|
|
private String successxml = "SUCCESS";
|
|
@ -852,6 +852,16 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
String patient = prescriptionDO.getPatientCode();
|
|
String patient = prescriptionDO.getPatientCode();
|
|
if (prescriptionDO.getStatus()!=30){
|
|
if (prescriptionDO.getStatus()!=30){
|
|
String pushPayLog = payInfoNoticeService.pushPrescriptionPay(prescriptionDO.getPatientCode(),prescriptionDO.getDoctorName(),voucherNo,prescriptionDO.getOutpatientId(),prescriptionDO.getId(),prescriptionDO.getDrugFee().toString());
|
|
String pushPayLog = payInfoNoticeService.pushPrescriptionPay(prescriptionDO.getPatientCode(),prescriptionDO.getDoctorName(),voucherNo,prescriptionDO.getOutpatientId(),prescriptionDO.getId(),prescriptionDO.getDrugFee().toString());
|
|
|
|
WlyyPrescriptionLogDO prescriptionLogDO = new WlyyPrescriptionLogDO();
|
|
|
|
prescriptionLogDO.setCreateTime(new Date());
|
|
|
|
prescriptionLogDO.setStatus(30);
|
|
|
|
prescriptionLogDO.setOutpatientId(prescriptionDO.getOutpatientId());
|
|
|
|
prescriptionLogDO.setPrescriptionCode(prescriptionDO.getId());
|
|
|
|
prescriptionLogDO.setUserCode(prescriptionDO.getPatientCode());
|
|
|
|
prescriptionLogDO.setUserName(prescriptionDO.getPatientName());
|
|
|
|
prescriptionLogDO.setUserType(1);
|
|
|
|
prescriptionLogDO.setDatajson("处方结算");
|
|
|
|
prescriptionLogDao.save(prescriptionLogDO);
|
|
logger.info("处方结算成功"+pushPayLog+"====="+waitPayDetailVO.getRecipeNo());
|
|
logger.info("处方结算成功"+pushPayLog+"====="+waitPayDetailVO.getRecipeNo());
|
|
}
|
|
}
|
|
}
|
|
}
|