添加维护相关数据

main
xiaoguo 1 year ago
parent 34933af774
commit efe0edd63d

@ -378,7 +378,7 @@ namespace CVDEMCS.Services.Repositories.Impl
TotalRunningTime = f.Sum(f => f.TotalRunningTime),
TotalAlarmTime = f.Sum(f => f.TotalAlarmTime),
TotalStopTime = f.Sum(f => f.TotalStopTime),
TotalMaintainTime = f.Sum(f => f.TotalStopTime),
TotalMaintainTime = f.Sum(f => f.TotalMaintainTime),
}).ToList();
if (values.Count == 0)
{
@ -409,6 +409,7 @@ namespace CVDEMCS.Services.Repositories.Impl
item.TotalAlarmTime = value.TotalAlarmTime;
item.TotalRunningTime = value.TotalRunningTime;
item.TotalStopTime = value.TotalStopTime;
item.TotalMaintainTime = value.TotalMaintainTime;
item.Update();
}
}
@ -488,6 +489,7 @@ namespace CVDEMCS.Services.Repositories.Impl
TotalAlarmTime = recordTotal.TotalAlarmTime,
TotalStopTime = recordTotal.TotalStopTime,
TotalRunningTime = recordTotal.TotalRunningTime,
TotalMaintainTime = recordTotal.TotalMaintainTime,
TotalDay = recordTotal.TotalDay,
};
@ -794,7 +796,8 @@ namespace CVDEMCS.Services.Repositories.Impl
info.equipment_type AS EquipmentType,
SUM( total_running_time ) AS TotalRunningTime,
SUM( total_alarm_time ) AS TotalAlarmTime,
SUM( total_stop_time ) AS TotalStopTime
SUM( total_stop_time ) AS TotalStopTime ,
SUM( total_maintain_time ) AS TotalMaintainTime
FROM
equipment_record_day_total a
JOIN equipment_info info ON a.equipment_id = info.id

Loading…
Cancel
Save