Merge pull request 'demand: TMS系统 - 运输管理 - 货物组批次编辑相同运单移除后又添加显示0bug修复' (#154) from develop into master
Reviewed-on: http://git.xdadan.loc/tanex/emis-service/pulls/154
This commit is contained in:
commit
a6b3030dea
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 查询运输计划规则
|
// 查询运输计划规则
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user