时间:2021-07-01 10:21:17 帮助过:5人阅读
结果我按每个条件试着查,发现其他都没问题,有一个字段作为条件查询时查询不到,
于是试着把#取值换成$取值,好了
<select id="getInventoryByThree" parameterType="com.docc.model.Inventory"
resultType="com.docc.model.Inventory">
select * from BUS_INVENTORY
where company = #{company,jdbcType=VARCHAR}
and reportdate = #{reportdate,jdbcType=CHAR}
and type = ‘${type}‘
</select>
Mybatis的SQL语句根据某些字段查不到值(语法不错)
标签:pre any jdbc nbsp sel 遇到 sql语句 param select