|
@@ -62,11 +62,11 @@ public class KwmLineFreightRateService {
|
|
|
if (Objects.equals(loadName, unloadName)) {
|
|
if (Objects.equals(loadName, unloadName)) {
|
|
|
throw new BusinessException("路径起始结束位置不能相同!");
|
|
throw new BusinessException("路径起始结束位置不能相同!");
|
|
|
}
|
|
}
|
|
|
- KwmAddress load = addressService.getByNameAndEntId(loadName, entId);
|
|
|
|
|
|
|
+ KwmAddress load = addressService.getByNameAndEntId(loadName, addLineFreightRateParam.getLoadEntId());
|
|
|
if (Objects.isNull(load)) {
|
|
if (Objects.isNull(load)) {
|
|
|
throw new BusinessException("路径起始位置信息不存在!");
|
|
throw new BusinessException("路径起始位置信息不存在!");
|
|
|
}
|
|
}
|
|
|
- KwmAddress unload = addressService.getByNameAndEntId(unloadName, entId);
|
|
|
|
|
|
|
+ KwmAddress unload = addressService.getByNameAndEntId(unloadName, addLineFreightRateParam.getUnloadEntId());
|
|
|
if (Objects.isNull(unload)) {
|
|
if (Objects.isNull(unload)) {
|
|
|
throw new BusinessException("路径结束位置信息不存在!");
|
|
throw new BusinessException("路径结束位置信息不存在!");
|
|
|
}
|
|
}
|
|
@@ -104,7 +104,7 @@ public class KwmLineFreightRateService {
|
|
|
throw new BusinessException("路径起始结束位置不能相同!");
|
|
throw new BusinessException("路径起始结束位置不能相同!");
|
|
|
}
|
|
}
|
|
|
if (!Objects.equals(loadName, lineFreightRate.getLoadName())) {
|
|
if (!Objects.equals(loadName, lineFreightRate.getLoadName())) {
|
|
|
- KwmAddress load = addressService.getByNameAndEntId(param.getLoadName(), entId);
|
|
|
|
|
|
|
+ KwmAddress load = addressService.getByNameAndEntId(param.getLoadName(), param.getLoadEntId());
|
|
|
if (Objects.isNull(load)) {
|
|
if (Objects.isNull(load)) {
|
|
|
throw new BusinessException("路径起始位置信息不存在!");
|
|
throw new BusinessException("路径起始位置信息不存在!");
|
|
|
}
|
|
}
|
|
@@ -113,7 +113,7 @@ public class KwmLineFreightRateService {
|
|
|
.setLoadLng(load.getLng()).setLoadLat(load.getLat());
|
|
.setLoadLng(load.getLng()).setLoadLat(load.getLat());
|
|
|
}
|
|
}
|
|
|
if (!Objects.equals(unloadName, lineFreightRate.getUnloadName())) {
|
|
if (!Objects.equals(unloadName, lineFreightRate.getUnloadName())) {
|
|
|
- KwmAddress unload = addressService.getByNameAndEntId(param.getUnloadName(), entId);
|
|
|
|
|
|
|
+ KwmAddress unload = addressService.getByNameAndEntId(param.getUnloadName(), param.getUnloadEntId());
|
|
|
if (Objects.isNull(unload)) {
|
|
if (Objects.isNull(unload)) {
|
|
|
throw new BusinessException("路径结束位置信息不存在!");
|
|
throw new BusinessException("路径结束位置信息不存在!");
|
|
|
}
|
|
}
|