mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	全量保存或更新时判断数组长度再继续
This commit is contained in:
		@@ -149,10 +149,12 @@ public class ServicePlusImpl<M extends BaseMapperPlus<T>, T, V> extends ServiceI
 | 
			
		||||
				updateList.add(entity);
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if (updateBatchById(updateList)) {
 | 
			
		||||
		if (updateList.size()>0 && updateBatchById(updateList)) {
 | 
			
		||||
			row += updateList.size();
 | 
			
		||||
		}
 | 
			
		||||
		row += baseMapper.insertAll(addList);
 | 
			
		||||
        if (addList.size() > 0) {
 | 
			
		||||
            row += baseMapper.insertAll(addList);
 | 
			
		||||
        }
 | 
			
		||||
		return row == entityList.size();
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user