gpt4 book ai didi

java - if条件下的json查询

转载 作者:太空宇宙 更新时间:2023-11-04 14:31:01 26 4
gpt4 key购买 nike

{
"class": "premnath",
"forInitiatorOnly": true,
"text": "#if($payload.isUploaded) ${payload.getModuleRef().moduleName()}
completed successfully.
Number of records processed were ${payload.getNoOfRecords()} and
if(${payload.getThin()} !=0)}
number of thins are ${payload.getThin()}
#end"
}

if 条件没有检查的情况下,我得到这样的输出

module is uploaded successfully. Number of records:9 and (2!=0) number of thins:9

您能告诉我如何检查状况吗?

最佳答案

if(${payload.getThin()} !=0)}

最后一个 } 不应该在那里,不是吗?

关于java - if条件下的json查询,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26141070/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com