|
|
|
|
@ -2177,10 +2177,10 @@ public class PointServiceImpl implements PointService {
|
|
|
|
|
return localDateTime.format(DateTimeFormatter.ofPattern("yyyy年MM月dd日")); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
try { |
|
|
|
|
LocalDateTime localDateTime = LocalDateTime.parse(dateString, DateTimeFormatter.ofPattern("yyyyMMdd")); |
|
|
|
|
LocalDate localDateTime = LocalDate.parse(dateString, DateTimeFormatter.ofPattern("yyyyMMdd")); |
|
|
|
|
return localDateTime.format(DateTimeFormatter.ofPattern("yyyy年MM月dd日")); |
|
|
|
|
} catch (Exception ignored) { |
|
|
|
|
|
|
|
|
|
} catch (Exception ex) { |
|
|
|
|
System.out.println("时间" + dateString + "解析失败" + ex); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
@ -2209,8 +2209,8 @@ public class PointServiceImpl implements PointService {
|
|
|
|
|
time = String.valueOf(param); |
|
|
|
|
LocalDateTime localDateTime = LocalDateTime.parse(time, DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")); |
|
|
|
|
return localDateTime.format(DateTimeFormatter.ofPattern("yyyy年MM月dd日HH时mm分")); |
|
|
|
|
} catch (Exception ignored) { |
|
|
|
|
|
|
|
|
|
} catch (Exception exxx) { |
|
|
|
|
System.out.println("时间" + time + "解析失败" + ex); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|