设备告警记录添加返回字段

This commit is contained in:
mi9688 2024-12-02 11:16:10 +08:00
parent 3f93dc9b65
commit 560c232fa0

View File

@ -39,7 +39,6 @@ public class DeviceAlarmController extends BaseController {
@Autowired
private AlertLogMapper alertLogMapper;
@Autowired
private DeviceInformationManager deviceInformationManager;
@ -384,7 +383,7 @@ public class DeviceAlarmController extends BaseController {
@GetMapping("/alarmList")
public AjaxResult getAlarmList(@Param("sort")Integer sort ){
List<AlertLog> list = new LambdaQueryChainWrapper<>(alertLogMapper)
.select(AlertLog::getAlertLogId,AlertLog::getCreateTime,AlertLog::getAlertName,AlertLog::getSerialNumber)
.select(AlertLog::getAlertLogId,AlertLog::getCreateTime,AlertLog::getAlertName,AlertLog::getSerialNumber,AlertLog::getDeviceName)
.list();
if(sort != null){
//对列表进行排序