org.ssssssss.magicapi.modules.MongoCollectionExtension Maven / Gradle / Ivy
package org.ssssssss.magicapi.modules;
import com.mongodb.client.FindIterable;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.model.UpdateOptions;
import org.bson.Document;
import org.ssssssss.script.annotation.Comment;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
/**
* MongoCollection方法扩展
*/
public class MongoCollectionExtension {
@Comment("执行批量插入操作")
public void insert(MongoCollection collection, @Comment("要插入的集合") List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy