Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
Zhaoyang 2020-03-02 09:36:06 +08:00
commit 43be263768
2 changed files with 13 additions and 0 deletions

View File

@ -82,6 +82,13 @@ public interface BaseService<T> {
*/
boolean updateEntity(Wrapper updateWrapper);
/**
* 批量更新entity
* @param entityList
* @return
*/
boolean updateEntities(Collection<T> entityList);
/***
* 创建或更新entityentity.id存在则新建否则更新
* @param entity

View File

@ -112,6 +112,12 @@ public class BaseServiceImpl<M extends BaseCrudMapper<T>, T> extends ServiceImpl
return success;
}
@Override
public boolean updateEntities(Collection<T> entityList) {
boolean success = super.updateBatchById(entityList);
return success;
}
@Override
public boolean createOrUpdateEntity(T entity) {
boolean success = super.saveOrUpdate(entity);