Ver código fonte

推送url debug

tags/24080901
PoffyZhang 1 ano atrás
pai
commit
207bd76cad
1 arquivos alterados com 3 adições e 0 exclusões
  1. +3
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/gov/manage/GovProjectCollectionManage.java

+ 3
- 0
pmapi/src/main/java/com/ningdatech/pmapi/gov/manage/GovProjectCollectionManage.java Ver arquivo

@@ -2,6 +2,7 @@ package com.ningdatech.pmapi.gov.manage;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollUtil;
import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
@@ -406,6 +407,7 @@ public class GovProjectCollectionManage {
String url = pushUrl;
ProjectPushReq req = ProjectConvert.convert(saveDTO);
try{
log.info("推送消息体 {} ,{},{}",saveDTO.getBaseProjId(),url, JSON.toJSONString(req));
ResponseEntity<String> response = restTemplate.postForEntity(url, null, String.class, req);
log.info("推送结果 {} :{}",saveDTO.getBaseProjId(),response);
}catch (Exception e){
@@ -422,6 +424,7 @@ public class GovProjectCollectionManage {
baseinfo.setIsEffective(BizProjectContant.NOT_EFFECTIVE_CODE);
ProjectBaseInfoReq req = ProjectConvert.convertBase(baseinfo);
try{
log.info("推送消息体 {},{},{}",baseinfo.getBaseProjId(),url, JSON.toJSONString(req));
ResponseEntity<String> response = restTemplate.postForEntity(url, null, String.class, req);
log.info("推送结果 {} :{}",baseinfo.getBaseProjId(),response);
}catch (Exception e){


Carregando…
Cancelar
Salvar