1
This commit is contained in:
parent
4550894544
commit
a4ea961735
@ -323,7 +323,9 @@ namespace YunDa.ISAS.Application.GeneralInformation
|
|||||||
.FirstOrDefault(t => t.EquipmentInfoId == equipmentInfoId);
|
.FirstOrDefault(t => t.EquipmentInfoId == equipmentInfoId);
|
||||||
if (protectionDevice != null)
|
if (protectionDevice != null)
|
||||||
{
|
{
|
||||||
var boards = _boardCardHistoryRepository.GetAll().Where(t => t.ProtectionDeviceInfoId == protectionDevice.Id);
|
var boards = _boardCardHistoryRepository.GetAll()
|
||||||
|
.Where(t => t.ProtectionDeviceInfoId == protectionDevice.Id)
|
||||||
|
.OrderByDescending(t => t.RecodeDate);
|
||||||
historys = ObjectMapper.Map<List<BoardCardHistoryOutput>>(boards);
|
historys = ObjectMapper.Map<List<BoardCardHistoryOutput>>(boards);
|
||||||
rst.Flag = true;
|
rst.Flag = true;
|
||||||
rst.ResultData = historys;
|
rst.ResultData = historys;
|
||||||
|
@ -578,7 +578,10 @@ namespace YunDa.ISAS.Application.GeneralInformation
|
|||||||
.FirstOrDefault(t => t.EquipmentInfoId == equipmentInfoId);
|
.FirstOrDefault(t => t.EquipmentInfoId == equipmentInfoId);
|
||||||
if (protectionDevice != null)
|
if (protectionDevice != null)
|
||||||
{
|
{
|
||||||
var entitys = _protectionDeviceHistoryRepository.GetAll().Where(t => t.ProtectionDeviceInfoId == protectionDevice.Id);
|
var entitys = _protectionDeviceHistoryRepository.GetAll()
|
||||||
|
.Where(t => t.ProtectionDeviceInfoId == protectionDevice.Id)
|
||||||
|
.OrderByDescending(t=>t.RecodeDate)
|
||||||
|
;
|
||||||
ObjectMapper.Map<List<ProtectionDeviceHistoryOutput>>(entitys);
|
ObjectMapper.Map<List<ProtectionDeviceHistoryOutput>>(entitys);
|
||||||
rst.Flag = true;
|
rst.Flag = true;
|
||||||
rst.ResultData = historys;
|
rst.ResultData = historys;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user