|
@ -794,7 +794,7 @@ public class PrescriptionInfoService extends BaseService {
|
|
|
Doctor d = doctorDao.findByCode(doctor);
|
|
|
if (d != null && StringUtils.isNotBlank(d.getHospital())) {
|
|
|
String h = d.getHospital().substring(0, 8);
|
|
|
String sql = "SELECT h.`code`,h.`name` FROM dm_hospital h WHERE h.`code` LIKE '%" + h + "%' AND RIGHT(h.code,2)<>'00' ";
|
|
|
String sql = "SELECT h.`code`,h.`name` FROM dm_hospital h WHERE h.`code` LIKE '%" + h + "%' ";
|
|
|
List<Map<String, Object>> hs = jdbcTemplate.queryForList(sql);
|
|
|
rs.put("hospitals", hs);
|
|
|
} else {
|