提交内容:通过星空收付款单编码查询星空单据id

时间:2025-07-23 10:28
提交人:邹江涛
This commit is contained in:
zoujiangtao 2025-07-23 10:29:09 +08:00
parent 53358ced34
commit 09a0103673
1 changed files with 12 additions and 3 deletions

View File

@ -118,10 +118,19 @@ public class ApiMappingBillPlugin extends AbstractFormPlugin implements Plugin {
if ("shkd_queryxk".equals(itemKey)) {
// 获取想要推送单据类型
String billMark = dataEntity.getDynamicObject("shkd_sourcebill").getString("number");
// 获取想要推送单据编码
String billNumber = dataEntity.getString("shkd_sourcenumber");
String billNumber;
HashMap<String, Object> map;
if (!"".equals(dataEntity.getString("shkd_sourcenumber"))) {
// 获取查询的源单单据编码已推送星空单据
billNumber = dataEntity.getString("shkd_sourcenumber");
map = getSKPushXKBill(dataEntity, billMark, billNumber);
} else {
// 获取想要查询星空单据编码
billNumber = dataEntity.getString("shkd_targetnumber");
map = getXKPushSKBill(dataEntity, billMark, billNumber);
}
logger.info("获取推送单据编码 → billNumber{}", billNumber);
HashMap<String, Object> map = getSKPushXKBill(dataEntity, billMark, billNumber);
this.getView().showTipNotification("查找到单据 → 星空单据编码:" + map.get("billNumber") + "星空单据ID" + map.get("billId"));
}