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

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 @Autowired
private AlertLogMapper alertLogMapper; private AlertLogMapper alertLogMapper;
@Autowired @Autowired
private DeviceInformationManager deviceInformationManager; private DeviceInformationManager deviceInformationManager;
@ -384,7 +383,7 @@ public class DeviceAlarmController extends BaseController {
@GetMapping("/alarmList") @GetMapping("/alarmList")
public AjaxResult getAlarmList(@Param("sort")Integer sort ){ public AjaxResult getAlarmList(@Param("sort")Integer sort ){
List<AlertLog> list = new LambdaQueryChainWrapper<>(alertLogMapper) 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(); .list();
if(sort != null){ if(sort != null){
//对列表进行排序 //对列表进行排序