|
|
@@ -170,12 +170,10 @@ public class IntegralShareService extends BaseService<IntegralShare> {
|
|
|
integralShareVO.setEndDate(LocalDateTime.now().plusHours(integralTacticResponses.get(0).getShareValidTimes()));
|
|
|
}else{
|
|
|
// 获取当前日期时间
|
|
|
- LocalDateTime currentDateTime = LocalDateTime.now(); // 设置时间为23点59分
|
|
|
- LocalDateTime time2359 = currentDateTime.withHour(23).withMinute(59).withSecond(59);
|
|
|
- // 格式化时间为指定格式
|
|
|
- DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
|
|
- String formattedDateTime = time2359.format(formatter);
|
|
|
- integralShareVO.setEndDate(LocalDateTime.parse(formattedDateTime));
|
|
|
+ LocalDate currentDateTime = LocalDate.now(); // 设置时间为23点59分
|
|
|
+
|
|
|
+ integralShareVO.setEndDate(LocalDateTime.of(currentDateTime.getYear(),currentDateTime.getMonth().getValue(),
|
|
|
+ currentDateTime.getDayOfMonth(),23,59,59));
|
|
|
}
|
|
|
//实体转换
|
|
|
IntegralShare integralShare = integralShareConvert.convertToPo(integralShareVO);
|