Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
43be263768
|
@ -82,6 +82,13 @@ public interface BaseService<T> {
|
||||||
*/
|
*/
|
||||||
boolean updateEntity(Wrapper updateWrapper);
|
boolean updateEntity(Wrapper updateWrapper);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量更新entity
|
||||||
|
* @param entityList
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
boolean updateEntities(Collection<T> entityList);
|
||||||
|
|
||||||
/***
|
/***
|
||||||
* 创建或更新entity(entity.id存在则新建,否则更新)
|
* 创建或更新entity(entity.id存在则新建,否则更新)
|
||||||
* @param entity
|
* @param entity
|
||||||
|
|
|
@ -112,6 +112,12 @@ public class BaseServiceImpl<M extends BaseCrudMapper<T>, T> extends ServiceImpl
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean updateEntities(Collection<T> entityList) {
|
||||||
|
boolean success = super.updateBatchById(entityList);
|
||||||
|
return success;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean createOrUpdateEntity(T entity) {
|
public boolean createOrUpdateEntity(T entity) {
|
||||||
boolean success = super.saveOrUpdate(entity);
|
boolean success = super.saveOrUpdate(entity);
|
||||||
|
|
Loading…
Reference in New Issue