|
|
@ -2,8 +2,6 @@ package com.epmet.commons.tools.utils; |
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.epmet.commons.tools.dto.result.YtHsjcResDTO; |
|
|
|
import com.epmet.commons.tools.exception.EpmetErrorCode; |
|
|
|
import com.epmet.commons.tools.exception.EpmetException; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
@ -43,14 +41,13 @@ public class YtHsResUtils { |
|
|
|
if (result.success()) { |
|
|
|
return JSON.parseObject(result.getData(), YtHsjcResDTO.class); |
|
|
|
} |
|
|
|
YtHsjcResDTO resultResult = new YtHsjcResDTO(); |
|
|
|
resultResult.setData(new ArrayList<>()); |
|
|
|
|
|
|
|
return resultResult; |
|
|
|
} catch (Exception e) { |
|
|
|
log.error(String.format("烟台核算检测结果查询异常cardNo:%s,异常信息:%s", cardNo, e.getMessage())); |
|
|
|
throw new EpmetException(EpmetErrorCode.SERVER_ERROR.getCode(), "获取核算检测结果api异常"+e.getMessage()); |
|
|
|
e.printStackTrace(); |
|
|
|
log.warn(String.format("烟台核算检测结果查询异常cardNo:%s,异常信息:%s", cardNo, e.getMessage())); |
|
|
|
} |
|
|
|
YtHsjcResDTO resultResult = new YtHsjcResDTO(); |
|
|
|
resultResult.setData(new ArrayList<>()); |
|
|
|
return resultResult; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|