From 0a69e1f2596e39c22d1be32d6203e9b2fddd650e Mon Sep 17 00:00:00 2001 From: mirzakaev_tf Date: Tue, 2 May 2023 12:55:55 +0500 Subject: [PATCH] =?UTF-8?q?=D1=80=D0=B5=D0=B4=20=D1=81=D0=BA=D1=80=D0=B8?= =?UTF-8?q?=D0=BF=D1=82=20=D0=B4=D0=BB=D1=8F=20=D0=BE=D1=82=D0=BF=D1=83?= =?UTF-8?q?=D1=81=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Настройка внутрисистемных уведомлений.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/Admin manuals/СЭД/Настройка внутрисистемных уведомлений/Настройка внутрисистемных уведомлений.md b/docs/Admin manuals/СЭД/Настройка внутрисистемных уведомлений/Настройка внутрисистемных уведомлений.md index 606d722..371e375 100644 --- a/docs/Admin manuals/СЭД/Настройка внутрисистемных уведомлений/Настройка внутрисистемных уведомлений.md +++ b/docs/Admin manuals/СЭД/Настройка внутрисистемных уведомлений/Настройка внутрисистемных уведомлений.md @@ -86,13 +86,13 @@ ``` insert into "#forInsNotification" ("DocflowUser", "txt", "Link", "DocType", "DocName", "DocSubject", "IdWorker", "DateBeg", "Days", "TypeVacation", "Vacation", "DateEnd", "CopyTo", "txtSMS", "txtTelegram") -select pc_ch."Code" as "User", null as "txt", +select pc_ch."Code" as "User", null as "txt", p."VCode" as "link",p."TypeName", null /*case when "TypeName" = 'Base.RP_DocVacationChanges' then 'Переносы отпусков' else 'График отпусков' end*/, null, /*'Уведомление работника о времени начала отпуска',*/ m."IdWorker", coalesce(m."DateBegPer",m."DateBeg")::date, coalesce(m."DaysPer",m."Days"), m."HolidayTypeGuid", coalesce(tw."Name",ex.name1c), coalesce(m."DateEndPer",m."DateEnd") , null, null as "txtSMS", null as "txtTelegram" from aw."RP_DocVacation" p join aw."RP_WorkerVacation" m on p."VCode" = m."Pcode" - cross join (select (now() + '8 day'::interval)::date as bd, (now() + '8 day'::interval)::date as ed ) dt + cross join (select (now() + '1 day'::interval)::date as bd, (now() + '8 day'::interval)::date as ed ) dt cross join (select "LocationProtocol" || '//' || "LocationHostName" as "link_txt" from comdoc."DocflowSettings") l join rp."RP_Worker" w_ch on w_ch."VCode" = m."IdWorker" join rp."RP_Person" p_ch on w_ch."IdPerson" = p_ch."VCode" @@ -114,6 +114,7 @@ where p."COrg" <> 4 and ) and w_ch."DateEDM" is not null and w_ch."DateEnd" is null and + --проверка на созданное заявление с завершенным маршрутом, на отпуск или на перенос not exists (select 1 from "dfd"."UniversalDocument" AS "ud"