Browse Source

中山医院优化开发

wangzhinan 9 months ago
parent
commit
77dbae183e

+ 11 - 1
business/base-service/src/main/java/com/yihu/jw/hospital/prescription/service/PrescriptionService.java

@ -5491,7 +5491,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
        }else if ("prescriptionPayRemind".equalsIgnoreCase(titelType)) {
            //开具处方后向患者发送支付提醒
            first = outpatientDO.getConsumerName() + ",您好! 医生已为您开具处方,请及时支付。";
            contentMsg = "医生已为您开具处方,请及时支付(有效期七天)。";
            contentMsg = "医生已为您开具处方,请及时支付(有效期六天)。";
            remark = "点击完成支付,如您已支付请忽略本条信息";
            msgUrl="/ims-wx/index.html#/returnVisit/prescriptionDetail?outpatientId="+outpatientId+"&id="+remindMsg;
            logger.info("处方支付微信消息模板推送开始");
@ -15223,11 +15223,21 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
                            return object;
                        }
                    }else {
                        if (outpatientDO.getIsDisease().equalsIgnoreCase("1")){
                            object.put("code","403");
                            object.put("message","特殊病种已经结算过,请联系医院处理!");
                            return object;
                        }
                        ylzMedicalRelationDO.setStatus(0);
                        ylzMedicailRelationDao.save(ylzMedicalRelationDO);
                    }
                }else {
                    if (jsonObject.getString("flag").equalsIgnoreCase("50204")){
                        if (outpatientDO.getIsDisease().equalsIgnoreCase("1")){
                            object.put("code","403");
                            object.put("message","特殊病种已经结算过,请联系医院处理!");
                            return object;
                        }
                        ylzMedicalRelationDO.setStatus(0);
                        ylzMedicailRelationDao.save(ylzMedicalRelationDO);
                    }else {