|
@ -698,6 +698,13 @@ public class CarePatientService extends BaseJpaService<BasePatientDO, BasePatien
|
|
|
map.put("emergency",emergency);
|
|
|
map.put("security",security);
|
|
|
map.put("devices",deviceList);
|
|
|
sql = " select sum(total) from ( " +
|
|
|
"select count(id) total from base_emergency_assistance_order o where o.patient ='"+paientId+"' and o.`status`=1 " +
|
|
|
"UNION All " +
|
|
|
"select count(id) total from base_security_monitoring_order o where o.patient ='"+paientId+"' and o.`status`=1 " +
|
|
|
")A ";
|
|
|
Integer warnTotal = jdbcTemplate.queryForObject(sql,Integer.class);
|
|
|
map.put("warnFlag",warnTotal>0?true:false);
|
|
|
}
|
|
|
return list;
|
|
|
}
|