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