This commit is contained in:
郭睿 2024-12-10 15:52:06 +08:00
parent 4550894544
commit a4ea961735
2 changed files with 7 additions and 2 deletions

View File

@ -323,7 +323,9 @@ namespace YunDa.ISAS.Application.GeneralInformation
.FirstOrDefault(t => t.EquipmentInfoId == equipmentInfoId);
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);
rst.Flag = true;
rst.ResultData = historys;

View File

@ -578,7 +578,10 @@ namespace YunDa.ISAS.Application.GeneralInformation
.FirstOrDefault(t => t.EquipmentInfoId == equipmentInfoId);
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);
rst.Flag = true;
rst.ResultData = historys;