|
@ -10936,7 +10936,12 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
"t.appointment_time as \"appointmentTime\" " +
|
|
|
" from base_nat_appointment t where 1=1 ";
|
|
|
if (StringUtils.isNoneBlank(patientId)){
|
|
|
sql+=" and t.consumer ='"+patientId+"'";
|
|
|
if (wechatId.equalsIgnoreCase("xm_ykyy_wx")){
|
|
|
sql+=" and t.consumer ='"+patientId+"'";
|
|
|
}else {
|
|
|
sql+=" and t.patient_id ='"+patientId+"'";
|
|
|
}
|
|
|
|
|
|
}
|
|
|
if (StringUtils.isNoneBlank(id)){
|
|
|
sql+=" and t.id ='"+id+"'";
|