196 map bug 755 fix

This commit is contained in:
2025-12-19 18:09:28 +03:00
parent 45a3c0e94e
commit eba6760e8c
3 changed files with 30 additions and 2 deletions
+1 -1
View File
@@ -57,7 +57,7 @@
//variables.framework.docs={};
variables.framework.docs.APIName="svc-api";
variables.framework.docs.APIVersion="0.195"; /*$ git config --global --unset user.password*/
variables.framework.docs.APIVersion="0.196"; /*$ git config --global --unset user.password*/
variables.framework.globalHeaders = structNew();
variables.framework.globalHeaders["Access-Control-Expose-Headers"] = "Location";
@@ -357,7 +357,7 @@ arguments.requestArguments.specificationId=usrCustomerInfo.specificationId; //In
<cfif (arguments.qParam.data_type EQ "array-map-fixed")>
<cfset arguments.qParam.param_value = serializeJson(local.spMapArray)/><!--- как есть --->
<cfelse>
<cfset arguments.qParam.param_value = serializeJson(local.spMapArray[1])/><!--- вытаскиваем из массива-обертки --->
<cfset arguments.qParam.param_value = arrayLen(local.spMapArray) ? serializeJson(local.spMapArray[1]) : ""/><!--- вытаскиваем из массива-обертки --->
</cfif>
</cffunction>
+28
View File
@@ -0,0 +1,28 @@
<cfcomponent extends="taffy.core.resource" taffy:uri="/param-value-list/{svcOperationCfsParamId}">
<cfsilent>
<cfimport prefix="m" taglib="../lib"/>
<cfset this.helper=CreateObject("component","lib.rest_api_helper")/><!---*** странно, почему мы его видим?---><!---вынести в апп?--->
</cfsilent>
<cffunction name="get" hint="Список значений CFS параметра операции">
<cfargument name="svcOperationCfsParamId" type="string" required=true hint="type:integer"/>
<!--- сначала нам известен только параметр сервиса. вся остальная инфа поступает через аргументы --->
<cfset var local={}/>
<cfquery name="local.qParam">
select p.depends_on_params
from svc_operation_cfs_param p
where p.svc_operation_cfs_param_id = <cfqueryparam cfsqltype="cf_sql_integer" value=#arguments.svcOperationCfsParamId#/>
</cfquery>
<cfreturn noData().withStatus(204, "OK") />
</cffunction>
<!---
/instanceOperationCfsParams/{instanceOperationCfsParamUid}" --->
</cfcomponent>