From ef197d160c817b87672fc615e956971a9a421208 Mon Sep 17 00:00:00 2001 From: msyu Date: Sat, 1 Mar 2025 10:46:25 +0300 Subject: [PATCH] 117 svc_operation_cfs_param.sort --- v1/Application.cfc | 2 +- v1/resources/instance_ls.cfc | 37 ++++++++++++++++++++++++++++++++-- v1/resources/svc_operation.cfc | 2 ++ 3 files changed, 38 insertions(+), 3 deletions(-) diff --git a/v1/Application.cfc b/v1/Application.cfc index 0aa937f..2edd739 100644 --- a/v1/Application.cfc +++ b/v1/Application.cfc @@ -51,7 +51,7 @@ //variables.framework.docs={}; variables.framework.docs.APIName="Deck API"; - variables.framework.docs.APIVersion="0.061"; + variables.framework.docs.APIVersion="0.062"; variables.framework.globalHeaders = structNew(); variables.framework.globalHeaders["Access-Control-Expose-Headers"] = "Location"; diff --git a/v1/resources/instance_ls.cfc b/v1/resources/instance_ls.cfc index dfa9b33..d2e7f4c 100644 --- a/v1/resources/instance_ls.cfc +++ b/v1/resources/instance_ls.cfc @@ -184,7 +184,7 @@ limit #arguments.pageSize# offset #arguments.pageSize*(arguments.page-1)# - + @@ -368,4 +368,37 @@ - \ No newline at end of file + + + \ No newline at end of file diff --git a/v1/resources/svc_operation.cfc b/v1/resources/svc_operation.cfc index 1619441..8671153 100644 --- a/v1/resources/svc_operation.cfc +++ b/v1/resources/svc_operation.cfc @@ -49,12 +49,14 @@ p.minvalue p.descr p.man + p.sort ( select 1 from svc_operation_cfs_param m join svc_operation om on m.svc_operation_id=om.svc_operation_id join svc_operation oc on (om.svc_id=oc.svc_id AND om.operation='modify' AND oc.operation='create') join svc_operation_cfs_param c on (oc.svc_operation_id=c.svc_operation_id AND m.svc_operation_cfs_param=c.svc_operation_cfs_param) where c.svc_operation_cfs_param_id=p.svc_operation_cfs_param_id + order by p.sirt, p.svc_operation_cfs_param_id limit 1 ) as isModifiable