最初代码:
<update >
set del_flag='0'
</when>
<otherwise>
set del_flag='1'
</otherwise>
</choose>
where test_id=#{testId}and user_id=#{userId}
</update>
 
结果:一直执行otherwise标签中的方法:
解决方法:
<update >
set del_flag='0'
</when>
<otherwise>
set del_flag='1'
</otherwise>
</choose>
where test_id=#{testId}and user_id=#{userId}
</update>
参考内容:
https://code.google.com/p/mybatis/issues/detail?id=262

相关文章:

  • 2021-10-05
  • 2022-12-23
  • 2022-02-25
  • 2021-11-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-14
  • 2021-12-03
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案