Browse Source

推送url debug

tags/24080901
PoffyZhang 1 year ago
parent
commit
207bd76cad
1 changed files with 3 additions and 0 deletions
  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 View File

@@ -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){


Loading…
Cancel
Save