Commit 7aeedc74 by 汪志阳

fix:离床日志输出

parent 0e334a27
...@@ -23,5 +23,5 @@ public interface PlatAlarmConfigMapper extends BaseMapper<PlatAlarmConfig> { ...@@ -23,5 +23,5 @@ public interface PlatAlarmConfigMapper extends BaseMapper<PlatAlarmConfig> {
*/ */
List<PlatHealthConfigDTO> getHealthConfigList(); List<PlatHealthConfigDTO> getHealthConfigList();
List<PlatAlarmConfig> listOffBed(@Param("orgDeviceId") String orgDeviceId); List<PlatAlarmConfig> listOffBed(@Param("deviceId") String deviceId);
} }
...@@ -43,5 +43,5 @@ public interface PlatAlarmConfigService extends IService<PlatAlarmConfig> { ...@@ -43,5 +43,5 @@ public interface PlatAlarmConfigService extends IService<PlatAlarmConfig> {
void initData(); void initData();
List<PlatAlarmConfig> listOfBed(String orgId); List<PlatAlarmConfig> listOfBed(String deviceId);
} }
...@@ -262,7 +262,7 @@ public class PlatAlarmConfigServiceImpl extends ServiceImpl<PlatAlarmConfigMappe ...@@ -262,7 +262,7 @@ public class PlatAlarmConfigServiceImpl extends ServiceImpl<PlatAlarmConfigMappe
@Override @Override
@TenantIdIgnore @TenantIdIgnore
public List<PlatAlarmConfig> listOfBed(String orgDeviceId) { public List<PlatAlarmConfig> listOfBed(String deviceId) {
return configMapper.listOffBed(orgDeviceId); return configMapper.listOffBed(deviceId);
} }
} }
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
select * select *
from plat_alarm_config from plat_alarm_config
where org_id in ( where org_id in (
select org_id from plat_device where id = #{orgDeviceId} and del_flag = 0) select org_id from plat_device where id = #{deviceId} and del_flag = 0)
and alarm_type = 5 and tenant_id != 0 and alarm_type = 5 and tenant_id != 0
</select> </select>
</mapper> </mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment