当前位置:网站首页>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;
}
}
边栏推荐
猜你喜欢

Taiwan SSS Xinchuang sss1700 replaces cmedia cm6533 24bit 96KHz USB audio codec chip

Idle fish is hard to turn over

6-1漏洞利用-FTP漏洞利用

分析超700万个研发需求发现,这八大编程语言才是行业最需要的

条件编译

小学期,第三场-下午:WEB_sessionlfi

超视频时代的音视频架构建设|Science和英特尔联袂推出“架构师成长计划”第二季

“更福特、更中国”拨云见日,长安福特王牌产品订单过万

如何做好测试用例设计

Data intelligence - dtcc2022! China database technology conference is about to open
随机推荐
如何做好测试用例设计
Is it safe to open an account in Guangzhou stock exchange by mobile phone?
Which brokerage has the lowest commission? In addition, is it safe to open a mobile account?
Solution to rollback of MySQL database by mistake deletion
解决arm_release_ver of this libmali is ‘g2p0-01eac0‘,rk_so_ver is ‘4‘,libgl1-mesa-dev不会被安装,存在未满足的依赖关系
凌云出海记 | 一零跃动&华为云:共助非洲普惠金融服务
神经网络入门(上)
dataloader 源码_DataLoader
广州炒股开户选择手机办理安全吗?
Why should offline stores do new retail?
neo4j load csv 配置和使用
闲鱼难“翻身”
为什么数字化转型战略必须包括持续测试?
广州股票开户选择手机办理安全吗?
MySQL数据库误删回滚的解决
C language: hashtable
网易云签到可抽奖?那一年我能签到365天。不信?你看。
This morning, investors began to travel collectively
DELL R720服务器安装网卡Broadcom 5720驱动
Wechat applets - basics takes you to understand the life cycle of applets (2)