修改更改记录
This commit is contained in:
parent
3997372225
commit
ad4b73c3d2
@ -7,6 +7,7 @@ namespace ZR.Model.MES.andon.Dto
|
||||
/// </summary>
|
||||
public class AndonAlarmTypeDictQueryDto : PagerInfo
|
||||
{
|
||||
public string TypeName { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user