魏超 5 年前
父节点
当前提交
be721d2557

+ 5
- 0
src/main/java/com/huiju/estateagents/common/DateUtils.java 查看文件

@@ -32,4 +32,9 @@ public class DateUtils {
32 32
         DateTimeFormatter df = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
33 33
         return LocalDateTime.parse(day + " 00:00:00",df);
34 34
     }
35
+
36
+    public static LocalDateTime dayToLocalDateime(String day) {
37
+        DateTimeFormatter df = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
38
+        return LocalDateTime.parse(day,df);
39
+    }
35 40
 }

+ 1
- 1
src/main/java/com/huiju/estateagents/service/impl/TaRecommendCustomerServiceImpl.java 查看文件

@@ -175,7 +175,7 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
175 175
         // 时间格式 yyyy-MM-dd
176 176
         String at = params.getString("appointmentTime");
177 177
         if (!StringUtils.isEmpty(at)) {
178
-            taRecommendCustomer.setAppointmentTime(DateUtils.day2LocalDateime(at));
178
+            taRecommendCustomer.setAppointmentTime(DateUtils.dayToLocalDateime(at));
179 179
         }
180 180
 
181 181
 //        taRecommendCustomer.setAppointmentTime((String) params.get("appointmentTime"));