设备告警记录添加返回字段
This commit is contained in:
parent
3f93dc9b65
commit
560c232fa0
@ -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){
|
||||
//对列表进行排序
|
||||
|
Loading…
x
Reference in New Issue
Block a user