03 2021 档案
记录一下mybaits 属性回填的方式
摘要:1. 实体类 @Datapublic class Person { private Long id; private String name;} 2. SQL <select id="getNameById" resultType="com.entity.Person"> select name f 阅读全文
posted @ 2021-03-28 22:26 yang希军 阅读(110) 评论(0) 推荐(0)
记录一次Mybaits(3.2.2) foreach 的BUG
摘要:背景 1.1 一个SQL查询 比如下面的 <sql id="selectCount"> select count(*) from `user` <where> <if test="names != null and names.size > 0"> name in ( <foreach collec 阅读全文
posted @ 2021-03-26 11:32 yang希军 阅读(156) 评论(0) 推荐(0)