Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision dfdfb88c

Von Tamino Steinert vor 5 Tagen hinzugefügt

  • ID dfdfb88c555d5b4f0be25b551e4bc2aa709b111b
  • Vorgänger 6aa91d87

EmailJournal: Komplexer Bericht mit komplexen Filter

Unterschiede anzeigen:

SL/DB/Manager/EmailJournal.pm
33 33
          )
34 34
        )} => \'TRUE';
35 35
  },
36
  unprocessed_attachment_names => sub {
37
    my ($key, $value, $prefix) = @_;
38
    return (
39
        and => [
40
        'attachments.name' => $value,
41
        'attachments.processed' => 0,
42
      ],
43
      'attachments'
44
    )
45
  },
36 46
  has_unprocessed_attachments => sub {
37 47
    my ($key, $value, $prefix) = @_;
38 48

  
......
68 78
            AND record_links.to_id = email_journal.id
69 79
          )
70 80
      )},
71
      attachment => qq{(
81
      attachment_names => qq{(
82
        SELECT STRING_AGG(
83
          email_journal_attachments.name,
84
          ', '
85
          ORDER BY email_journal_attachments.position ASC
86
       )
87
        FROM email_journal_attachments
88
        WHERE
89
          email_journal_attachments.email_journal_id = email_journal.id
90
      )},
91
      unprocessed_attachment_names => qq{(
72 92
        SELECT STRING_AGG(
73 93
          email_journal_attachments.name,
74 94
          ', '
......
77 97
        FROM email_journal_attachments
78 98
        WHERE
79 99
          email_journal_attachments.email_journal_id = email_journal.id
100
            AND email_journal_attachments.processed = FALSE
80 101
      )},
81 102
      has_unprocessed_attachments => qq{(
82 103
        SELECT count(*)

Auch abrufbar als: Unified diff