提交内容:定时任务

备注:定时推送单据至BIP
提交人:邹江涛
This commit is contained in:
zoujiangtao 2024-12-10 16:48:14 +08:00
parent 8d7f58194d
commit 88ab918ed8
1 changed files with 1 additions and 0 deletions

View File

@ -93,6 +93,7 @@ public class PushTaskPlugin extends AbstractTask implements Plugin {
dynamicObjects.forEach(dynamicObject -> {
String responseBody = ApiService.paymentSlipsJson(dynamicObject, "BIP");
if (!responseBody.contains("失败")) {
logger.info("推送 → {} → 成功\n推送单据编号{}\n推送数据{}", finalBillName, dynamicObject.getString("billno"), responseBody);
JSONObject jsonObject = JSON.parseObject(responseBody);
JSONObject data = jsonObject.getJSONObject("data");
String code = data.getString("code");