[英]Error querying database. Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for getSecurityRowCount
Below is my mybatis.xml file - 以下是我的mybatis.xml文件-
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.principal.pfunds.service.rest.jdbcmanager.SecurityManagers">
<select id="getSecurityRowCount" parameterType="com.principal.pfunds.service.rest.mybatis.SecurityParam"
resultType="java.lang.Integer">
SELECT COUNT(*) ROWSCOUNT
FROM
${schema}.A_PDC_SCRTY
WHERE
TOKEN_ID = #{tokenID}
AND RSLT_TYP = #{resultType}
AND SVC_CD = #{svcCode}
</select>
And I am calling this query using below code statement- 我使用下面的代码语句调用此查询-
Integer securityRowCount = getSqlSession().selectOne("getSecurityRowCount", securityParam);
I am trying to get row count but it is giving me error as: 我正在尝试获取行数,但它给我以下错误:
Exception in getSecurityRowCount(): org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for getSecurityRowCount
### Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for getSecurityRowCount
[4/13/17 22:05:17:734 IST] 000000a4 SystemOut O
Please help me out. 请帮帮我。 I am not able to understand what went wrong here.
我无法理解这里出了什么问题。 Thanks!
谢谢!
在文档中 ,语句由其完整限定名称(带名称空间的前缀语句ID)引用:
selectOne("com.principal.pfunds.service.rest.jdbcmanager.SecurityManagers.getSecurityRowCount", securityParam);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.