parent
53358ced34
commit
09a0103673
|
@ -118,10 +118,19 @@ public class ApiMappingBillPlugin extends AbstractFormPlugin implements Plugin {
|
||||||
if ("shkd_queryxk".equals(itemKey)) {
|
if ("shkd_queryxk".equals(itemKey)) {
|
||||||
// 获取想要推送单据类型
|
// 获取想要推送单据类型
|
||||||
String billMark = dataEntity.getDynamicObject("shkd_sourcebill").getString("number");
|
String billMark = dataEntity.getDynamicObject("shkd_sourcebill").getString("number");
|
||||||
// 获取想要推送单据编码
|
String billNumber;
|
||||||
String billNumber = dataEntity.getString("shkd_sourcenumber");
|
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);
|
logger.info("获取推送单据编码 → billNumber:{}", billNumber);
|
||||||
HashMap<String, Object> map = getSKPushXKBill(dataEntity, billMark, billNumber);
|
|
||||||
this.getView().showTipNotification("查找到单据 → 星空单据编码:" + map.get("billNumber") + ",星空单据ID:" + map.get("billId"));
|
this.getView().showTipNotification("查找到单据 → 星空单据编码:" + map.get("billNumber") + ",星空单据ID:" + map.get("billId"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue