|
@ -43,7 +43,7 @@ public class DeviceLostMessageUtil {
|
|
|
DevicePatientDevice deviceDO = pds.get(0);
|
|
|
String sql = "SELECT DISTINCT d.id,d.name from base_service_package_sign_record sr,base_service_package_record r,base_team_member m,base_doctor d " +
|
|
|
" WHERE sr.status=1 and m.team_code = r.team_code and sr.id=r.sign_id and m.doctor_code = d.id " +
|
|
|
" and m.del = '1' and sr.patient = '"+deviceDO.getUser()+"' " ;
|
|
|
" and m.del = '1' and sr.patient = '"+deviceDO.getUser()+"' and d.doctor_level=2 " ;
|
|
|
List<Map<String,Object>> doctors = jdbcTemplate.queryForList(sql);
|
|
|
String deviceName="";
|
|
|
for (Map<String,Object> docTmp:doctors){
|