Commit a4b1dc3b authored by fangxinjiang's avatar fangxinjiang

商险派单时间重叠逻辑-fxj

parent 4aa2545c
......@@ -700,6 +700,20 @@ public class DateUtil {
return date;
}
/**
* @Author fxj
* @Description 将LocalDate转成Date
* @Date 16:11 2025/11/20
* @Param
* @return
**/
public static Date convertToDateByLocalDate(LocalDate localDate) {
if (localDate == null) {
return null;
}
return Date.from(localDate.atStartOfDay(ZoneId.systemDefault()).toInstant());
}
public static String dateFromat(Date date, int minute) {
String dateFormat = null;
int year = Integer.parseInt(getYear(date));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment