if条件下的json查询

时间:2014-10-01 12:10:50

标签: java sql json

{
 "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

请告诉我们如何查看病情?

1 个答案:

答案 0 :(得分:0)

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

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