转!!mybatis xml 传值 if test判断

当mapper方法传参数 为 String时,且xml中药进行参数比较 比如 是不是等于1 或者等于2

 

方式1.

 

方式2.

 

 

转自:https://blog.csdn.net/chenaini119/article/details/51917263

posted @ 2018-10-23 19:42  乌云de博客  阅读(5222)  评论(0编辑  收藏  举报