|
|
|
@ -8,6 +8,7 @@ using HybirdFrameworkCore.Utils;
|
|
|
|
|
using Magicodes.ExporterAndImporter.Excel;
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
using Repository.Station;
|
|
|
|
|
using SqlSugar;
|
|
|
|
|
|
|
|
|
|
namespace Service.Station;
|
|
|
|
|
|
|
|
|
@ -34,6 +35,7 @@ public class EquipAlarmRecordService : BaseServices<EquipAlarmRecord>
|
|
|
|
|
var equipCode = req.EquipCode;
|
|
|
|
|
List<EquipAlarmRecord> list = BaseDal.Queryable().WhereIF(reqTypeCode != -1, it => it.EquipTypeCode == reqTypeCode)
|
|
|
|
|
.WhereIF(ObjUtils.IsNotNullOrWhiteSpace(equipCode), it => it.EquipCode == equipCode)
|
|
|
|
|
.OrderBy(it => it.CreatedTime, OrderByType.Desc)
|
|
|
|
|
.ToPageList(req.PageNum, req.PageSize, ref totalCount);
|
|
|
|
|
|
|
|
|
|
PageResult<EquipAlarmRecord> result = new PageResult<EquipAlarmRecord>()
|
|
|
|
@ -82,8 +84,10 @@ public class EquipAlarmRecordService : BaseServices<EquipAlarmRecord>
|
|
|
|
|
int totalCount = 0;
|
|
|
|
|
int reqTypeCode = req.TypeCode;
|
|
|
|
|
var equipCode = req.EquipCode;
|
|
|
|
|
List<EquipAlarmProcessRecord> list = ProcessRecordRepository.Queryable().WhereIF(reqTypeCode != -1, it => it.EquipTypeCode == reqTypeCode)
|
|
|
|
|
List<EquipAlarmProcessRecord> list = ProcessRecordRepository.Queryable()
|
|
|
|
|
.WhereIF(reqTypeCode != -1, it => it.EquipTypeCode == reqTypeCode)
|
|
|
|
|
.WhereIF(ObjUtils.IsNotNullOrWhiteSpace(equipCode), it => it.EquipCode == equipCode)
|
|
|
|
|
.OrderBy(it => it.CreatedTime, OrderByType.Desc)
|
|
|
|
|
.ToPageList(req.PageNum, req.PageSize, ref totalCount);
|
|
|
|
|
|
|
|
|
|
PageResult<EquipAlarmProcessRecord> result = new PageResult<EquipAlarmProcessRecord>()
|
|
|
|
|