mybatis中使用map,进行update或insert
时间:2020-01-31 10:36:47
收藏:0
阅读:754
当update一个对象时,可以用Map
在 xml 中 values 的值就是map的key,map的value是前端传来的,这样就不用parameterType=“********.user” 更新时就少些很多<if test=" pwd != null">去判断
原文:https://www.cnblogs.com/ukong/p/12244686.html
评论(0)