mybatis 返回类型为 java.lang.String 接收为null的情景

<select >
select temp_table from orders_status where chaxun=#{chaxun};
</select>
String db_tempTable = sqlSession.selectOne(MybatisNamespace.ordersStatus_selectOnly,chaxun);  拿到的是 null

改为下面的就可以了
<select >
select temp_table from orders_status where chaxun=#{chaxun};
</select>