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