demand: TMS-运输管理-漏组批次扫描-针对分批组批次判断不准确问题修复
committer: heyu
This commit is contained in:
parent
dc174d5001
commit
384fc6565e
@ -4656,6 +4656,23 @@ public class EmisBaseService {
|
||||
batch.getSupplierCode())) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// 检查明细列表中是否有waybillBatchStatus=2的记录,如果有则不合并
|
||||
boolean hasWaybillBatchStatus2 = false;
|
||||
if (batch.getBatchDtlList() != null && !batch.getBatchDtlList().isEmpty()) {
|
||||
for (EmisTmsSiteBatchDtl dtl : batch.getBatchDtlList()) {
|
||||
if ("2".equals(dtl.getWaybillBatchStatus())) {
|
||||
hasWaybillBatchStatus2 = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 如果有waybillBatchStatus=2的记录,跳过合并
|
||||
if (hasWaybillBatchStatus2) {
|
||||
continue;
|
||||
}
|
||||
|
||||
String key = batch.getStartSiteCode() + "_" + batch.getNextSiteCode();
|
||||
if (mergedBatches.containsKey(key)) {
|
||||
EmisTmsSiteBatch existingBatch = mergedBatches.get(key);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user