|
@@ -2,16 +2,21 @@ package org.springblade.archive.controller;
|
|
|
|
|
|
import cn.hutool.http.HttpUtil;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.codec.digest.DigestUtils;
|
|
|
import org.springblade.archive.dto.*;
|
|
|
+
|
|
|
import org.springblade.archive.entity.ArchiveJiLinPush;
|
|
|
-import org.springblade.archive.feign.ArchiveAutoClient;
|
|
|
+import org.springblade.archive.entity.JiLinArchiveAutoDto;
|
|
|
import org.springblade.archive.service.IArchiveJiLinPushService;
|
|
|
import org.springblade.archive.service.IArchivesAutoService;
|
|
|
+import org.springblade.archive.service.IJiLinArchiveAutoDtoService;
|
|
|
+import org.springblade.archive.service.impl.JiLinArchiveAutoDtoImpl;
|
|
|
+import org.springblade.common.utils.SnowFlakeUtil;
|
|
|
import org.springblade.manager.dto.ArchiveTreeContractDTO;
|
|
|
import org.springblade.manager.feign.ArchiveTreeContractClient;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -35,9 +40,10 @@ public class JinLinPushApiController {
|
|
|
private static final String PYSYSTEMID="9";
|
|
|
private static final Long jlPyProjId=72900L;
|
|
|
private static final Long cqPyProjectId=1644168307341238273L;
|
|
|
+
|
|
|
//烟长
|
|
|
- private static final String YCPYCLIENTID="hqs_veams03";
|
|
|
- private static final String YCPYCLIENTSECRETKEY="FA3E91A9C2F04ED5A4D76E2DF4D09463";
|
|
|
+ private static final String YCCLIENTID="hqs_veams03";
|
|
|
+ private static final String YCCLIENTSECRETKEY="FA3E91A9C2F04ED5A4D76E2DF4D09463";
|
|
|
private static final String YCSYSTEMID="9";
|
|
|
private static final Long jlYcProjId=73100L;
|
|
|
private static final Long cqYcProjectId=1644178425269166081L;
|
|
@@ -46,7 +52,7 @@ public class JinLinPushApiController {
|
|
|
private static final String HJCLIENTSECRETKEY="50644A2D550A42E88964FE63B7C6D4E7";
|
|
|
private static final String HJSYSTEMID="9";
|
|
|
private static final Long jlHjProjId=73200L;
|
|
|
- private static final Long jlHjProjectId=1644178786029641730L;
|
|
|
+ private static final Long cqHjProjectId=1644178786029641730L;
|
|
|
|
|
|
@Resource
|
|
|
private IArchivesAutoService iArchivesAutoService;
|
|
@@ -57,25 +63,28 @@ public class JinLinPushApiController {
|
|
|
@Resource
|
|
|
private IArchiveJiLinPushService iArchiveJiLinPushService;
|
|
|
|
|
|
+ @Resource
|
|
|
+ private IJiLinArchiveAutoDtoService iJiLinArchiveAutoDtoService;
|
|
|
+
|
|
|
@GetMapping("/test")
|
|
|
public void JinlinApiPush() throws JsonProcessingException {
|
|
|
//获取发送get请求的校验码
|
|
|
- String query = "clientSecretKey="+PYCLIENTSECRETKEY;
|
|
|
+ String query = "clientSecretKey="+HJCLIENTSECRETKEY;
|
|
|
String querySignature = DigestUtils.md5Hex(query).toUpperCase();
|
|
|
// 获取吉林项目合同段的地址
|
|
|
String queryUrl = "https://hgqs.jtyst.jl.gov.cn:6100/dock/openapi/hqsws/hqsprojpact/query";
|
|
|
HashMap<String,String> queryHeaders=new HashMap<>();
|
|
|
queryHeaders.put("Content-Type", "application/json");
|
|
|
- queryHeaders.put("clientId",PYCLIENTID);
|
|
|
+ queryHeaders.put("clientId",HJCLIENTID);
|
|
|
queryHeaders.put("signature",querySignature);
|
|
|
- queryHeaders.put("systemId",PYSYSTEMID);
|
|
|
+ queryHeaders.put("systemId",HJSYSTEMID);
|
|
|
String queryBody = HttpUtil.createGet(queryUrl).addHeaders(queryHeaders).execute().body();
|
|
|
JSONObject jsonObject=JSONObject.parseObject(queryBody);
|
|
|
//吉林蒲烟项目合同段信息
|
|
|
List<PactAndProjDto> pactAndProjDtoList = JSONObject.parseArray(jsonObject.getString("data").toString(),PactAndProjDto.class);
|
|
|
|
|
|
//重庆吉林蒲烟项目合同段信息(中间表)
|
|
|
- List<ArchiveJiLinPush>archiveJiLinPushList= iArchiveJiLinPushService.getArchiveJiLinPush(jlPyProjId);
|
|
|
+ List<ArchiveJiLinPush>archiveJiLinPushList= iArchiveJiLinPushService.getArchiveJiLinPush(jlHjProjId);
|
|
|
|
|
|
//中间项目合同中间集合
|
|
|
List<JiLinQueryDto>dtos=new ArrayList<>();
|
|
@@ -94,8 +103,9 @@ public class JinLinPushApiController {
|
|
|
}
|
|
|
}
|
|
|
//传入重庆的项目ID,和吉林需要的合同段集合 查出重庆的目录树
|
|
|
- List<ArchiveTreeContractDTO> archiveTreeContractDtos = archiveTreeContractClient.getArchiveTreeContractDto(dtos,cqPyProjectId);
|
|
|
- System.out.println("重庆的目录树"+archiveTreeContractDtos.size());
|
|
|
+ Long projectId=cqHjProjectId;
|
|
|
+ List<ArchiveTreeContractDTO> archiveTreeContractDtos = archiveTreeContractClient.getArchiveTreeContractDto(dtos,projectId);
|
|
|
+ System.out.println(archiveTreeContractDtos.size());
|
|
|
//构建需要传给吉林的目录树 数据
|
|
|
List<JiLinPushTreeDto>jiLinPushTreeDtos=new ArrayList<>();
|
|
|
for (ArchiveTreeContractDTO archiveTreeContractDto : archiveTreeContractDtos) {
|
|
@@ -107,7 +117,7 @@ public class JinLinPushApiController {
|
|
|
jiLinPushTreeDto.setAddUserName(archiveTreeContractDto.getUpdateUserName());
|
|
|
jiLinPushTreeDto.setPactId(archiveTreeContractDto.getContractId());
|
|
|
//直接统一设置好目录树项目Id为吉林的项目ID
|
|
|
- jiLinPushTreeDto.setProjId(jlPyProjId);
|
|
|
+ jiLinPushTreeDto.setProjId(jlHjProjId);
|
|
|
jiLinPushTreeDtos.add(jiLinPushTreeDto);
|
|
|
|
|
|
}
|
|
@@ -121,214 +131,148 @@ public class JinLinPushApiController {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- System.out.println("推送的目录树"+jiLinPushTreeDtos.size());
|
|
|
- System.out.println(jiLinPushTreeDtos.get(20));
|
|
|
-// String tree= JSONObject.toJSONString(jiLinPushTreeDtos);
|
|
|
-// String treeMsg=tree+PYCLIENTSECRETKEY;
|
|
|
-// String treeSignature = DigestUtils.md5Hex(treeMsg).toUpperCase();
|
|
|
-// //传输吉林目录树的地址
|
|
|
-// String treeUrl="https://hgqs.jtyst.jl.gov.cn:6100/dock/openapi/veams/api/doc/tree";
|
|
|
-// HashMap<String,String> treeHeaders=new HashMap<>();
|
|
|
-// treeHeaders.put("Content-Type", "application/json");
|
|
|
-// treeHeaders.put("clientId",PYCLIENTID);
|
|
|
-// treeHeaders.put("signature",treeSignature);
|
|
|
-// treeHeaders.put("systemId",PYSYSTEMID);
|
|
|
-// //开始传输目录树
|
|
|
-// String treeBody = HttpUtil.createPost(treeUrl).addHeaders(treeHeaders).body(tree).contentType("application/json").execute().body();
|
|
|
-// System.out.println(treeBody);
|
|
|
-
|
|
|
- //根据项目ID,合同段ID 查询出所有符合的档案数据
|
|
|
- List<ArchiveAutoDto>archiveAutoDtos=iArchivesAutoService.getArchiveAutoDtoList(cqPyProjectId,dtos);
|
|
|
- //双重循环查出来的档案 将我们的项目 合同ID 设置为吉林的
|
|
|
- for (ArchiveAutoDto archiveAutoDto : archiveAutoDtos) {
|
|
|
- archiveAutoDto.setProjectId(jlPyProjId);
|
|
|
- for (ArchiveJiLinPush archiveJiLinPush : archiveJiLinPushList) {
|
|
|
- if (archiveAutoDto.getContractId() != null && archiveAutoDto.getContractId().equals(archiveJiLinPush.getCqContractId())) {
|
|
|
- archiveAutoDto.setContractId(archiveJiLinPush.getJlPactId());
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- System.out.println("档案"+archiveAutoDtos.size());
|
|
|
- System.out.println(archiveAutoDtos.get(20));
|
|
|
+ System.out.println(jiLinPushTreeDtos.size());
|
|
|
|
|
|
- List<JiLinPushTomeDto> list=new ArrayList<>();
|
|
|
- for (int i = 0; i < archiveAutoDtos.size(); i++) {
|
|
|
- if(i>=20){
|
|
|
- break;
|
|
|
- }
|
|
|
- JiLinPushTomeDto jiLinPushTomeDto=new JiLinPushTomeDto();
|
|
|
- jiLinPushTomeDto.setPactId(jlPyProjId);
|
|
|
- jiLinPushTomeDto.setPactId(archiveAutoDtos.get(i).getContractId());
|
|
|
- jiLinPushTomeDto.setKid(archiveAutoDtos.get(i).getNodeId()+1L);
|
|
|
- jiLinPushTomeDto.setSortID(archiveAutoDtos.get(i).getNodeId());
|
|
|
- jiLinPushTomeDto.setTomeSuper(archiveAutoDtos.get(i).getName());
|
|
|
- jiLinPushTomeDto.setRecordNum(archiveAutoDtos.get(i).getFileNumber());
|
|
|
- jiLinPushTomeDto.setAddUserName(archiveAutoDtos.get(i).getUpdateUser());
|
|
|
- jiLinPushTomeDto.setAddTime(archiveAutoDtos.get(i).getCreateTime());
|
|
|
- jiLinPushTomeDto.setBWeaveDate(archiveAutoDtos.get(i).getStartDate());
|
|
|
- jiLinPushTomeDto.setEWeaveDate(archiveAutoDtos.get(i).getEndDate());
|
|
|
- jiLinPushTomeDto.setKeepTerm(archiveAutoDtos.get(i).getStorageTime());
|
|
|
- jiLinPushTomeDto.setSortID(Long.valueOf(i));
|
|
|
- jiLinPushTomeDto.setMutualNum("0");
|
|
|
- jiLinPushTomeDto.setWeaveUnit(archiveAutoDtos.get(i).getUnit());
|
|
|
- jiLinPushTomeDto.setSecrecy(archiveAutoDtos.get(i).getSecretLevel());
|
|
|
- jiLinPushTomeDto.setYear(Integer.parseInt(archiveAutoDtos.get(i).getStorageTime()));
|
|
|
- list.add(jiLinPushTomeDto);
|
|
|
- i++;
|
|
|
- log.info(""+i);
|
|
|
- }
|
|
|
+ String tree= JSONObject.toJSONString(jiLinPushTreeDtos);
|
|
|
+ String treeMsg=tree+HJCLIENTSECRETKEY;
|
|
|
+ String treeSignature = DigestUtils.md5Hex(treeMsg).toUpperCase();
|
|
|
+ //传输吉林目录树的地址
|
|
|
+ String treeUrl="https://hgqs.jtyst.jl.gov.cn:6100/dock/openapi/veams/api/doc/tree";
|
|
|
+ HashMap<String,String> treeHeaders=new HashMap<>();
|
|
|
+ treeHeaders.put("Content-Type", "application/json");
|
|
|
+ treeHeaders.put("clientId",HJCLIENTID);
|
|
|
+ treeHeaders.put("signature",treeSignature);
|
|
|
+ treeHeaders.put("systemId",HJSYSTEMID);
|
|
|
+ //开始传输目录树
|
|
|
+ String treeBody = HttpUtil.createPost(treeUrl).addHeaders(treeHeaders).body(tree).contentType("application/json").execute().body();
|
|
|
+ System.out.println(tree);
|
|
|
+ System.out.println(treeBody);
|
|
|
|
|
|
+ //根据项目ID,合同段ID 查询出所有符合的档案数据
|
|
|
+// List<JiLinArchiveAutoDto>archiveAutoDtos=iArchivesAutoService.getArchiveAutoDtoList(cqHjProjectId,dtos);
|
|
|
|
|
|
+ //双重循环查出来的档案 将我们的项目 合同ID 设置为吉林的
|
|
|
+// for (JiLinArchiveAutoDto archiveAutoDto : archiveAutoDtos) {
|
|
|
+// Long id = SnowFlakeUtil.getId();
|
|
|
+// Long id1 = SnowFlakeUtil.getId();
|
|
|
+// archiveAutoDto.setProjectId(jlPyProjId);
|
|
|
+// archiveAutoDto.setTomeId(id);
|
|
|
+// archiveAutoDto.setCatlogId(id1);
|
|
|
+// for (ArchiveJiLinPush archiveJiLinPush : archiveJiLinPushList) {
|
|
|
+// if (archiveAutoDto.getContractId() != null && archiveAutoDto.getContractId().equals(archiveJiLinPush.getCqContractId())) {
|
|
|
+// archiveAutoDto.setContractId(archiveJiLinPush.getJlPactId());
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }
|
|
|
+// System.out.println("档案:"+archiveAutoDtos.size());
|
|
|
+// iJiLinArchiveAutoDtoService.saveBatch(archiveAutoDtos);
|
|
|
+// int pageNum=1;
|
|
|
+// int size=500;
|
|
|
+// Page<JiLinArchiveAutoDto> pages=iJiLinArchiveAutoDtoService.queryAll(pageNum,size);
|
|
|
+// System.out.println(pages.getRecords().size());
|
|
|
|
|
|
-// JiLinPushTomeDto jiLinPushTomeDto=new JiLinPushTomeDto();
|
|
|
-// jiLinPushTomeDto.setProjId(72900L);
|
|
|
-// jiLinPushTomeDto.setPactId(44804217L);
|
|
|
-// jiLinPushTomeDto.setKid(1644215386427621385L+1L);
|
|
|
-// jiLinPushTomeDto.setSortID(1644215386427621385L);
|
|
|
-// jiLinPushTomeDto.setTomeSuper("G1221PYJL102001 延吉至长春高速公路大蒲柴河至烟筒山段建设项目PYZJB01合同段2021年K201+516.999-K211+690道路巡视记录");
|
|
|
-// jiLinPushTomeDto.setRecordNum("111");
|
|
|
-// jiLinPushTomeDto.setAddUserName("111");
|
|
|
-// jiLinPushTomeDto.setAddTime("2024-09-11");
|
|
|
-// jiLinPushTomeDto.setBWeaveDate("2024-08-11");
|
|
|
-// jiLinPushTomeDto.setEWeaveDate("2024-09-10");
|
|
|
-// jiLinPushTomeDto.setKeepTerm("3年");
|
|
|
-// jiLinPushTomeDto.setSortID(1L);
|
|
|
-// jiLinPushTomeDto.setMutualNum("0");
|
|
|
-// jiLinPushTomeDto.setWeaveUnit("重庆");
|
|
|
-// jiLinPushTomeDto.setSecrecy("3");
|
|
|
-// jiLinPushTomeDto.setYear(3);
|
|
|
-//
|
|
|
-// JiLinPushTomeDto jiLinPushTomeDto1 = new JiLinPushTomeDto();
|
|
|
-// jiLinPushTomeDto1.setProjId(72900L);
|
|
|
-// jiLinPushTomeDto1.setPactId(44804217L);
|
|
|
-// jiLinPushTomeDto1.setKid(1644215386427621385L+2L);
|
|
|
-// jiLinPushTomeDto1.setSortID(1644215386427621385L);
|
|
|
-// jiLinPushTomeDto1.setTomeSuper("G1221PYJL102001 延吉至长春高速公路大蒲柴河至烟筒山段建设项目PYZJB01合同段2021年K201+516.999-K211+690道路巡视记录");
|
|
|
-// jiLinPushTomeDto1.setRecordNum("111");
|
|
|
-// jiLinPushTomeDto1.setAddUserName("111");
|
|
|
-// jiLinPushTomeDto1.setAddTime("2024-09-11");
|
|
|
-// jiLinPushTomeDto1.setBWeaveDate("2024-08-11");
|
|
|
-// jiLinPushTomeDto1.setEWeaveDate("2024-09-10");
|
|
|
-// jiLinPushTomeDto1.setKeepTerm("3年");
|
|
|
-// jiLinPushTomeDto1.setSortID(1L);
|
|
|
-// jiLinPushTomeDto1.setMutualNum("0");
|
|
|
-// jiLinPushTomeDto1.setWeaveUnit("重庆");
|
|
|
-// jiLinPushTomeDto1.setSecrecy("3");
|
|
|
-// jiLinPushTomeDto1.setYear(3);
|
|
|
-//
|
|
|
-// List<JiLinPushTomeDto>dtos=new ArrayList<>();
|
|
|
-// dtos.add(jiLinPushTomeDto);
|
|
|
-// dtos.add(jiLinPushTomeDto1);
|
|
|
|
|
|
-// String tome=JSONObject.toJSONString(dtos);
|
|
|
-// String tomeMsg=tome+PYCLIENTSECRETKEY;
|
|
|
-// String tomeUrl="https://hgqs.jtyst.jl.gov.cn:6100/dock/openapi/veams/api/doc/tome";
|
|
|
-// String tomeSignature = DigestUtils.md5Hex(tomeMsg).toUpperCase();
|
|
|
-// HashMap<String,String> tomeHeaders=new HashMap<>();
|
|
|
-// tomeHeaders.put("Content-Type", "application/json");
|
|
|
-// tomeHeaders.put("clientId",PYCLIENTID);
|
|
|
-// tomeHeaders.put("signature",tomeSignature);
|
|
|
-// tomeHeaders.put("systemId",PYSYSTEMID);
|
|
|
-// String tomeBody = HttpUtil.createPost(tomeUrl).addHeaders(tomeHeaders).body(tome).contentType("application/json").execute().body();
|
|
|
-// System.out.println(tomeBody);
|
|
|
-//
|
|
|
-// JiLinPushCatalogDto jiLinPushCatalogDto = new JiLinPushCatalogDto();
|
|
|
-// jiLinPushCatalogDto.setProjId(72900L);
|
|
|
-// jiLinPushCatalogDto.setPactId(44804217L);
|
|
|
-// jiLinPushCatalogDto.setKid(1644215386427621385L+2L);
|
|
|
-// jiLinPushCatalogDto.setSortId(1644215386427621385L);
|
|
|
-// jiLinPushCatalogDto.setTomeId(1644215386427621385L+1L);
|
|
|
-// jiLinPushCatalogDto.setFileSuper("1111");
|
|
|
-// jiLinPushCatalogDto.setCatalogRecord("222200");
|
|
|
-// jiLinPushCatalogDto.setAmsFileNum("0");
|
|
|
-// jiLinPushCatalogDto.setFileNum("0");
|
|
|
-// jiLinPushCatalogDto.setWeaveDate("2024-07-09");
|
|
|
-// jiLinPushCatalogDto.setPieceCount(7);
|
|
|
-// jiLinPushCatalogDto.setDutyPerson("豆豆");
|
|
|
-// jiLinPushCatalogDto.setFilePage(7);
|
|
|
-// jiLinPushCatalogDto.setReferenceInfo("0");
|
|
|
-// jiLinPushCatalogDto.setSortOrder(1);
|
|
|
-// jiLinPushCatalogDto.setAddUserName("豆豆");
|
|
|
-// jiLinPushCatalogDto.setAddTime("2024-09-09");
|
|
|
-//
|
|
|
-// JiLinPushCatalogDto jiLinPushCatalogDto1 = new JiLinPushCatalogDto();
|
|
|
-// jiLinPushCatalogDto1.setProjId(72900L);
|
|
|
-// jiLinPushCatalogDto1.setPactId(44804217L);
|
|
|
-// jiLinPushCatalogDto1.setKid(1644215386427621385L+3L);
|
|
|
-// jiLinPushCatalogDto1.setSortId(1644215386427621385L);
|
|
|
-// jiLinPushCatalogDto1.setTomeId(1644215386427621385L+1L);
|
|
|
-// jiLinPushCatalogDto1.setFileSuper("1111");
|
|
|
-// jiLinPushCatalogDto1.setCatalogRecord("222200");
|
|
|
-// jiLinPushCatalogDto1.setAmsFileNum("0");
|
|
|
-// jiLinPushCatalogDto1.setFileNum("0");
|
|
|
-// jiLinPushCatalogDto1.setWeaveDate("2024-07-09");
|
|
|
-// jiLinPushCatalogDto1.setPieceCount(7);
|
|
|
-// jiLinPushCatalogDto1.setDutyPerson("豆豆");
|
|
|
-// jiLinPushCatalogDto1.setFilePage(7);
|
|
|
-// jiLinPushCatalogDto1.setReferenceInfo("0");
|
|
|
-// jiLinPushCatalogDto1.setSortOrder(1);
|
|
|
-// jiLinPushCatalogDto1.setAddUserName("豆豆");
|
|
|
-// jiLinPushCatalogDto1.setAddTime("2024-09-09");
|
|
|
-//
|
|
|
-// List<JiLinPushCatalogDto>jiLinPushCatalogDtoList=new ArrayList<>();
|
|
|
-// String catLog=JSONObject.toJSONString(jiLinPushCatalogDtoList);
|
|
|
-// String catLogMsg=catLog+PYCLIENTSECRETKEY;
|
|
|
-// String catLogUrl="https://hgqs.jtyst.jl.gov.cn:6100/dock/openapi/veams/api/doc/catalog";
|
|
|
-// String catLogSignature = DigestUtils.md5Hex(catLogMsg).toUpperCase();
|
|
|
-// HashMap<String,String> catLogHeaders=new HashMap<>();
|
|
|
-// catLogHeaders.put("Content-Type", "application/json");
|
|
|
-// catLogHeaders.put("clientId",PYCLIENTID);
|
|
|
-// catLogHeaders.put("signature",catLogSignature);
|
|
|
-// catLogHeaders.put("systemId",PYSYSTEMID);
|
|
|
-// String catLogBody = HttpUtil.createPost(catLogUrl).addHeaders(catLogHeaders).body(catLog).contentType("application/json").execute().body();
|
|
|
-// System.out.println(catLogBody);
|
|
|
-// JiLinPushFileUrlDto jiLinPushFileUrlDto = new JiLinPushFileUrlDto();
|
|
|
-// jiLinPushFileUrlDto.setProjId(72900L);
|
|
|
-// jiLinPushFileUrlDto.setPactId(44804217L);
|
|
|
-// jiLinPushFileUrlDto.setKid(1682310830420393984L);
|
|
|
-// jiLinPushFileUrlDto.setCatalogID(1644215386427621385L+2L);
|
|
|
-// jiLinPushFileUrlDto.setAnnexName("G1221PYJL102001 延吉至长春高速公路大蒲柴河至烟筒山段建设项目PYZJB01合同段2021年K201+516.999-K211+690道路巡视记录");
|
|
|
-// jiLinPushFileUrlDto.setTableNumber("G1221PYJL102001");
|
|
|
-// jiLinPushFileUrlDto.setWeaveDate("2024-09-08");
|
|
|
-// jiLinPushFileUrlDto.setAnnexPage(6);
|
|
|
-// jiLinPushFileUrlDto.setFileUrl("https://blade-oss-chongqing.oss-cn-shenzhen.aliyuncs.com//upload/20220713/bd748b37f0a84790f9c3d72d30daedac.pdf");
|
|
|
-// jiLinPushFileUrlDto.setSortOrder(1);
|
|
|
-// jiLinPushFileUrlDto.setAddUserName("豆豆");
|
|
|
-// jiLinPushFileUrlDto.setAddTime("2024-08-09");
|
|
|
-//
|
|
|
-// JiLinPushFileUrlDto jiLinPushFileUrlDto1 = new JiLinPushFileUrlDto();
|
|
|
-// jiLinPushFileUrlDto1.setProjId(72900L);
|
|
|
-// jiLinPushFileUrlDto1.setPactId(44804217L);
|
|
|
-// jiLinPushFileUrlDto1.setKid(1682310830420393984L);
|
|
|
-// jiLinPushFileUrlDto1.setCatalogID(1644215386427621385L+3L);
|
|
|
-// jiLinPushFileUrlDto1.setAnnexName("延吉至长春高速公路大蒲柴河至烟筒山段建设项目");
|
|
|
-// jiLinPushFileUrlDto1.setTableNumber("G1221PYJL102002");
|
|
|
-// jiLinPushFileUrlDto1.setWeaveDate("2024-09-08");
|
|
|
-// jiLinPushFileUrlDto1.setAnnexPage(6);
|
|
|
-// jiLinPushFileUrlDto1.setFileUrl("https://blade-oss-chongqing.oss-cn-shenzhen.aliyuncs.com//upload/20220720/4ba7021876f50e079db67acbdcbd7f28.pdf");
|
|
|
-// jiLinPushFileUrlDto1.setSortOrder(1);
|
|
|
-// jiLinPushFileUrlDto1.setAddUserName("豆豆");
|
|
|
-// jiLinPushFileUrlDto1.setAddTime("2024-08-09");
|
|
|
-// List<JiLinPushFileUrlDto>jiLinPushFileUrlDtoList=new ArrayList<>();
|
|
|
+// List<JiLinPushTomeDto> jiLinPushTomeDtoList=new ArrayList<>();
|
|
|
+// List<JiLinPushCatalogDto>jiLinPushCatalogDtoList=new ArrayList<>();
|
|
|
+// List<JiLinPushFileUrlDto>jiLinPushFileUrlDtoList=new ArrayList<>();
|
|
|
//
|
|
|
+// for (int i = 0; i < archiveAutoDtos.size(); i++) {
|
|
|
+// if(i>=50){
|
|
|
+// break;
|
|
|
+// }
|
|
|
+// Long id = SnowFlakeUtil.getId();
|
|
|
+// //设置档案案卷
|
|
|
+// JiLinPushTomeDto jiLinPushTomeDto=new JiLinPushTomeDto();
|
|
|
+// jiLinPushTomeDto.setPactId(jlPyProjId);
|
|
|
+// jiLinPushTomeDto.setPactId(archiveAutoDtos.get(i).getContractId());
|
|
|
+// jiLinPushTomeDto.setKid(id);
|
|
|
+// jiLinPushTomeDto.setSortID(archiveAutoDtos.get(i).getNodeId());
|
|
|
+// jiLinPushTomeDto.setTomeSuper(archiveAutoDtos.get(i).getName());
|
|
|
+// jiLinPushTomeDto.setRecordNum(archiveAutoDtos.get(i).getFileNumber());
|
|
|
+// jiLinPushTomeDto.setAddUserName(archiveAutoDtos.get(i).getUpdateUser());
|
|
|
+// jiLinPushTomeDto.setAddTime(archiveAutoDtos.get(i).getCreateTime());
|
|
|
+// jiLinPushTomeDto.setBWeaveDate(archiveAutoDtos.get(i).getStartDate());
|
|
|
+// jiLinPushTomeDto.setEWeaveDate(archiveAutoDtos.get(i).getEndDate());
|
|
|
+// jiLinPushTomeDto.setKeepTerm(archiveAutoDtos.get(i).getStorageTime());
|
|
|
+// jiLinPushTomeDto.setSortOrder(i);
|
|
|
+// jiLinPushTomeDto.setMutualNum("0");
|
|
|
+// jiLinPushTomeDto.setWeaveUnit(archiveAutoDtos.get(i).getUnit());
|
|
|
+// jiLinPushTomeDto.setSecrecy(archiveAutoDtos.get(i).getSecretLevel());
|
|
|
+// jiLinPushTomeDto.setYear(Integer.parseInt(archiveAutoDtos.get(i).getStorageTime()));
|
|
|
+// jiLinPushTomeDtoList.add(jiLinPushTomeDto);
|
|
|
+// // 设置档案卷内目录
|
|
|
+// JiLinPushCatalogDto jiLinPushCatalogDto=new JiLinPushCatalogDto();
|
|
|
+// jiLinPushCatalogDto.setProjId(jlPyProjId);
|
|
|
+// jiLinPushCatalogDto.setPactId(archiveAutoDtos.get(i).getContractId());
|
|
|
+// jiLinPushCatalogDto.setKid(id+1L);
|
|
|
+// jiLinPushCatalogDto.setSortId(archiveAutoDtos.get(i).getNodeId());
|
|
|
+// jiLinPushCatalogDto.setTomeId(id);
|
|
|
+// jiLinPushCatalogDto.setFileSuper(archiveAutoDtos.get(i).getName());
|
|
|
+// jiLinPushCatalogDto.setCatalogRecord(archiveAutoDtos.get(i).getFileNumber());
|
|
|
+// jiLinPushCatalogDto.setAmsFileNum("0");
|
|
|
+// jiLinPushCatalogDto.setFileNum("0");
|
|
|
+// jiLinPushCatalogDto.setWeaveDate(archiveAutoDtos.get(i).getCreateTime());
|
|
|
+// jiLinPushCatalogDto.setPieceCount(archiveAutoDtos.get(i).getFileN());
|
|
|
+// jiLinPushCatalogDto.setDutyPerson(archiveAutoDtos.get(i).getRollor());
|
|
|
+// jiLinPushCatalogDto.setFilePage(archiveAutoDtos.get(i).getPageN());
|
|
|
+// jiLinPushCatalogDto.setReferenceInfo("0");
|
|
|
+// jiLinPushCatalogDto.setSortOrder(i);
|
|
|
+// jiLinPushCatalogDto.setAddUserName(archiveAutoDtos.get(i).getUpdateUser());
|
|
|
+// jiLinPushCatalogDto.setAddTime(archiveAutoDtos.get(i).getUpdateTime());
|
|
|
+// jiLinPushCatalogDtoList.add(jiLinPushCatalogDto);
|
|
|
+// //设置档案文件
|
|
|
+// JiLinPushFileUrlDto jiLinPushFileUrlDto=new JiLinPushFileUrlDto();
|
|
|
+// jiLinPushFileUrlDto.setProjId(jlPyProjId);
|
|
|
+// jiLinPushFileUrlDto.setPactId(archiveAutoDtos.get(i).getContractId());
|
|
|
+// jiLinPushFileUrlDto.setKid(archiveAutoDtos.get(i).getId());
|
|
|
+// jiLinPushFileUrlDto.setCatalogID(id+1L);
|
|
|
+// jiLinPushFileUrlDto.setAnnexName(archiveAutoDtos.get(i).getName());
|
|
|
+// jiLinPushFileUrlDto.setTableNumber(archiveAutoDtos.get(i).getFileNumber());
|
|
|
+// jiLinPushFileUrlDto.setWeaveDate(archiveAutoDtos.get(i).getCreateTime());
|
|
|
+// jiLinPushFileUrlDto.setAnnexPage(archiveAutoDtos.get(i).getPageN());
|
|
|
+// jiLinPushFileUrlDto.setFileUrl(archiveAutoDtos.get(i).getPdfFileUrl()==null?archiveAutoDtos.get(i).getFileUrl():archiveAutoDtos.get(i).getPdfFileUrl());
|
|
|
+// jiLinPushFileUrlDto.setSortOrder(i);
|
|
|
+// jiLinPushFileUrlDto.setAddUserName(archiveAutoDtos.get(i).getUpdateUser());
|
|
|
+// jiLinPushFileUrlDto.setAddTime(archiveAutoDtos.get(i).getUpdateTime());
|
|
|
+// jiLinPushFileUrlDtoList.add(jiLinPushFileUrlDto);
|
|
|
//
|
|
|
-// String annex=JSONObject.toJSONString(jiLinPushFileUrlDtoList);
|
|
|
-// String annexMsg=annex+PYCLIENTSECRETKEY;
|
|
|
-// String annexUrl="https://hgqs.jtyst.jl.gov.cn:6100/dock/openapi/veams/api/doc/annex";
|
|
|
-// String annexSignature = DigestUtils.md5Hex(annexMsg).toUpperCase();
|
|
|
-// HashMap<String,String> annexHeaders=new HashMap<>();
|
|
|
-// annexHeaders.put("Content-Type", "application/json");
|
|
|
-// annexHeaders.put("clientId",PYCLIENTID);
|
|
|
-// annexHeaders.put("signature",annexSignature);
|
|
|
-// annexHeaders.put("systemId",PYSYSTEMID);
|
|
|
-// String annexBody = HttpUtil.createPost(annexUrl).addHeaders(annexHeaders).body(annex).contentType("application/json").execute().body();
|
|
|
-// System.out.println(annexBody);
|
|
|
+// }
|
|
|
+// //传输吉林档案案卷的地址
|
|
|
+// String tome=JSONObject.toJSONString(jiLinPushTomeDtoList);
|
|
|
+// System.out.println(tome);
|
|
|
+// String tomeMsg=tome+PYCLIENTSECRETKEY;
|
|
|
+// String tomeUrl="https://hgqs.jtyst.jl.gov.cn:6100/dock/openapi/veams/api/doc/tome";
|
|
|
+// String tomeSignature = DigestUtils.md5Hex(tomeMsg).toUpperCase();
|
|
|
+// HashMap<String,String> tomeHeaders=new HashMap<>();
|
|
|
+// tomeHeaders.put("Content-Type", "application/json");
|
|
|
+// tomeHeaders.put("clientId",PYCLIENTID);
|
|
|
+// tomeHeaders.put("signature",tomeSignature);
|
|
|
+// tomeHeaders.put("systemId",PYSYSTEMID);
|
|
|
+// String tomeBody = HttpUtil.createPost(tomeUrl).addHeaders(tomeHeaders).body(tome).contentType("application/json").execute().body();
|
|
|
+// System.out.println(tomeBody);
|
|
|
+// //传输吉林档案卷内目录
|
|
|
+// String catLog=JSONObject.toJSONString(jiLinPushCatalogDtoList);
|
|
|
+// String catLogMsg=catLog+PYCLIENTSECRETKEY;
|
|
|
+// String catLogUrl="https://hgqs.jtyst.jl.gov.cn:6100/dock/openapi/veams/api/doc/catalog";
|
|
|
+// String catLogSignature = DigestUtils.md5Hex(catLogMsg).toUpperCase();
|
|
|
+// HashMap<String,String> catLogHeaders=new HashMap<>();
|
|
|
+// catLogHeaders.put("Content-Type", "application/json");
|
|
|
+// catLogHeaders.put("clientId",PYCLIENTID);
|
|
|
+// catLogHeaders.put("signature",catLogSignature);
|
|
|
+// catLogHeaders.put("systemId",PYSYSTEMID);
|
|
|
+// String catLogBody = HttpUtil.createPost(catLogUrl).addHeaders(catLogHeaders).body(catLog).contentType("application/json").execute().body();
|
|
|
+// System.out.println(catLogBody);
|
|
|
+// //传输吉林档案文件
|
|
|
+// String annex=JSONObject.toJSONString(jiLinPushFileUrlDtoList);
|
|
|
+// String annexMsg=annex+PYCLIENTSECRETKEY;
|
|
|
+// String annexUrl="https://hgqs.jtyst.jl.gov.cn:6100/dock/openapi/veams/api/doc/annex";
|
|
|
+// String annexSignature = DigestUtils.md5Hex(annexMsg).toUpperCase();
|
|
|
+// HashMap<String,String> annexHeaders=new HashMap<>();
|
|
|
+// annexHeaders.put("Content-Type", "application/json");
|
|
|
+// annexHeaders.put("clientId",PYCLIENTID);
|
|
|
+// annexHeaders.put("signature",annexSignature);
|
|
|
+// annexHeaders.put("systemId",PYSYSTEMID);
|
|
|
+// String annexBody = HttpUtil.createPost(annexUrl).addHeaders(annexHeaders).body(annex).contentType("application/json").execute().body();
|
|
|
+// System.out.println(annexBody);
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
}
|