配送页面字段内容调整
This commit is contained in:
@@ -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()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user