Skip to content

Commit

Permalink
IUN ricerca notifiche
Browse files Browse the repository at this point in the history
Related work items: #527
  • Loading branch information
mg-dgsspa committed Dec 10, 2024
1 parent 6f44f56 commit 8791421
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
using System.Data;
using Dapper;
using DocumentFormat.OpenXml.Spreadsheet;
using PortaleFatture.BE.Core.Entities.SEND.Notifiche;
using PortaleFatture.BE.Core.Extensions;
using PortaleFatture.BE.Infrastructure.Common.Persistence;
using PortaleFatture.BE.Infrastructure.Common.SEND.Notifiche.Dto;
using PortaleFatture.BE.Infrastructure.Common.SEND.Notifiche.Queries;
using PortaleFatture.BE.Infrastructure.Common.SEND.Notifiche.Queries.Persistence.Builder;

namespace PortaleFatture.BE.Infrastructure.Common.SEND.Notifiche.Queries.Persistence;
Expand Down Expand Up @@ -38,7 +36,7 @@ public class NotificaQueryGetByIdEntePersistence(NotificaQueryGetByIdEnte comman
var recipientId = string.IsNullOrEmpty(_command.RecipientId) ? null : _command.RecipientId;

if (!string.IsNullOrEmpty(iun))
where += " AND iun=@iun";
where += " AND n.iun=@iun";

if (!string.IsNullOrEmpty(recipientId))
where += " AND recipient_id=@recipientId";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class NotificaQueryGetByListEntiPersistence(NotificaQueryGetByListaEnti c
var recipientId = string.IsNullOrEmpty(_command.RecipientId) ? null : _command.RecipientId;

if (!string.IsNullOrEmpty(iun))
where += " AND iun=@iun";
where += " AND n.iun=@iun";

if (!string.IsNullOrEmpty(recipientId))
where += " AND recipient_id=@recipientId";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class NotificaQueryGetByListEntiPersistencev2(NotificaQueryGetByListaEnti
var recipientId = string.IsNullOrEmpty(_command.RecipientId) ? null : _command.RecipientId;

if (!string.IsNullOrEmpty(iun))
where += " AND iun=@iun";
where += " AND n.iun=@iun";

if (!string.IsNullOrEmpty(recipientId))
where += " AND recipient_id=@recipientId";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class NotificaQueryGetByRecapitistaPersistence(NotificaQueryGetByRecapiti
var recipientId = string.IsNullOrEmpty(_command.RecipientId) ? null : _command.RecipientId;

if (!string.IsNullOrEmpty(iun))
where += " AND iun=@iun";
where += " AND n.iun=@iun";

if (!string.IsNullOrEmpty(recipientId))
where += " AND recipient_id=@recipientId";
Expand Down

0 comments on commit 8791421

Please sign in to comment.