调用的方法:

  List<Card> temp = cardService.queryRepeat(Type,shop);

xml:

   <select >
      select * from card where card_type=#{type} and shop=#{shop}
   </select>

 

此時报错:Parameter '0' not found.Available parameters are [arg1, arg0, param1, param2]

 

解决方法: 

  <select >
      select * from card where card_type=#{arg0} and shop=#{arg1}
   </select>

相关文章:

  • 2022-12-23
  • 2021-08-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-02
  • 2021-06-05
  • 2021-06-20
猜你喜欢
  • 2021-12-12
  • 2021-07-16
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
  • 2022-12-23
  • 2021-06-29
相关资源
相似解决方案