|
|
@@ -88,6 +88,9 @@ public class ComeIntoHandler extends AbstractWaybillOrderHandler<WaybillOrderCme
|
|
|
if (StringUtils.isBlank(param.getTruckNo())) {
|
|
|
throw new BusinessPlatfromException(ErrorCodeEnum.PARAM_ERROR, "车牌号不能为空!");
|
|
|
}
|
|
|
+ if (param.getWeighAmount() == null) {
|
|
|
+ throw new BusinessPlatfromException(ErrorCodeEnum.PARAM_ERROR, "皮重不能为空!");
|
|
|
+ }
|
|
|
// 校验运单
|
|
|
if (!Objects.equals(CarWaybillV1Enum.PENDING_VEHICLE.getCode(), waybillOrder.getStatus())) {
|
|
|
throw new BusinessPlatfromException(ErrorCodeEnum.WAYBILL_ORDER_STATUS_ERROR, "当前物流运单状态不是“已接单”状态,无法称重过磅!");
|
|
|
@@ -228,6 +231,9 @@ public class ComeIntoHandler extends AbstractWaybillOrderHandler<WaybillOrderCme
|
|
|
* @param waybillOrder
|
|
|
*/
|
|
|
private void laterWeighbridge(WaybillOrderCmeIntoWeighParam param, KwtWaybillOrder waybillOrder, KwtWaybillOrderTicket orderTicket) {
|
|
|
+ if (param.getWeighAmount() == null) {
|
|
|
+ throw new BusinessPlatfromException(ErrorCodeEnum.PARAM_ERROR, "毛重不能为空!");
|
|
|
+ }
|
|
|
//1.填充装货单毛重和装货净重
|
|
|
BigDecimal loadAmount = updateGrossAmount(param, orderTicket);
|
|
|
//2.填充运单装货净重
|