Date endTime = DateUtil.endOfDay(couponDTO.getEndTime()) // 获取某天的结束时间 .offset(DateField.MILLISECOND,-999); // 减去毫秒数999