0.5小时判断 private boolean validateTimeUnit(BigDecimal inputTime){ BigDecimal roundTime = inputTime.multiply(new BigDecimal(10)); return roundTime.divideAndRemainder(new BigDecimal(5))[1].compareTo(BigDecimal.ZERO) == 0; }