102 cleaning
This commit is contained in:
@@ -13,7 +13,11 @@
|
||||
<!---спецификация полей, пригодных для фильтрации --->
|
||||
<cfset this.fieldsSpec={
|
||||
dt_created={prefix="iop", type="date"},
|
||||
svc_operation_cfs_param={prefix="sop", type="string"}
|
||||
svc_operation_cfs_param={prefix="sop", type="string"},
|
||||
login={prefix="iop", type="string"},
|
||||
creator_id={prefix="iop", type="integer"},
|
||||
sort={prefix="sop", type="integer"},
|
||||
is_sensitive={prefix="sop", type="boolean"}
|
||||
<!--- ,
|
||||
dt_updated={prefix="e", type="date"},
|
||||
service_id={prefix="e", type="integer"},
|
||||
@@ -105,8 +109,7 @@
|
||||
<cfset "out.runDurationMs"=getTickCount()-request.startTickCount/>
|
||||
<!---<cfset "out.sql"=#local.result.sql#/>--->
|
||||
<cfreturn representationOf(out)/>
|
||||
</cffunction>
|
||||
|
||||
</cffunction><!--- get --->
|
||||
|
||||
|
||||
<cffunction name="post" hint="Создание нового CFS параметра операции.">
|
||||
@@ -185,7 +188,9 @@
|
||||
.withHeaders({location: "./#local.instanceOperationCfsParamUid#"})
|
||||
.withStatus(201, "Created")
|
||||
/>
|
||||
</cffunction>
|
||||
</cffunction><!--- post --->
|
||||
|
||||
|
||||
|
||||
<cffunction name="checkParam" returnType="void">
|
||||
<!--- проверка параметров по метаданным, независимо от семантики самого параметра --->
|
||||
@@ -241,15 +246,13 @@
|
||||
|
||||
<!--- ****** Внимание! Этот код сравнивает параметры одноименных операций, но уникальность должна быть и между create-modify и т.п. --->
|
||||
|
||||
|
||||
<cfset checkUniqueness(
|
||||
arguments.svcOperationCfsParamId,
|
||||
qSvcOperationCfsParam.svc_operation_cfs_param,
|
||||
arguments.paramValue,
|
||||
qSvcOperationCfsParam.unique_scope,
|
||||
arguments.instanceOperationCfsParamUid
|
||||
)/>
|
||||
|
||||
)/>
|
||||
</cffunction>
|
||||
|
||||
<cffunction name="checkUniqueness" returnType="void">
|
||||
|
||||
Reference in New Issue
Block a user