mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	update 优化 saveAll 空列表校验
This commit is contained in:
		@@ -127,6 +127,9 @@ public class ServicePlusImpl<M extends BaseMapperPlus<T>, T, V> extends ServiceI
 | 
			
		||||
	 */
 | 
			
		||||
	@Override
 | 
			
		||||
	public boolean saveAll(Collection<T> entityList) {
 | 
			
		||||
		if (CollUtil.isEmpty(entityList)) {
 | 
			
		||||
			return false;
 | 
			
		||||
		}
 | 
			
		||||
		return baseMapper.insertAll(entityList) == entityList.size();
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user