Mapper.xml文件,此段代码的意思大概讲一下
里面的内容
2条回答 默认 最新
- Grandpa_Rick 2022-11-04 15:50关注
有空还是去查查官方文档最好
- foreach标签 for循环嘛
- 这个标签的属性
2.1 collection : 从这个集合中遍历元素, 你提供的参数集合 statusArray
2.2 item: 自定义编译的元素名称, 起名字叫item
2.3 open: 以什么开始 (
2.4 close: 以什么结束 )
2.5 separator: 元素以什么分隔 ,
sql : select ... from sh_lend_order slo where ... and slo.status in (xx,xxx,xxx,xxx)
就跟 "(" + String.join(",", list) + ")" 一个意思本回答被题主选为最佳回答 , 对您是否有帮助呢?解决评论 打赏 举报 编辑记录无用 2