当前位置:网站首页>Client request external interface standard processing method
Client request external interface standard processing method
2022-06-30 20:11:00 【The snail dashed hard】
Simply record client I think the external request code is written in a standard format
public List<GdtDailyBalanceReportAO> getGdtDailyReportList2(Long accountId){
List<GdtDailyBalanceReportAO> listGdtDailyBalance = new ArrayList<>();
try {
response = HttpUtil.get(url, null, false);
log.info(" call GdtDailyReportClient getGdtDailyReportList accountId:{}, response:{}", accountId, String.valueOf(response));
} catch (Exception e) {
log.error(" call GdtDailyReportClient getGdtDailyReportList abnormal :{}", e);
e.printStackTrace();
return listGdtDailyBalance;
}
GdtDailyBalanceResponse gdtDailyBalanceResponse = JSON.parseObject(response, GdtDailyBalanceResponse.class);
if (gdtDailyBalanceResponse.getData() == null || gdtDailyBalanceResponse.getData().getList() == null || gdtDailyBalanceResponse.getData().getList().size() <= 0) {
log.info("GdtDailyReportClient getGdtDailyReportList response:{},accountId:{}", JSON.toJSONString(gdtDailyBalanceResponse), accountId);
return listGdtDailyBalance;
}
}
边栏推荐
猜你喜欢

4.3-inch touch screen 12 channel control port programmable network central control supports mutual backup of 5 central control hosts

Character class of regular series

为什么数字化转型战略必须包括持续测试?

线下门店为什么要做新零售?

微信小程序开发实战 云音乐

操作系统面试题汇总(不定期更新)

Taihu Lake "China's healthy agricultural products · mobile phone live broadcast" enters Taihu Lake

解决arm_release_ver of this libmali is ‘g2p0-01eac0‘,rk_so_ver is ‘4‘,libgl1-mesa-dev不会被安装,存在未满足的依赖关系

8 - function

Exness: liquidity series - liquidity cleaning and reversal, decision interval
随机推荐
基于slate构建文档编辑器
[ICLR 2021] semi supervised object detection: unbiased teacher for semi supervised object detection
Taiwan SSS Xinchuang sss1700 replaces cmedia cm6533 24bit 96KHz USB audio codec chip
项目经理面试常见问题及回答技巧
Taihu Lake "China's healthy agricultural products · mobile phone live broadcast" enters Taihu Lake
Playwright - 滚动条操作
GeoServer installation
Inventory the six second level capabilities of Huawei cloud gaussdb (for redis)
DNS服务器搭建、转发、主从配置
CADD课程学习(2)-- 靶点晶体结构信息
S7-1500 PLC之间进行TCP通信的具体方法和步骤详解(图文)
VB的基本语法
新出生的机器狗,打滚1小时后自己掌握走路,吴恩达开山大弟子最新成果
Torchdrug -- drug attribute prediction
Wechat applets - basics takes you to understand the life cycle of applets (2)
Why must we move from Devops to bizdevops?
重复乃技艺之母
毕业季职场人
qt中toLocal8Bit和toUtf8()有什么区别
Filebeat custom indexes and fields