|
@ -548,7 +548,7 @@ public class IotPatientDeviceService extends BaseJpaService<IotPatientDeviceDO,
|
|
|
if(StringUtils.isNotBlank(hospitalName)){
|
|
|
sql += "and d.hospital_name like '%" + hospitalName + "%' ";
|
|
|
}
|
|
|
|
|
|
//数据权限过滤
|
|
|
List<String> list = orgUserService.getUserOrgById(userAgent.getUID());
|
|
|
if(!list.contains(userAgent.commonHospital)){
|
|
|
sql += " and d.hospital in ("+orgUserService.getUserOrg(list)+") ";
|