修改更改记录

This commit is contained in:
quowingwang 2025-12-21 17:19:03 +08:00
parent 3997372225
commit ad4b73c3d2
2 changed files with 5 additions and 1 deletions

View File

@ -7,6 +7,7 @@ namespace ZR.Model.MES.andon.Dto
/// </summary>
public class AndonAlarmTypeDictQueryDto : PagerInfo
{
public string TypeName { get; set; }
}
/// <summary>

View File

@ -25,7 +25,10 @@ namespace ZR.Service.mes.andon
public PagedInfo<AndonAlarmTypeDictDto> GetList(AndonAlarmTypeDictQueryDto parm)
{
var predicate = Expressionable.Create<AndonAlarmTypeDict>();
if (!string.IsNullOrEmpty(parm.TypeName))
{
predicate.And(x => x.TypeName.Contains(parm.TypeName));
}
var response = Queryable()
.Where(predicate.ToExpression())
.ToPage<AndonAlarmTypeDict, AndonAlarmTypeDictDto>(parm);