public interface IMysqlUpdateMapperPlus<T>
Modifier and Type | Method and Description |
---|---|
Integer |
updateOneByPk(String key,
T obj)
修改一条数据,不忽略 null,空字符串
注意:key 是否为null,是否为空字符串,是否为 不存在的属性;obj 是否为null;obj 主键值是否为null,空字符串; 入参均不得为null或者为空,为防止造成误修改数据,目前采用SQL语句错误方式处理(“where”后面无内容) |
Integer |
updateOneByPkIgnoreNullEmpty(String key,
T obj)
修改一条数据,如果属性为 null ,或者 为空字符串,则忽略这些属性
注意:key 是否为null,是否为空字符串,是否为 不存在的属性;obj 是否为null;obj 主键值是否为null,空字符串; 入参均不得为null或者为空,为防止造成误修改数据,目前采用SQL语句错误方式处理(“where”后面无内容) |
@UpdateProvider(type=UpdateMapperPlusProvider.class, method="dynamicSQL") Integer updateOneByPkIgnoreNullEmpty(@Param(value="key") String key, @Param(value="obj") T obj)
key
- 主键名称(Java类主键属性名称)obj
- @UpdateProvider(type=UpdateMapperPlusProvider.class, method="dynamicSQL") Integer updateOneByPk(@Param(value="key") String key, @Param(value="obj") T obj)
key
- obj
- Copyright © 2018. All rights reserved.