|
|
@ -37,7 +37,8 @@ public class EquipAlarmRecordService : BaseServices<EquipAlarmRecord>
|
|
|
|
List<EquipAlarmRecord> list = BaseDal.Queryable().WhereIF(reqTypeCode != -1, it => it.EquipTypeCode == reqTypeCode)
|
|
|
|
List<EquipAlarmRecord> list = BaseDal.Queryable().WhereIF(reqTypeCode != -1, it => it.EquipTypeCode == reqTypeCode)
|
|
|
|
.WhereIF(ObjUtils.IsNotNullOrWhiteSpace(equipCode), it => it.EquipCode == equipCode)
|
|
|
|
.WhereIF(ObjUtils.IsNotNullOrWhiteSpace(equipCode), it => it.EquipCode == equipCode)
|
|
|
|
.WhereIF(ObjUtils.IsNotNullOrWhiteSpace(errorLevel), it => it.ErrorLevel == errorLevel)
|
|
|
|
.WhereIF(ObjUtils.IsNotNullOrWhiteSpace(errorLevel), it => it.ErrorLevel == errorLevel)
|
|
|
|
.WhereIF(req.StartTime.HasValue, it => it.StartTime == req.StartTime)
|
|
|
|
.WhereIF(req.StartTime.HasValue && req.ProcessTime.HasValue,
|
|
|
|
|
|
|
|
it => it.StartTime >= req.StartTime && it.StartTime <= req.ProcessTime)
|
|
|
|
.OrderBy(it => it.CreatedTime, OrderByType.Desc)
|
|
|
|
.OrderBy(it => it.CreatedTime, OrderByType.Desc)
|
|
|
|
.ToPageList(req.PageNum, req.PageSize, ref totalCount);
|
|
|
|
.ToPageList(req.PageNum, req.PageSize, ref totalCount);
|
|
|
|
|
|
|
|
|
|
|
|