|
@@ -1,21 +1,19 @@
|
|
|
package org.springblade.archive.controller;
|
|
|
|
|
|
import cn.hutool.http.HttpUtil;
|
|
|
-import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
-import com.alibaba.nacos.common.utils.CollectionUtils;
|
|
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
|
|
-import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.codec.digest.DigestUtils;
|
|
|
-import org.springblade.archive.dto.JinLinPushTreeDto;
|
|
|
-import org.springblade.archive.dto.PactAndProjDto;
|
|
|
+import org.springblade.archive.dto.*;
|
|
|
+import org.springblade.archive.entity.ArchiveJiLinPush;
|
|
|
+import org.springblade.archive.feign.ArchiveAutoClient;
|
|
|
+import org.springblade.archive.service.IArchiveJiLinPushService;
|
|
|
import org.springblade.archive.service.IArchivesAutoService;
|
|
|
-import org.springblade.core.tool.utils.ObjectUtil;
|
|
|
import org.springblade.manager.dto.ArchiveTreeContractDTO;
|
|
|
import org.springblade.manager.feign.ArchiveTreeContractClient;
|
|
|
-import org.springblade.system.user.feign.IUserClient;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -25,25 +23,30 @@ import javax.annotation.Resource;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
-import java.util.stream.Collectors;
|
|
|
|
|
|
@RestController
|
|
|
@Api(value = "吉林档案推送", tags = "吉林档案推送")
|
|
|
@RequestMapping("/jinLinPush")
|
|
|
+@Slf4j
|
|
|
public class JinLinPushApiController {
|
|
|
//蒲烟
|
|
|
private static final String PYCLIENTID="hqs_veams02";
|
|
|
private static final String PYCLIENTSECRETKEY="69701959EB6549A6A083D5A277CF0A50";
|
|
|
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 YCSYSTEMID="9";
|
|
|
+ private static final Long jlYcProjId=73100L;
|
|
|
+ private static final Long cqYcProjectId=1644178425269166081L;
|
|
|
//恒集
|
|
|
- private static final String HJPYCLIENTID="hqs_veams04";
|
|
|
- private static final String HJYCPYCLIENTSECRETKEY="50644A2D550A42E88964FE63B7C6D4E7";
|
|
|
- private static final String HJYCSYSTEMID="9";
|
|
|
+ private static final String HJCLIENTID="hqs_veams04";
|
|
|
+ private static final String HJCLIENTSECRETKEY="50644A2D550A42E88964FE63B7C6D4E7";
|
|
|
+ private static final String HJSYSTEMID="9";
|
|
|
+ private static final Long jlHjProjId=73200L;
|
|
|
+ private static final Long jlHjProjectId=1644178786029641730L;
|
|
|
|
|
|
@Resource
|
|
|
private IArchivesAutoService iArchivesAutoService;
|
|
@@ -51,71 +54,279 @@ public class JinLinPushApiController {
|
|
|
@Autowired
|
|
|
private ArchiveTreeContractClient archiveTreeContractClient;
|
|
|
|
|
|
+ @Resource
|
|
|
+ private IArchiveJiLinPushService iArchiveJiLinPushService;
|
|
|
+
|
|
|
@GetMapping("/test")
|
|
|
public void JinlinApiPush() throws JsonProcessingException {
|
|
|
//获取发送get请求的校验码
|
|
|
- String s = "clientSecretKey="+PYCLIENTSECRETKEY;
|
|
|
- String signature1 = DigestUtils.md5Hex(s).toUpperCase();
|
|
|
- String url1 = "https://hgqs.jtyst.jl.gov.cn:6100/dock/openapi/hqsws/hqsprojpact/query";
|
|
|
- HashMap<String,String> headers=new HashMap<>();
|
|
|
- headers.put("Content-Type", "application/json");
|
|
|
- headers.put("clientId",PYCLIENTID);
|
|
|
- headers.put("signature",signature1);
|
|
|
- headers.put("systemId",PYSYSTEMID);
|
|
|
- String body = HttpUtil.createGet(url1).addHeaders(headers).execute().body();
|
|
|
- JSONObject jsonObject=JSONObject.parseObject(body);
|
|
|
+ String query = "clientSecretKey="+PYCLIENTSECRETKEY;
|
|
|
+ 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("signature",querySignature);
|
|
|
+ queryHeaders.put("systemId",PYSYSTEMID);
|
|
|
+ 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);
|
|
|
- String projId="1644168307341238273";
|
|
|
- List<ArchiveTreeContractDTO> archiveTreeContractDtos = archiveTreeContractClient.getArchiveTreeContractDto(projId);
|
|
|
- List<JinLinPushTreeDto>jinLinPushTreeDtos=new ArrayList<>();
|
|
|
+
|
|
|
+ //重庆吉林蒲烟项目合同段信息(中间表)
|
|
|
+ List<ArchiveJiLinPush>archiveJiLinPushList= iArchiveJiLinPushService.getArchiveJiLinPush(jlPyProjId);
|
|
|
+
|
|
|
+ //中间项目合同中间集合
|
|
|
+ List<JiLinQueryDto>dtos=new ArrayList<>();
|
|
|
+ for (PactAndProjDto pactAndProjDto : pactAndProjDtoList) {
|
|
|
+ for (ArchiveJiLinPush archiveJiLinPush : archiveJiLinPushList) {
|
|
|
+ //吉林的合同段Id等于中间表吉林的合同段Id
|
|
|
+ if(pactAndProjDto.getPactId().equals(archiveJiLinPush.getJlPactId())){
|
|
|
+ //筛选出两边共同有的项目合同段 并设置好两边的项目ID 和合同段ID
|
|
|
+ JiLinQueryDto jiLinQueryDto=new JiLinQueryDto();
|
|
|
+ jiLinQueryDto.setCqContractId(archiveJiLinPush.getCqContractId());
|
|
|
+ jiLinQueryDto.setCqProjectId(archiveJiLinPush.getCqProjectId());
|
|
|
+ jiLinQueryDto.setJlProjectId(archiveJiLinPush.getJlProjectId());
|
|
|
+ jiLinQueryDto.setJlPactId(archiveJiLinPush.getJlPactId());
|
|
|
+ dtos.add(jiLinQueryDto);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //传入重庆的项目ID,和吉林需要的合同段集合 查出重庆的目录树
|
|
|
+ List<ArchiveTreeContractDTO> archiveTreeContractDtos = archiveTreeContractClient.getArchiveTreeContractDto(dtos,cqPyProjectId);
|
|
|
+ System.out.println("重庆的目录树"+archiveTreeContractDtos.size());
|
|
|
+ //构建需要传给吉林的目录树 数据
|
|
|
+ List<JiLinPushTreeDto>jiLinPushTreeDtos=new ArrayList<>();
|
|
|
for (ArchiveTreeContractDTO archiveTreeContractDto : archiveTreeContractDtos) {
|
|
|
- JinLinPushTreeDto jinLinPushTreeDto = new JinLinPushTreeDto();
|
|
|
- jinLinPushTreeDto.setKid(archiveTreeContractDto.getId());
|
|
|
- jinLinPushTreeDto.setAddTime(archiveTreeContractDto.getUpdateUserTime());
|
|
|
- jinLinPushTreeDto.setParentID(archiveTreeContractDto.getParentID());
|
|
|
- jinLinPushTreeDto.setTName(archiveTreeContractDto.getNodeName());
|
|
|
- jinLinPushTreeDto.setAddUserName(archiveTreeContractDto.getUpdateUserName());
|
|
|
- jinLinPushTreeDto.setPactId(archiveTreeContractDto.getContractId());
|
|
|
- jinLinPushTreeDto.setProjId(archiveTreeContractDto.getProjectId());
|
|
|
- jinLinPushTreeDtos.add(jinLinPushTreeDto);
|
|
|
+ JiLinPushTreeDto jiLinPushTreeDto = new JiLinPushTreeDto();
|
|
|
+ jiLinPushTreeDto.setKid(archiveTreeContractDto.getId());
|
|
|
+ jiLinPushTreeDto.setAddTime(archiveTreeContractDto.getUpdateUserTime());
|
|
|
+ jiLinPushTreeDto.setParentID(archiveTreeContractDto.getParentID());
|
|
|
+ jiLinPushTreeDto.setTName(archiveTreeContractDto.getNodeName());
|
|
|
+ jiLinPushTreeDto.setAddUserName(archiveTreeContractDto.getUpdateUserName());
|
|
|
+ jiLinPushTreeDto.setPactId(archiveTreeContractDto.getContractId());
|
|
|
+ //直接统一设置好目录树项目Id为吉林的项目ID
|
|
|
+ jiLinPushTreeDto.setProjId(jlPyProjId);
|
|
|
+ jiLinPushTreeDtos.add(jiLinPushTreeDto);
|
|
|
+
|
|
|
+ }
|
|
|
+ //双重循环构建好的目录树数据和中间表集合 对比合同段Id
|
|
|
+ for (JiLinPushTreeDto jiLinPushTreeDto : jiLinPushTreeDtos) {
|
|
|
+ for (ArchiveJiLinPush archiveJiLinPush : archiveJiLinPushList) {
|
|
|
+ //目录树的合同段ID等于中间表的重庆合同段Id,
|
|
|
+ if(jiLinPushTreeDto.getPactId()!=null&& jiLinPushTreeDto.getPactId().equals(archiveJiLinPush.getCqContractId())){
|
|
|
+ //将目录树的合同段ID,设置成吉林的合同段Id
|
|
|
+ jiLinPushTreeDto.setPactId(archiveJiLinPush.getJlPactId());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ 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));
|
|
|
|
|
|
+ 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 s= JSONObject.toJSONString(jinLinPushTreeDtos);
|
|
|
-// String msg=s+PYCLIENTSECRETKEY;
|
|
|
-// String PYSignature = DigestUtils.md5Hex(msg).toUpperCase();
|
|
|
-// System.out.println(PYSignature);
|
|
|
-// String url="https://hgqs.jtyst.jl.gov.cn:6100/dock/openapi/veams/api/doc/tree";
|
|
|
-// HashMap<String,String> headers=new HashMap<>();
|
|
|
-// headers.put("Content-Type", "application/json");
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+// 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");
|
|
|
//
|
|
|
-// headers.put("clientId",PYCLIENTID);
|
|
|
-// headers.put("signature",PYSignature);
|
|
|
-// headers.put("systemId",PYSYSTEMID);
|
|
|
-// System.out.println(s);
|
|
|
-// String body = HttpUtil.createPost(url).addHeaders(headers).form(s).execute().body();
|
|
|
-// System.out.println(body);
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
-// //组装树形结构
|
|
|
-// public static List<JinLinPushTreeDto> getChildrenGroupingStream(List<JinLinPushTreeDto> result) {
|
|
|
-// //根据父id分组
|
|
|
-// Map<Long, List<JinLinPushTreeDto>> intentionMap = result.stream().collect(Collectors.groupingBy(JinLinPushTreeDto::getParentID));
|
|
|
-// //复制result数据
|
|
|
-// List<JinLinPushTreeDto> treeList = new ArrayList<>(result);
|
|
|
-// //遍历result来组装带有children关联性的对象,如果找到子级就删除List的数据
|
|
|
-// for (JinLinPushTreeDto intention : result) {
|
|
|
-// List<JinLinPushTreeDto> children = intentionMap.get(intention.getKid());
|
|
|
-// if (CollectionUtils.isNotEmpty(children)) {
|
|
|
-// intention.getData().addAll(children);
|
|
|
-// treeList.removeAll(children);
|
|
|
-// }
|
|
|
-// }
|
|
|
-// return treeList ;
|
|
|
-// }
|
|
|
+// 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<>();
|
|
|
+//
|
|
|
+//
|
|
|
+// 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);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|