parent
d102769994
commit
9b7fa08b1e
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue