主题:查询sqlmanager.select报错

zhaotingfang 2017年11月30日 38

public List<PlaceModel> findByPdid(int pdId) { Map<String, Object> paras = new HashMap<String, Object>(); paras.put("id", pdId); List<PlaceModel> placeModelList = sqlManager.select("placeModel.findByPdid", PlaceModel.class, paras); return placeModelList;}

报错

java.lang.NoSuchMethodError: org.beetl.core.statement.PlaceholderST.getFormat()Lorg/beetl/core/statement/FormatExpression; at org.beetl.sql.core.engine.SQLPlaceholderST.<init>(SQLPlaceholderST.java:46) at org.beetl.sql.core.PlaceHolderListener.onEvent(PlaceHolderListener.java:25) at org.beetl.core.engine.StatementParser.exec(StatementParser.java:114) at org.beetl.core.engine.StatementParser.parse(StatementParser.java:45) at org.beetl.sql.core.engine.SQLTemplateEngine.modifyStatemetn(SQLTemplateEngine.java:33) at org.beetl.sql.core.engine.SQLTemplateEngine.createProgram(SQLTemplateEngine.java:22) at org.beetl.core.GroupTemplate.loadTemplate(GroupTemplate.java:636) at org.beetl.core.GroupTemplate.getTemplateByLoader(GroupTemplate.java:562) at org.beetl.core.GroupTemplate.getTemplate(GroupTemplate.java:526) at org.beetl.sql.core.SQLScript.run(SQLScript.java:70) at org.beetl.sql.core.SQLScript.run(SQLScript.java:61) at org.beetl.sql.core.SQLScript.select(SQLScript.java:325) at org.beetl.sql.core.SQLManager.select(SQLManager.java:480) at org.beetl.sql.core.SQLManager.select(SQLManager.java:462) at com.vastio.service.impl.PlaceModelServiceImpl.findByPdid(PlaceModelServiceImpl.java:25)

闲大赋 2017年11月30日

beetl 版本需要升级到最新

作者:闲大赋
官网:
qq群:219324263
微信捐助开源 支付宝捐助开源