|
@ -659,7 +659,7 @@ public class PatientConsultEndpoint extends EnvelopRestEndpoint {
|
|
|
if ("xm_zsyy_wx".equalsIgnoreCase(wxId)){
|
|
|
//结束时医生未开处方则发送模板消息结算
|
|
|
ConsultDo cons = consultDao.findById(consult).orElse(null);
|
|
|
if (org.apache.commons.lang3.StringUtils.isNoneBlank(cons.getRelationCode())){
|
|
|
if (org.apache.commons.lang3.StringUtils.isNoneBlank(cons.getRelationCode())&&cons.getType()!=28){
|
|
|
WlyyOutpatientDO outpatientDO = outpatientDao.findById(cons.getRelationCode()).orElse(null);
|
|
|
List<WlyyPrescriptionDO> wlyyPrescriptionDOS = prescriptionDao.findByOutpatientId(outpatientDO.getId());
|
|
|
if (wlyyPrescriptionDOS==null||wlyyPrescriptionDOS.size()==0){
|