MyBatis
koney·C
选择决定命运!
展开
-
MyBatis中<foreach>参数存在多余空格问题
原因xml文档不规范!将 foreach 写到同一行!!!根据情况适当调整格式吧,有时候不一定是语法的问题!(总结思路)错误写法 ↓<delete id="multipleDelete"> DELETE FROM detection WHERE id IN <foreach collection="idList" item="item" ope...原创 2019-11-17 11:57:18 · 4203 阅读 · 2 评论 -
MyBatis2.1.1关于大于小于转译的问题
MyBatis版本:2.1.1OK!<if test="detection.collectTimeStart != null and detection.collectTimeStart!='' "> and DATE(collectTime) <![CDATA[>=]]> #{detection.collectTimeStart}...原创 2019-11-10 12:14:47 · 120 阅读 · 0 评论