From 34e914fd7e22b1b748e4190651d40820d4c9be63 Mon Sep 17 00:00:00 2001 From: msyu Date: Fri, 15 Nov 2024 16:00:40 +0300 Subject: [PATCH] svc_default --- v1/Application.cfc | 2 +- v1/resources/instance.cfc | 54 ++++++++++++++++++++++++++++++++-- v1/resources/instance_ls.cfc | 57 ++++++++++++++++++++++++++++++++---- v1/resources/svc_default.cfc | 36 +++++++++++++++++++++++ 4 files changed, 140 insertions(+), 9 deletions(-) create mode 100644 v1/resources/svc_default.cfc diff --git a/v1/Application.cfc b/v1/Application.cfc index f505059..1465264 100644 --- a/v1/Application.cfc +++ b/v1/Application.cfc @@ -71,7 +71,7 @@ //variables.framework.docs={}; variables.framework.docs.APIName="Deck API"; - variables.framework.docs.APIVersion="0.020"; + variables.framework.docs.APIVersion="0.021"; variables.framework.globalHeaders = structNew(); variables.framework.globalHeaders["Access-Control-Expose-Headers"] = "Location"; diff --git a/v1/resources/instance.cfc b/v1/resources/instance.cfc index 4bbf6fd..b3e6383 100644 --- a/v1/resources/instance.cfc +++ b/v1/resources/instance.cfc @@ -182,17 +182,18 @@ - + + update instance set dt_updated= ,updater_id= - ,display_name= + ,display_name= - ,descr= + ,descr= where instance_uid=; --select @@rowcount as cnt; @@ -209,5 +210,52 @@ + + + + + ---> + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/v1/resources/instance_ls.cfc b/v1/resources/instance_ls.cfc index 454c893..44c9bf1 100644 --- a/v1/resources/instance_ls.cfc +++ b/v1/resources/instance_ls.cfc @@ -155,14 +155,18 @@ + - - + + + @@ -214,19 +218,22 @@ /> + + - + + - + select count(*) as cnt from instance e join specification_item i on (e.specification_item_id=i.specification_item_id) join specification s on (i.specification_id=s.specification_id) @@ -237,10 +244,50 @@ AND lower(e.display_name)=lower() AND e.instance_uid <> - + + + + + + + + + + + + + select svc from svc where svc_id= + + + + select display_name + from instance e + join specification_item i on (e.specification_item_id=i.specification_item_id) + join specification s on (i.specification_id=s.specification_id) + join contract d on (s.contract_id=d.contract_id) + join contragent k on (d.contragent_id=k.contragent_id) + join usr u on (k.contragent_id=u.contragent_id) + where u.usr_id= + AND lower(e.display_name) like lower() + AND service_id= + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/v1/resources/svc_default.cfc b/v1/resources/svc_default.cfc new file mode 100644 index 0000000..11790f6 --- /dev/null +++ b/v1/resources/svc_default.cfc @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file