|
@@ -125,7 +125,7 @@ public abstract class AbstractWaybillOrderHandler<T extends WaybillOrderProcessP
|
|
|
if (param == null) {
|
|
if (param == null) {
|
|
|
throw new BusinessPlatfromException(ErrorCodeEnum.PARAM_ERROR, "参数不能为空");
|
|
throw new BusinessPlatfromException(ErrorCodeEnum.PARAM_ERROR, "参数不能为空");
|
|
|
}
|
|
}
|
|
|
- if (!(param instanceof WaybillOrderCancelParam || param instanceof WaybillOrderCmeIntoWeighParam)) {
|
|
|
|
|
|
|
+ if (!(param instanceof WaybillOrderCancelParam || param instanceof WaybillOrderCmeIntoWeighParam || param instanceof WaybillOrderUnloadingWeighParam)) {
|
|
|
if (StringUtils.isBlank(param.getLng()) || StringUtils.isBlank(param.getLat())) {
|
|
if (StringUtils.isBlank(param.getLng()) || StringUtils.isBlank(param.getLat())) {
|
|
|
throw new BusinessPlatfromException(ErrorCodeEnum.PARAM_ERROR, "未获取到定位,请重启app后再次操作");
|
|
throw new BusinessPlatfromException(ErrorCodeEnum.PARAM_ERROR, "未获取到定位,请重启app后再次操作");
|
|
|
}
|
|
}
|
|
@@ -135,7 +135,7 @@ public abstract class AbstractWaybillOrderHandler<T extends WaybillOrderProcessP
|
|
|
throw new BusinessPlatfromException(ErrorCodeEnum.PARAM_ERROR, "运单ID不能为空");
|
|
throw new BusinessPlatfromException(ErrorCodeEnum.PARAM_ERROR, "运单ID不能为空");
|
|
|
}
|
|
}
|
|
|
// 过磅校验
|
|
// 过磅校验
|
|
|
- if (param instanceof WaybillOrderCmeIntoWeighParam) {
|
|
|
|
|
|
|
+ if (param instanceof WaybillOrderCmeIntoWeighParam || param instanceof WaybillOrderUnloadingWeighParam) {
|
|
|
if (param.getWeighbridgeId() == null || param.getWeighbridgeName() == null || param.getWeighUrl() == null) {
|
|
if (param.getWeighbridgeId() == null || param.getWeighbridgeName() == null || param.getWeighUrl() == null) {
|
|
|
throw new BusinessPlatfromException(ErrorCodeEnum.PARAM_ERROR, "地磅信息不能为空");
|
|
throw new BusinessPlatfromException(ErrorCodeEnum.PARAM_ERROR, "地磅信息不能为空");
|
|
|
}
|
|
}
|