|
|
@@ -1509,13 +1509,16 @@ public class LawyerClientConsultationOrderServiceImpl extends ServiceImpl<Lawyer
|
|
|
// 格式化日期
|
|
|
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
String acceptTimeStr = dateFormat.format(acceptTime);
|
|
|
- String validityPeriodStr = "";
|
|
|
- if (order.getValidityPeriod() != null) {
|
|
|
- validityPeriodStr = dateFormat.format(order.getValidityPeriod());
|
|
|
- } else {
|
|
|
- // 如果有效期为空,使用默认提示
|
|
|
- validityPeriodStr = "待定";
|
|
|
- }
|
|
|
+
|
|
|
+ // 计算当前时间三天后的23:59:59
|
|
|
+ LocalDateTime now = LocalDateTime.now();
|
|
|
+ LocalDateTime validityDateTime = now.plusDays(3)
|
|
|
+ .withHour(23)
|
|
|
+ .withMinute(59)
|
|
|
+ .withSecond(59)
|
|
|
+ .withNano(0);
|
|
|
+ Date validityDate = Date.from(validityDateTime.atZone(ZoneId.systemDefault()).toInstant());
|
|
|
+ String validityPeriodStr = dateFormat.format(validityDate);
|
|
|
|
|
|
// 构建通知消息
|
|
|
String orderNumber = order.getOrderNumber() != null ? order.getOrderNumber() : "";
|