parent
e7910c9124
commit
d15a64781e
|
@ -304,8 +304,49 @@ public class ApiMappingBillPlugin extends AbstractFormPlugin implements Plugin {
|
|||
}
|
||||
}
|
||||
|
||||
if ("shkd_getglhdxx".equals(itemKey)) {
|
||||
// 推送单据类型
|
||||
String billMark = dataEntity.getDynamicObject("shkd_sourcebill").getString("number");
|
||||
|
||||
// 推送单据编码
|
||||
String shkdSourcenumber = dataEntity.getString("shkd_sourcenumber");
|
||||
|
||||
// 查询单据对象
|
||||
DynamicObject dynamicObject = null;
|
||||
|
||||
if ("cas_paybill".equals(billMark)) {
|
||||
dynamicObject = BusinessDataServiceHelper.loadSingle(billMark, "id,billno,name,shkd_businessnumber,shkd_xkfilestatus",
|
||||
new QFilter("billno", QCP.equals, shkdSourcenumber).toArray());// 表单id(付款处理 → 付款单:AP_PAYBILL)
|
||||
} else if ("cas_recbill".equals(billMark)) {
|
||||
dynamicObject = BusinessDataServiceHelper.loadSingle(billMark, "id,billno,name,shkd_businessnumber,shkd_xkfilestatus",
|
||||
new QFilter("billno", QCP.equals, shkdSourcenumber).toArray());// 表单id(收款处理 → 收款单:AR_RECEIVEBILL)
|
||||
} else if ("fca_transupbill".equals(billMark)) {
|
||||
dynamicObject = BusinessDataServiceHelper.loadSingle(billMark, "id,billno,name,shkd_pushxknumber,shkd_xkfilestatus",
|
||||
new QFilter("billno", QCP.equals, shkdSourcenumber).toArray());// 表单id(上划处理 → 收款单:AR_RECEIVEBILL)
|
||||
} else if ("fca_transdownbil".equals(billMark)) {
|
||||
dynamicObject = BusinessDataServiceHelper.loadSingle(billMark, "id,billno,name,shkd_pushxknumber,shkd_xkfilestatus",
|
||||
new QFilter("billno", QCP.equals, shkdSourcenumber).toArray());// 表单id(下拨处理 → 付款单:AP_PAYBILL)
|
||||
}
|
||||
|
||||
if (dynamicObject == null) {
|
||||
this.getView().showTipNotification("未查询到符合条件的单据");
|
||||
return;
|
||||
}
|
||||
|
||||
Set<Long> isAllSet = kd.fi.cas.business.opservice.helper.HandLinkBillHelper.showBotpRtansDetails(dynamicObject, dynamicObject.getDataEntityType().getName());
|
||||
List<String> receiptNos = kd.fi.cas.business.opservice.helper.HandLinkBillHelper.getReceiptNoByDetails(dynamicObject, dynamicObject.getDataEntityType().getName());
|
||||
String bankcheckflag = kd.fi.cas.business.opservice.helper.HandLinkBillHelper.getBankCheckFlagNoDetail(dynamicObject, dynamicObject.getDataEntityType().getName());
|
||||
logger.info("对账标识码1:" + bankcheckflag);
|
||||
logger.info("电子回单号1:" + receiptNos);
|
||||
|
||||
|
||||
this.getView().showTipNotification("单据编码:" + shkdSourcenumber + "\n" +
|
||||
" → 交易明细ID:" + isAllSet + "\n" +
|
||||
" → 对账标识码:" + bankcheckflag + "\n" +
|
||||
" → 关联回单编号:" + receiptNos);
|
||||
}
|
||||
|
||||
// 补偿推送星空电子回单
|
||||
// 补偿方案(推送BIP电子回单)
|
||||
if ("shkd_compensatexk".equals(itemKey)) {
|
||||
// 推送单据类型
|
||||
String billMark = dataEntity.getDynamicObject("shkd_sourcebill").getString("number");
|
||||
|
@ -347,7 +388,7 @@ public class ApiMappingBillPlugin extends AbstractFormPlugin implements Plugin {
|
|||
K3CloudApi k3CloudApi = getK3CloudApi(dataEntity);
|
||||
|
||||
// 获取关联的回单编号
|
||||
List<String> receiptNos = HandLinkBillHelper.getReceiptNoByDetails(dynamicObject, dynamicObject.getDataEntityType().getName());
|
||||
List<String> receiptNos = kd.fi.cas.business.opservice.helper.HandLinkBillHelper.getReceiptNoByDetails(dynamicObject, dynamicObject.getDataEntityType().getName());
|
||||
logger.info(billMark + " → 关联回单编号:{}", receiptNos);//电子回单号
|
||||
if (receiptNos.isEmpty()) {
|
||||
this.getView().showTipNotification("未查询到关联回单");
|
||||
|
|
|
@ -296,7 +296,7 @@ public class PushTaskPlugin extends AbstractTask implements Plugin {
|
|||
}
|
||||
|
||||
// 联查不到回单标记的不推送
|
||||
List<String> receiptNos = HandLinkBillHelper.getReceiptNoByDetails(dynamicObject, dynamicObject.getDataEntityType().getName());
|
||||
List<String> receiptNos = kd.fi.cas.business.opservice.helper.HandLinkBillHelper.getReceiptNoByDetails(dynamicObject, dynamicObject.getDataEntityType().getName());
|
||||
if (receiptNos.isEmpty()) {
|
||||
logger.info("付款单:{},无回单,不推送", dynamicObject.getString("billno"));
|
||||
continue;
|
||||
|
@ -358,7 +358,7 @@ public class PushTaskPlugin extends AbstractTask implements Plugin {
|
|||
}
|
||||
|
||||
// 联查不到回单标记的不推送
|
||||
List<String> receiptNos = HandLinkBillHelper.getReceiptNoByDetails(dynamicObject, dynamicObject.getDataEntityType().getName());
|
||||
List<String> receiptNos = kd.fi.cas.business.opservice.helper.HandLinkBillHelper.getReceiptNoByDetails(dynamicObject, dynamicObject.getDataEntityType().getName());
|
||||
if (receiptNos.isEmpty()) {
|
||||
logger.info("收款单:{},无关联回单,不推送", dynamicObject.getString("billno"));
|
||||
continue;
|
||||
|
@ -417,7 +417,7 @@ public class PushTaskPlugin extends AbstractTask implements Plugin {
|
|||
}
|
||||
|
||||
// 联查不到回单标记的不推送
|
||||
List<String> receiptNos = HandLinkBillHelper.getReceiptNoByDetails(dynamicObject, dynamicObject.getDataEntityType().getName());
|
||||
List<String> receiptNos = kd.fi.cas.business.opservice.helper.HandLinkBillHelper.getReceiptNoByDetails(dynamicObject, dynamicObject.getDataEntityType().getName());
|
||||
if (receiptNos.isEmpty()) {
|
||||
logger.info("上划处理:{},无关联回单,不推送", dynamicObject.getString("billno"));
|
||||
continue;
|
||||
|
@ -476,7 +476,7 @@ public class PushTaskPlugin extends AbstractTask implements Plugin {
|
|||
}
|
||||
|
||||
// 联查不到回单标记的不推送
|
||||
List<String> receiptNos = HandLinkBillHelper.getReceiptNoByDetails(dynamicObject, dynamicObject.getDataEntityType().getName());
|
||||
List<String> receiptNos = kd.fi.cas.business.opservice.helper.HandLinkBillHelper.getReceiptNoByDetails(dynamicObject, dynamicObject.getDataEntityType().getName());
|
||||
if (receiptNos.isEmpty()) {
|
||||
logger.info("下拨处理:{},无关联回单,不推送", dynamicObject.getString("billno"));
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue