demand: TMS系统 - 运输管理 - 货物组批次编辑相同运单移除后又添加显示0bug修复

committer: heyu
This commit is contained in:
aike 2025-08-12 14:04:34 +08:00
parent 30c0a798dc
commit 798046b612

View File

@ -141,9 +141,6 @@ public class EmisTmsSiteBatchDtlServiceImpl implements IEmisTmsSiteBatchDtlServi
if (StringUtils.isBlank(billCode)) { if (StringUtils.isBlank(billCode)) {
throw new EmisBizError(EmisBizErrorType.FAIL, "运单号不能为空"); throw new EmisBizError(EmisBizErrorType.FAIL, "运单号不能为空");
} }
if (StringUtils.isBlank(batchNo)) {
throw new EmisBizError(EmisBizErrorType.FAIL, "批次号不能为空");
}
if (StringUtils.isBlank(startSiteCode)) { if (StringUtils.isBlank(startSiteCode)) {
throw new EmisBizError(EmisBizErrorType.FAIL, "起始网点编码不能为空"); throw new EmisBizError(EmisBizErrorType.FAIL, "起始网点编码不能为空");
} }
@ -161,14 +158,16 @@ public class EmisTmsSiteBatchDtlServiceImpl implements IEmisTmsSiteBatchDtlServi
EmisTmsSiteBatchDtl result = new EmisTmsSiteBatchDtl(); EmisTmsSiteBatchDtl result = new EmisTmsSiteBatchDtl();
result.setWaybillDetail(emisWaybill); result.setWaybillDetail(emisWaybill);
// 根据批次号、运单号查询emis_tms_site_batch_dtl,如果存在,直接返回数据 if (StringUtils.isNotBlank(batchNo)) {
EmisTmsSiteBatchDtl existingBatchDtl = emisTmsSiteBatchDtlMapper // 根据批次号、运单号查询emis_tms_site_batch_dtl,如果存在,直接返回数据
.selectEmisTmsSiteBatchDtlByBatchNoAndBillCode(batchNo, billCode); EmisTmsSiteBatchDtl existingBatchDtl = emisTmsSiteBatchDtlMapper
if (existingBatchDtl != null) { .selectEmisTmsSiteBatchDtlByBatchNoAndBillCode(batchNo, billCode);
result.setBatchParcelQty(existingBatchDtl.getBatchParcelQty()); if (existingBatchDtl != null) {
result.setBatchWeight(existingBatchDtl.getBatchWeight()); result.setBatchParcelQty(existingBatchDtl.getBatchParcelQty());
result.setBatchVolume(existingBatchDtl.getBatchVolume()); result.setBatchWeight(existingBatchDtl.getBatchWeight());
return result; result.setBatchVolume(existingBatchDtl.getBatchVolume());
return result;
}
} }
// 查询运输计划规则 // 查询运输计划规则