|
@ -1556,7 +1556,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
"WHERE " +
|
|
"WHERE " +
|
|
"room.patient_id=patient.id " +
|
|
"room.patient_id=patient.id " +
|
|
"AND room.outpatient_id=outpatient.id " +
|
|
"AND room.outpatient_id=outpatient.id " +
|
|
"AND room.doctor IS NULL " +
|
|
|
|
|
|
"AND (room.doctor IS NULL or room.doctor='"+doctor+"') " +
|
|
"AND room.consult_type="+type;
|
|
"AND room.consult_type="+type;
|
|
|
|
|
|
List<Map<String,Object>> list = jdbcTemplate.queryForList(sql);
|
|
List<Map<String,Object>> list = jdbcTemplate.queryForList(sql);
|