Result map does not contain a value for Java.lang.Integer 报错解决办法
2017-06-07 10:22
465 查看
报错:Result map does not contain a value for Java.lang.Integer
办法一:将resultMap="java.lang.Integer"改为resultType="java.lang.Integer"就可以解决问题
办法二:[html] view plain copy<resultMap id="ResultOfInteger" type="java.lang.Integer">
<result column="budget" property="budget" jdbcType="INTEGER" />
</resultMap>
[html] view plain copy<select id="select" resultMap="ResultOfInteger" parameterType="java.lang.Integer" >
SELECT CASE WHEN moneyIS NULL THEN 0 ELSE moneyEND AS money
FROM (
select SUM(money) AS money
from ABC
where user_id = #{user_id,jdbcType=INTEGER} AND state = 11 AND is_del = 0
) t
</select>
------》》》原文出处
相关文章推荐
- Result map does not contain a value for java.lang.Integer
- Result Maps collection does not contain value for java.lang.Integer
- MyBatis出错Result Maps collection does not contain value for java.lang.Integer
- MyBatis出错Result Maps collection does not contain value for java.lang.Integer
- Caused by: java.lang.IllegalArgumentException: Result Maps collection does not contain value for com
- Result Maps collection does not contain value for java.lang.Long 错误
- spring整合mybatis bug解决java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for ...
- Result Maps collection does not contain value for java.lang.Long
- java.lang.IllegalArgumentException: Result Maps collection does not contain value forcom.imooc.bean
- 解决mybatis,java.lang.IllegalArgumentException Mapped Statements collection does not contain value for
- Mybatis 错误:Result Maps collection does not contain value for java.util.Map
- Result Maps collection does not contain value for java.util.Map
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
- Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
- MyBatis异常java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for queryAll
- Error querying database. Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for …
- mybatis:java.lang.IllegalArgumentException:Parameter Maps collection does notcontain value for ...
- Could not find parameter map Java.util.Map Parameter Maps collection does not contain value for java
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for xxxx