Commit b6a75d4b authored by chenyuxi's avatar chenyuxi

feat: 降低商检推ekp打印日志的等级

parent e4678d1e
......@@ -59,10 +59,10 @@ public class EkpInsuranceUtil {
//必须设置上传类型,如果入参是字符串,使用MediaType.TEXT_PLAIN;如果
HttpEntity<MultiValueMap<String,Object>> entity = new HttpEntity<MultiValueMap<String,Object>>(wholeForm,headers);
//有返回值的情况 VO可以替换成具体的JavaBean
log.error("推送EKP开始,formValues:"+formValues);
log.info("推送EKP开始,formValues:"+formValues);
ResponseEntity<String> obj = yourRestTemplate.exchange(ekpInsuranceProperties.getInsuranceUrl(), HttpMethod.POST, entity, String.class);
String body = obj.getBody();
log.error("推送EKP结果,body:"+body);
log.info("推送EKP结果,body:"+body);
if (StringUtils.isBlank(body)){
log.error("交易失败:"+obj);
return null;
......@@ -84,7 +84,7 @@ public class EkpInsuranceUtil {
* @return {@link String}
*/
public String sendUpdateToEkp(EkpUpdateParam param){
log.error("推送EKP开始--商险修改");
log.info("推送EKP开始--商险修改");
RestTemplate yourRestTemplate = new RestTemplate();
try{
String formValues = new ObjectMapper().writeValueAsString(param);
......@@ -107,7 +107,7 @@ public class EkpInsuranceUtil {
//有返回值的情况 VO可以替换成具体的JavaBean
ResponseEntity<String> obj = yourRestTemplate.exchange(ekpInsuranceProperties.getInsuranceUrl(), HttpMethod.POST, entity, String.class);
String body = obj.getBody();
log.error("推送EKP结果,body:"+body);
log.info("推送EKP结果,body:"+body);
if (StringUtils.isBlank(body)){
log.error(EkpConstants.SEND_FAILED);
return null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment