来源应用由触发操作的所在应用,改为由单据上获取来源应用
This commit is contained in:
parent
d7705ab3b2
commit
c2faf370c8
|
|
@ -73,7 +73,7 @@ public class InterestAccrualDeletePlugin extends AbstractOperationServicePlugIn
|
||||||
//根据费用明细分录的上游id查询上游单据的付息记录并将本条计息单的记录删除
|
//根据费用明细分录的上游id查询上游单据的付息记录并将本条计息单的记录删除
|
||||||
QFilter filter = new QFilter("id", "in", srcBillIds);
|
QFilter filter = new QFilter("id", "in", srcBillIds);
|
||||||
Long id = bill.getLong("id");
|
Long id = bill.getLong("id");
|
||||||
String appNum = this.getOption().getVariableValue("appnumber");//当前应用
|
String appNum = bill.getString("kdsz_srcapp");//来源应用
|
||||||
String oriEntityKey = AppConfig.appOriEntityMap.get(appNum);
|
String oriEntityKey = AppConfig.appOriEntityMap.get(appNum);
|
||||||
if (StringUtils.isNotBlank(oriEntityKey)){
|
if (StringUtils.isNotBlank(oriEntityKey)){
|
||||||
DynamicObject[] srcBills = BusinessDataServiceHelper.load(oriEntityKey,
|
DynamicObject[] srcBills = BusinessDataServiceHelper.load(oriEntityKey,
|
||||||
|
|
|
||||||
|
|
@ -75,6 +75,7 @@ public class InterestAccrualGenPaymentOperationPlugin extends AbstractOperationS
|
||||||
e.getFieldKeys().add("kdsz_oppbebank");
|
e.getFieldKeys().add("kdsz_oppbebank");
|
||||||
e.getFieldKeys().add("kdsz_oppbankacc");
|
e.getFieldKeys().add("kdsz_oppbankacc");
|
||||||
e.getFieldKeys().add("kdsz_oppunit");
|
e.getFieldKeys().add("kdsz_oppunit");
|
||||||
|
e.getFieldKeys().add("kdsz_srcapp");
|
||||||
e.getFieldKeys().add("entryentity.kdsz_e_paybill");
|
e.getFieldKeys().add("entryentity.kdsz_e_paybill");
|
||||||
e.getFieldKeys().add("entryentity.kdsz_e_paybillid");
|
e.getFieldKeys().add("entryentity.kdsz_e_paybillid");
|
||||||
}
|
}
|
||||||
|
|
@ -268,8 +269,7 @@ public class InterestAccrualGenPaymentOperationPlugin extends AbstractOperationS
|
||||||
}
|
}
|
||||||
SaveServiceHelper.update(JxBill);
|
SaveServiceHelper.update(JxBill);
|
||||||
//反写计息的源单
|
//反写计息的源单
|
||||||
// TODO: 2025/12/11 暂定为开票登记
|
String appNum = JxBill.getString("kdsz_srcapp");//来源应用
|
||||||
String appNum = this.getOption().getVariableValue("appnumber");//当前应用
|
|
||||||
String oriEntityKey = AppConfig.appOriEntityMap.get(appNum);
|
String oriEntityKey = AppConfig.appOriEntityMap.get(appNum);
|
||||||
if (StringUtils.isNotBlank(oriEntityKey)){
|
if (StringUtils.isNotBlank(oriEntityKey)){
|
||||||
DynamicObject[] oriBills = BusinessDataServiceHelper.load(oriEntityKey, "id",
|
DynamicObject[] oriBills = BusinessDataServiceHelper.load(oriEntityKey, "id",
|
||||||
|
|
|
||||||
|
|
@ -69,8 +69,8 @@ public class PaymentBillDeleteLkOperationPlugin extends AbstractOperationService
|
||||||
}
|
}
|
||||||
//根据费用明细分录的上游id查询上游单据的付息记录并将本条计息单的记录删除
|
//根据费用明细分录的上游id查询上游单据的付息记录并将本条计息单的记录删除
|
||||||
QFilter filter = new QFilter("id", "in", oriBillIds);
|
QFilter filter = new QFilter("id", "in", oriBillIds);
|
||||||
String appNum = this.getOption().getVariableValue("appnumber");//当前应用
|
String srcAppNum = srcBill.getString("kdsz_srcapp");//计息单的来源应用
|
||||||
String oriEntityKey = AppConfig.appOriEntityMap.get(appNum);
|
String oriEntityKey = AppConfig.appOriEntityMap.get(srcAppNum);
|
||||||
if (StringUtils.isNotBlank(oriEntityKey)){
|
if (StringUtils.isNotBlank(oriEntityKey)){
|
||||||
Long jxId = srcBill.getLong("id");//计息单id
|
Long jxId = srcBill.getLong("id");//计息单id
|
||||||
DynamicObject[] oriBills = BusinessDataServiceHelper.load(oriEntityKey, "id",
|
DynamicObject[] oriBills = BusinessDataServiceHelper.load(oriEntityKey, "id",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue