|
@ -981,7 +981,7 @@ public class BusinessOrderService extends BaseJpaService<BusinessOrderDO,Busines
|
|
prescriptionService.sendWxTemplateMsg(wechatId, wlyyOutpatientDO.getId(),null, type, "paySuccess", "");
|
|
prescriptionService.sendWxTemplateMsg(wechatId, wlyyOutpatientDO.getId(),null, type, "paySuccess", "");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}else if (businessOrderDO.getOrderCategory().equalsIgnoreCase("4")){
|
|
|
|
|
|
}else if (businessOrderDO.getOrderCategory().equalsIgnoreCase("4")||businessOrderDO.getOrderCategory().equalsIgnoreCase("6")){
|
|
/* List<WlyyPrescriptionDO> wlyyPrescriptionDOS = prescriptionDao.findById(businessOrderDO.getRelationCode());
|
|
/* List<WlyyPrescriptionDO> wlyyPrescriptionDOS = prescriptionDao.findById(businessOrderDO.getRelationCode());
|
|
if (wlyyPrescriptionDOS!=null&&wlyyPrescriptionDOS.size()!=0){
|
|
if (wlyyPrescriptionDOS!=null&&wlyyPrescriptionDOS.size()!=0){
|
|
WlyyPrescriptionDO wlyyPrescriptionDO = wlyyPrescriptionDOS.get(0);
|
|
WlyyPrescriptionDO wlyyPrescriptionDO = wlyyPrescriptionDOS.get(0);
|
|
@ -1060,11 +1060,10 @@ public class BusinessOrderService extends BaseJpaService<BusinessOrderDO,Busines
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}*/
|
|
}*/
|
|
List<WlyyPrescriptionDO> wlyyPrescriptionDOS = prescriptionDao.findById(businessOrderDO.getRelationCode());
|
|
|
|
if (wlyyPrescriptionDOS!=null&&wlyyPrescriptionDOS.size()!=0){
|
|
|
|
WlyyPrescriptionDO wlyyPrescriptionDO = wlyyPrescriptionDOS.get(0);
|
|
|
|
|
|
YlzMedicalRelationDO ylzMedicalRelationDO = ylzMedicailRelationDao.findOne(businessOrderDO.getRelationCode());
|
|
|
|
if (ylzMedicalRelationDO!=null){
|
|
try {
|
|
try {
|
|
ykyyPrescriptionService.confirmSettlement(wlyyPrescriptionDO.getOutpatientId());
|
|
|
|
|
|
ykyyPrescriptionService.confirmSettlement(ylzMedicalRelationDO.getRelationCode());
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
throw new RuntimeException(e);
|
|
throw new RuntimeException(e);
|
|
}
|
|
}
|
|
@ -1087,7 +1086,7 @@ public class BusinessOrderService extends BaseJpaService<BusinessOrderDO,Busines
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
}else if (businessOrderDO!=null&&businessOrderDO.getOrderCategory().equalsIgnoreCase("6")){
|
|
|
|
|
|
}/*else if (businessOrderDO!=null&&businessOrderDO.getOrderCategory().equalsIgnoreCase("6")){
|
|
String price = Integer.parseInt(totalFee)/100+"";
|
|
String price = Integer.parseInt(totalFee)/100+"";
|
|
BaseNatAppointmentDO baseNatAppointmentDO = baseNatAppointmentDao.findOne(Integer.parseInt(businessOrderDO.getRelationCode()));
|
|
BaseNatAppointmentDO baseNatAppointmentDO = baseNatAppointmentDao.findOne(Integer.parseInt(businessOrderDO.getRelationCode()));
|
|
baseNatAppointmentDO.setPayStatus("1");
|
|
baseNatAppointmentDO.setPayStatus("1");
|
|
@ -1101,7 +1100,7 @@ public class BusinessOrderService extends BaseJpaService<BusinessOrderDO,Busines
|
|
}
|
|
}
|
|
//发送核酸支付成功提醒
|
|
//发送核酸支付成功提醒
|
|
prescriptionService.sendYktemplateMessage(baseNatAppointmentDO.getId(),true);
|
|
prescriptionService.sendYktemplateMessage(baseNatAppointmentDO.getId(),true);
|
|
}
|
|
|
|
|
|
}*/
|
|
}
|
|
}
|
|
if (businessOrderDO!=null&&!businessOrderDO.getOrderCategory().equalsIgnoreCase("5")&&businessOrderDO.getStatus()!=1){
|
|
if (businessOrderDO!=null&&!businessOrderDO.getOrderCategory().equalsIgnoreCase("5")&&businessOrderDO.getStatus()!=1){
|
|
if (null != hospitalSysDictDO && "0".equalsIgnoreCase(hospitalSysDictDO.getDictValue())) {
|
|
if (null != hospitalSysDictDO && "0".equalsIgnoreCase(hospitalSysDictDO.getDictValue())) {
|
|
@ -2941,14 +2940,12 @@ public class BusinessOrderService extends BaseJpaService<BusinessOrderDO,Busines
|
|
|
|
|
|
}else if (orderCategoryFlag.equalsIgnoreCase("4")){
|
|
}else if (orderCategoryFlag.equalsIgnoreCase("4")){
|
|
WlyyPrescriptionDO prescriptionDO = prescriptionDao.findOne(relationCode);
|
|
WlyyPrescriptionDO prescriptionDO = prescriptionDao.findOne(relationCode);
|
|
WlyyOutpatientDO outpatientDO = outpatientDao.findById(prescriptionDO.getOutpatientId());
|
|
|
|
map.put("medicalPrice",0);
|
|
|
|
if (outpatientDO!=null){
|
|
|
|
|
|
if (prescriptionDO!=null){
|
|
|
|
WlyyOutpatientDO outpatientDO = outpatientDao.findById(prescriptionDO.getOutpatientId());
|
|
map.put("doctorName",outpatientDO.getDoctorName());
|
|
map.put("doctorName",outpatientDO.getDoctorName());
|
|
map.put("consumerName",outpatientDO.getPatientName());
|
|
|
|
}else {
|
|
|
|
map.put("doctorName","");
|
|
|
|
map.put("consumerName","");
|
|
|
|
|
|
map.put("consumerName",outpatientDO.getConsumerName());
|
|
|
|
map.put("patientName",outpatientDO.getPatientName());
|
|
|
|
map.put("medicalPrice",0);
|
|
}
|
|
}
|
|
}else if (orderCategoryFlag.equalsIgnoreCase("6")){
|
|
}else if (orderCategoryFlag.equalsIgnoreCase("6")){
|
|
YlzMedicalRelationDO ylzMedicalRelationDO = ylzMedicailRelationDao.findOne(relationCode);
|
|
YlzMedicalRelationDO ylzMedicalRelationDO = ylzMedicailRelationDao.findOne(relationCode);
|