From c2cc697664d513a55b584ced2f6ce233e9d91fd7 Mon Sep 17 00:00:00 2001 From: msyu Date: Sat, 1 Mar 2025 11:10:20 +0300 Subject: [PATCH] 062 svc_operation_cfs_param.sort fix --- v1/resources/svc_operation.cfc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/v1/resources/svc_operation.cfc b/v1/resources/svc_operation.cfc index 8671153..7792563 100644 --- a/v1/resources/svc_operation.cfc +++ b/v1/resources/svc_operation.cfc @@ -51,18 +51,18 @@ 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 + 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 c.svc_operation_cfs_param_id + limit 1 ) as isModifiable from svc_operation_cfs_param p where p.svc_operation_id= - order by p.svc_operation_cfs_param_id + order by p.sort, p.svc_operation_cfs_param_id