提交人:陈绍鑫

日期:2025/7/19 17:00
内容:自动兑付优化
This commit is contained in:
陈绍鑫 2025-07-21 10:13:50 +08:00
parent d102769994
commit 9b7fa08b1e
1 changed files with 58 additions and 56 deletions

View File

@ -116,8 +116,9 @@ public class DrafttradebillOP extends AbstractOperationServicePlugIn {
Map<String, HashSet<Long>> srcBills = BFTrackerServiceHelper.findSourceBills("cdm_drafttradebill", new Long[]{id});//上查开票登记
if (srcBills.containsKey(CdmEntityConst.CDM_PAYABLEBILL)) {
HashSet<Long> ar_invoice = srcBills.get(CdmEntityConst.CDM_PAYABLEBILL);
// 获取第一个元素如果集合不为空
Long firstElement = ar_invoice.stream().findFirst().orElse(null);
List<Long> invoiceList = new ArrayList<>(ar_invoice);
for (int i = 0; i < invoiceList.size(); i++) {
Long firstElement = invoiceList.get(i);
DynamicObject cdm_payablebill = BusinessDataServiceHelper.loadSingle(firstElement, CdmEntityConst.CDM_PAYABLEBILL);
String draftbillstatus = cdm_payablebill.getString("draftbillstatus");
String settlementtype = cdm_payablebill.getString("draftbilltype.settlementtype");
@ -180,6 +181,7 @@ public class DrafttradebillOP extends AbstractOperationServicePlugIn {
}
}
}
}
public boolean checkIfAllNumbersAreSame(List<DynamicObject> dynamicObjects,String s) {
if (dynamicObjects == null || dynamicObjects.isEmpty()) {