配送页面字段内容调整

This commit is contained in:
2026-03-24 10:26:38 +08:00
parent 853bc319b6
commit 9e82ffb395

View File

@@ -65,7 +65,9 @@ public class VehicleTypeServiceImpl implements IVehicleTypeService {
if (km.compareTo(BigDecimal.ZERO) <= 0) { if (km.compareTo(BigDecimal.ZERO) <= 0) {
throw new ServiceException("公里数必须大于0"); throw new ServiceException("公里数必须大于0");
} }
if(weight.compareTo(BigDecimal.ZERO) == 0||volume.compareTo(BigDecimal.ZERO) == 0){
throw new ServiceException("请维护物料字典");
}
List<VehicleType> vehicleTypes = vehicleTypeMapper.selectUsableTypes(); List<VehicleType> vehicleTypes = vehicleTypeMapper.selectUsableTypes();
if (vehicleTypes == null || vehicleTypes.isEmpty()) { if (vehicleTypes == null || vehicleTypes.isEmpty()) {