问题:
Mybatis中入到参数问题
原因: 传参有多个时发生!!
解决:
解决办法:

(1)直接把值改成数字

<select id="LoginUser" parameterType="String" resultMap="userMap">
  SELECT * FROM user where emplnumb = #{0} and password=#{1}
</select>

(2)在变量上加注解@Param

   List<Property> selectOrder(@Param("page") Page page,@Param("cid") int cid);

<select id="selectOrder" resultMap="property" >
        select * from t_property WHERE category_id = #{cid} order by id asc limit #{page.start} , #{page.count}
 </select>

相关文章:

  • 2021-08-22
  • 2022-01-17
  • 2021-09-14
  • 2022-01-24
  • 2021-06-15
猜你喜欢
  • 2021-06-25
  • 2022-12-23
  • 2022-02-23
  • 2021-07-24
  • 2021-12-06
  • 2021-09-26
相关资源
相似解决方案