mirror of
https://gitee.com/ssssssss-team/magic-boot.git
synced 2025-01-31 17:12:49 +08:00
48 lines
1.3 KiB
Plaintext
48 lines
1.3 KiB
Plaintext
{
|
|
"properties" : { },
|
|
"id" : "copy1653112036134d44643",
|
|
"script" : null,
|
|
"groupId" : "7e31035eb8d4471b9fc2923ea1d966c3",
|
|
"name" : "根据keyLikeCondition获取数据值",
|
|
"createTime" : null,
|
|
"updateTime" : 1653118334978,
|
|
"lock" : null,
|
|
"createBy" : null,
|
|
"updateBy" : null,
|
|
"path" : "/getLikeCondition",
|
|
"description" : null,
|
|
"returnType" : null,
|
|
"mappingPath" : null,
|
|
"parameters" : [ {
|
|
"name" : "configureKey",
|
|
"value" : null,
|
|
"description" : null,
|
|
"required" : false,
|
|
"dataType" : "String",
|
|
"type" : "java.lang.String",
|
|
"defaultValue" : null,
|
|
"validateType" : null,
|
|
"error" : null,
|
|
"expression" : null,
|
|
"children" : null
|
|
}, {
|
|
"name" : "configureCondition",
|
|
"value" : null,
|
|
"description" : null,
|
|
"required" : false,
|
|
"dataType" : "String",
|
|
"type" : null,
|
|
"defaultValue" : null,
|
|
"validateType" : null,
|
|
"error" : null,
|
|
"expression" : null,
|
|
"children" : null
|
|
} ]
|
|
}
|
|
================================
|
|
var configure = db.cache(`configure:${configureKey}${configureCondition}`).selectOne("""
|
|
select configure_value from sys_configure where configure_key = #{configureKey}
|
|
?{configureCondition, and configure_condition like concat('%',#{configureCondition},'%')}
|
|
""")
|
|
|
|
return configure == null ? "" : configure.get("configureValue") |