|
|
|
@ -391,7 +391,7 @@ public class StagnationInspectionServiceImpl implements StagnationInspectionServ |
|
|
|
|
|
|
|
/** |
|
|
|
* 从 Labels 中构建 ConfirmedTransNo 字段 |
|
|
|
* 格式: site|warehouseId|partNo|batchNo|locationId |
|
|
|
* 格式: site|partNo|warehouseId|batchNo|locationId |
|
|
|
*/ |
|
|
|
private String buildConfirmedTransNoFromLabels(List<PrintLabelRecord> labels) { |
|
|
|
if (labels == null || labels.isEmpty()) { |
|
|
|
@ -401,12 +401,12 @@ public class StagnationInspectionServiceImpl implements StagnationInspectionServ |
|
|
|
|
|
|
|
PrintLabelRecord firstLabel = labels.get(0); |
|
|
|
String site = firstLabel.getSite() != null ? firstLabel.getSite() : "*"; |
|
|
|
String warehouseId = firstLabel.getWarehouseId() != null ? firstLabel.getWarehouseId() : "*"; |
|
|
|
String partNo = firstLabel.getPartNo() != null ? firstLabel.getPartNo() : "*"; |
|
|
|
String warehouseId = firstLabel.getWarehouseId() != null ? firstLabel.getWarehouseId() : "*"; |
|
|
|
String batchNo = firstLabel.getBatchNo() != null ? firstLabel.getBatchNo() : "*"; |
|
|
|
String locationId = firstLabel.getLocationId() != null ? firstLabel.getLocationId() : "*"; |
|
|
|
|
|
|
|
String confirmedTransNo = site + "|" + warehouseId + "|" + partNo + "|" + batchNo + "|" + locationId; |
|
|
|
String confirmedTransNo = site + "|" + partNo + "|" + warehouseId + "|" + batchNo + "|" + locationId; |
|
|
|
log.debug("📝 构建 ConfirmedTransNo: {}", confirmedTransNo); |
|
|
|
|
|
|
|
return confirmedTransNo; |
|
|
|
|