Fix ricerca PODL x KIT e Attivi
This commit is contained in:
@@ -1679,12 +1679,15 @@ namespace MP.SPEC.Data
|
||||
/// <param name="codGruppo">Gruppo</param>
|
||||
/// <param name="startDate">Data inizio</param>
|
||||
/// <param name="endDate">Data fine</param>
|
||||
/// <param name="flagAttive">se true =?solo attive</param>
|
||||
/// <param name="flagAttive">se true = solo attive</param>
|
||||
/// <param name="flagKitChild">se true = mostra Kit Child</param>
|
||||
/// <returns></returns>
|
||||
public async Task<List<PODLExpModel>> POdlToKitListGetFiltAsync(bool lanciato, string keyRichPart, string idxMacchina, string codGruppo, DateTime startDate, DateTime endDate, bool flagAttive)
|
||||
public async Task<List<PODLExpModel>> POdlToKitListGetFiltAsync(bool lanciato, string keyRichPart, string idxMacchina, string codGruppo, DateTime startDate, DateTime endDate, bool flagAttive, bool flagKitChild)
|
||||
{
|
||||
string codLanc = lanciato ? "ALL" : "READY";
|
||||
string codFlagAtt = flagAttive ? "ACT" : "ALL";
|
||||
string redisKey = $"{Utils.redisPOdlList}_kit:{codGruppo}:{idxMacchina}:{keyRichPart}:{lanciato}:{codFlagAtt}:{startDate:yyyyMMdd_HHmmss}:{endDate:yyyyMMdd_HHmmss}";
|
||||
string codFlagKCh = flagKitChild ? "KALL" : "KP";
|
||||
string redisKey = $"{Utils.redisPOdlList}_kit:{codGruppo}:{idxMacchina}:{keyRichPart}:{codLanc}:{codFlagAtt}:{codFlagKCh}:{startDate:yyyyMMdd_HHmmss}:{endDate:yyyyMMdd_HHmmss}";
|
||||
|
||||
return await GetOrFetchAsync(
|
||||
operationName: "POdlToKitListGetFiltAsync",
|
||||
@@ -1698,7 +1701,8 @@ namespace MP.SPEC.Data
|
||||
codGruppo,
|
||||
startDate,
|
||||
endDate,
|
||||
flagAttive
|
||||
flagAttive,
|
||||
flagKitChild
|
||||
) ?? new List<PODLExpModel>(),
|
||||
tagList: [Utils.redisPOdlList, $"{Utils.redisPOdlList}_kit"]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user