logger.info("自动制作合同入参:{}", GsonUtils.toJson(applyMakeContractRequestDto));
ResponseDto<JSONObject> responseDto = cmsChannel.contractAutoMake(applyMakeContractRequestDto);
if (responseDto.isSuccess()) {
logger.info("合同制作完成 result:{}", responseDto);
if (!StringUtils.isEmpty(responseDto.getData())) {
applyCode = responseDto.getData().getString("applyCode");
}
} else {
logger.info("合同制作失败 result:{}", responseDto.getMsg());
}
这个是在线程里面跑的代码,contractAutoMake 通过 feignclient 调用之后其他服务。但是还没有返回结果的时候程序却往下面流程跑了,跑到了合同制作失败。。
2020-08-12 16:42:19.830 INFO [cgbs,,,] [Thread-793] - 自动制作合同入参:{""}
2020-08-12 16:42:19.833 DEBUG [cgbs,5c92785f8254878a,5c92785f8254878a,false] [hystrix-cms-10] c.z.c.c.g.c.cms.ICmsChannel:72 - [ICmsChannel#contractAutoMake] ---> POST http://cms/apply/applyAndMakeContract HTTP/1.1
....省略...
2020-08-12 16:42:19.834 DEBUG [cgbs,5c92785f8254878a,5c92785f8254878a,false] [hystrix-cms-10] c.z.c.c.g.c.cms.ICmsChannel:72 - [ICmsChannel#contractAutoMake] ---> END HTTP (587-byte body)
2020-08-12 16:42:20.833 INFO [cgbs,,,] [Thread-793] c.z.c.c.c.f.i.ContractAutoFacadeImpl:121 - 合同制作失败 result:处理失败
2020-08-12 16:42:21.006 INFO [cgbs,,,] [com.alibaba.nacos.client.Worker.longPolling.fixed-nacos-sst.joinboom.net_80-zalljinfu-cgbs] c.a.n.c.config.impl.ClientWorker:527 - get changedGroupKeys:[]
....省略...
2020-08-12 16:42:21.710 DEBUG [cgbs,5c92785f8254878a,5c92785f8254878a,false] [hystrix-cms-10] c.z.c.c.g.c.cms.ICmsChannel:72 - [ICmsChannel#contractAutoMake] {"success":true,"code":"100000","msg":"处理成功","data":{"applyCode":"MAC20200812164219864333"}}
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.