Skip to content

Commit

Permalink
更新文档注释.
Browse files Browse the repository at this point in the history
  • Loading branch information
nieqiurong committed Mar 23, 2024
1 parent 49383b1 commit c57cf78
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public MybatisMapperBuilderAssistant(Configuration configuration, String resourc
super(configuration, resource);
}

@Override
public ResultMapping buildResultMapping(Class<?> resultType, String property, String column, Class<?> javaType,
JdbcType jdbcType, String nestedSelect, String nestedResultMap, String notNullColumn, String columnPrefix,
Class<? extends TypeHandler<?>> typeHandler, List<ResultFlag> flags, String resultSet, String foreignColumn,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,14 @@ default int deleteByMap(Map<String, Object> columnMap) {
/**
* 根据 whereEntity 条件,更新记录
*
* @param entity 实体对象 (set 条件值,可以为 null)
* @param entity 实体对象 (set 条件值,可以为 null,当entity为null时,无法进行自动填充)
* @param updateWrapper 实体对象封装操作类(可以为 null,里面的 entity 用于生成 where 语句)
*/
int update(@Param(Constants.ENTITY) T entity, @Param(Constants.WRAPPER) Wrapper<T> updateWrapper);

/**
* 根据 Wrapper 更新记录
* <p>此方法无法进行自动填充,如需自动填充请使用{@link #update(Object, Wrapper)}</p>
*
* @param updateWrapper {@link UpdateWrapper} or {@link LambdaUpdateWrapper}
* @since 3.5.4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public interface ChainUpdate<T> extends ChainWrapper<T> {

/**
* 更新数据
* <p>此方法无法进行自动填充,如需自动填充请使用{@link #update(Object)}</p>
*
* @return 是否成功
*/
Expand All @@ -38,7 +39,7 @@ default boolean update() {
/**
* 更新数据
*
* @param entity 实体类
* @param entity 实体类(当entity为空时无法进行自动填充)
* @return 是否成功
*/
default boolean update(T entity) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ default boolean updateById(T entity) {

/**
* 根据 UpdateWrapper 条件,更新记录 需要设置sqlset
* <p>此方法无法进行自动填充,如需自动填充请使用{@link #update(Object, Wrapper)}</p>
*
* @param updateWrapper 实体对象封装操作类 {@link com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper}
*/
Expand All @@ -248,7 +249,7 @@ default boolean update(Wrapper<T> updateWrapper) {
/**
* 根据 whereEntity 条件,更新记录
*
* @param entity 实体对象
* @param entity 实体对象(当entity为空时无法进行自动填充)
* @param updateWrapper 实体对象封装操作类 {@link com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper}
*/
default boolean update(T entity, Wrapper<T> updateWrapper) {
Expand Down

0 comments on commit c57cf78

Please sign in to comment.