Update spec x cancellazioni fluxLog

This commit is contained in:
Samuele Locatelli
2023-11-10 16:47:51 +01:00
parent d8c30d1946
commit 771f906755
6 changed files with 13 additions and 10 deletions
+4 -6
View File
@@ -555,7 +555,7 @@ namespace MP.Data.Controllers
public async Task<List<StatDedupDTO>> FluxLogDataRedux(string idxMaccSel, List<string> fluxList, Periodo currPeriodo, Enums.ValSelection valMode, Enums.DataInterval intReq, int maxItem)
{
List<StatDedupDTO> procStats = new List<StatDedupDTO>();
Log.Info($"Inizio FluxLogDataRedux | idxMaccSel: {idxMaccSel} | periodo: {currPeriodo.Inizio} --> {currPeriodo.Fine}");
Log.Info($"Inizio FluxLogDataRedux | idxMaccSel: {idxMaccSel} | periodo: {currPeriodo.Inizio:yyyy-MM-dd} --> {currPeriodo.Fine:yyyy-MM-dd}");
TimeSpan step = TimeSpan.FromHours(1);
switch (intReq)
{
@@ -611,10 +611,7 @@ namespace MP.Data.Controllers
numRecProc += numRec;
if (numRec > maxItem)
{
if (dtCursStart > currPeriodo.Fine)
{
setCompleted = true;
}
List<Periodo> listPeriodi = new List<Periodo>();
switch (valMode)
@@ -671,6 +668,7 @@ namespace MP.Data.Controllers
// incremento dt fine periodo
dtCursStart = dtCursEnd;
dtCursEnd = dtCursStart.Add(step);
setCompleted = dtCursStart >= currPeriodo.Fine;
}
}
// fermo cronometro e salvo su DB...
@@ -686,7 +684,7 @@ namespace MP.Data.Controllers
};
procStats.Add(currStat);
}
Log.Info($"FINE FluxLogDataRedux | idxMaccSel: {idxMaccSel} | periodo: {currPeriodo.Inizio} --> {currPeriodo.Fine}");
Log.Info($"FINE FluxLogDataRedux | idxMaccSel: {idxMaccSel} | periodo: {currPeriodo.Inizio:yyyy-MM-dd} --> {currPeriodo.Fine:yyyy-MM-dd}");
return procStats;
}