报警等级下拉

This commit is contained in:
quowingwang
2025-12-11 16:19:02 +08:00
parent 8b0ddc865e
commit d4228b34cd
4 changed files with 37 additions and 2 deletions

View File

@@ -1,5 +1,7 @@
using Infrastructure.Attribute;
using Infrastructure.Model;
using SqlSugar;
using System;
using ZR.Model;
using ZR.Model.MES.andon;
using ZR.Model.MES.andon.Dto;
@@ -80,5 +82,22 @@ namespace ZR.Service.mes.andon
return Update(model, true);
}
public ApiResult GetPullDowm()
{
try
{
var response = Queryable()
.Select(it => new AlarmLevelPullDownDto
{
label = it.LevelName,
value = it.LightColor
}).ToList();
return ApiResult.Success("成功", response);
}
catch (Exception ex)
{
return ApiResult.Error(ex.Message);
}
}
}
}