org.apache.ibatis.binding.BindingException: Mapper method attempted to return null from a method with a primitive return type (int).
错误写法:
<select id="updatePayoffStatusById" resultType="int">
update bu_payoff set payoff_status = #{payoffStatus} where id = #{id}
</select>
int updatePayoffStatusById(@Param("id") Integer id, @Param("payoffStatus") Integer payoffStatus);
正确写法:
<select id="updatePayoffStatusById" >
update bu_payoff set payoff_status = #{payoffStatus} where id = #{id}
</select>
void updatePayoffStatusById(@Param("id") Integer id, @Param("payoffStatus") Integer payoffStatus);