报警等级

This commit is contained in:
quowingwang
2025-12-10 15:31:37 +08:00
parent 7ccc4eeb68
commit 467f71a150
7 changed files with 41 additions and 6 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;
@@ -76,5 +78,22 @@ namespace ZR.Service.mes.andon
return Update(model, true);
}
public ApiResult getPullDown()
{
try
{
var response = Queryable()
.Select(it => new AlarmTypePullDownDto
{
label = it.TypeCode,
value = it.TypeName
}).ToList();
return ApiResult.Success("成功", response);
}
catch (Exception ex)
{
return ApiResult.Error(ex.Message);
}
}
}
}

View File

@@ -3,6 +3,7 @@ using ZR.Model;
using System.Collections.Generic;
using ZR.Model.MES.andon;
using ZR.Model.MES.andon.Dto;
using Infrastructure.Model;
namespace ZR.Service.mes.andon.Iservice
{
@@ -18,6 +19,6 @@ namespace ZR.Service.mes.andon.Iservice
AndonAlarmTypeDict AddAndonAlarmTypeDict(AndonAlarmTypeDict parm);
int UpdateAndonAlarmTypeDict(AndonAlarmTypeDict parm);
ApiResult getPullDown();
}
}