see~see

Results 1 issues of see~see

使用 Mapper 的 `updateByPrimaryKeySelective ` 接口更新记录非常方便,但也遇到一个问题,就是在更新非 String 类型的字段 `columnA` 时,如果我确实需要更新 `columnA` 为 `null` (即 set columnA=null),这个时候 `updateByPrimaryKeySelective ` 接口会把 `columnA` 过滤掉。 我知道可以使用 `updateByPrimaryKey` 来强制更新所有字段,但前端传过来的一般都是需要更新的部分字段,这样就必须先去库里查询该记录,然后再修改需要更改的记录后使用 `updateByPrimaryKey` 存回库里。这样的话,感觉比较麻烦一些,还不如直接在 mapper.xml 中写 sql 了。...

增强