勘料时出场

localizer
lzq 2025-10-10 11:27:04 +08:00
parent fc58a14b66
commit f8be944e67
2 changed files with 3 additions and 1 deletions

View File

@ -102,7 +102,7 @@ public class OrderCarInOutService extends ServiceImpl<OrderCarInOutMapper, Order
if (roughWeight__ == null) {
BizTruckEntity bizTruckEntity = bizTruckService.getById(truckId);
Integer truckTareWeight = bizTruckEntity.getTareWeight();
Assert.notNull(truckTareWeight, () -> Exceptions.exception("车辆未配置皮重"));
Assert.notNull(truckTareWeight, () -> Exceptions.exception("{} 车辆暂无皮重", bizTruckEntity.getLicensePlate()));
orderCarInOutEntity.setRoughWeight(truckTareWeight);
roughWeight__ = truckTareWeight;
}

View File

@ -565,6 +565,8 @@ public class OrderInfoService extends ServiceImpl<OrderInfoMapper, OrderInfoEnti
.setCheckStatus(CheckStatus.YiKanLiao)
.setCheckerId(SecurityUtil.currentUserId())
);
truckLeaving(new TruckLeavingOrderParam().setOrderId(orderId), 0);
}
@Transactional(rollbackFor = Exception.class)