|
@@ -51,8 +51,11 @@ import org.springframework.jdbc.core.JdbcTemplate;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
|
|
import java.util.*;
|
|
|
+import java.util.concurrent.ExecutorService;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
@@ -90,6 +93,8 @@ public class ArchiveTreeContractServiceImpl extends BaseServiceImpl<ArchiveTreeC
|
|
|
|
|
|
private final JdbcTemplate jdbcTemplate;
|
|
|
|
|
|
+ private ExecutorService executorService;
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -1587,5 +1592,14 @@ public class ArchiveTreeContractServiceImpl extends BaseServiceImpl<ArchiveTreeC
|
|
|
return baseMapper.getArchiveTreeContractDto(dtos,projectId);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public void addArchiveTreeContract(List<ArchiveTreeContract> archiveTreeContracts, Long rootId){
|
|
|
+ executorService.execute(()->{
|
|
|
+ this.saveBatch(archiveTreeContracts);
|
|
|
+ ArchiveTreeContract rootContract = this.getById(rootId);
|
|
|
+ });
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|