Commit 29ddc83d authored by chenshuoan's avatar chenshuoan

Update TakeOrdersBtnEnhance.java

parent 9c0804d4
......@@ -43,7 +43,7 @@ public class TakeOrdersBtnEnhance implements BtnServerEnhanceJavaInter {
workOrderEntity.setEstimatedWorkHours((Integer) data.get("estimatedWorkHours"));
// 预计关单时间
String dateString = (String) data.get("estimatedCloseTime");
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("YYYY-MM-DD HH:mm:ss");
LocalDate localDate = LocalDate.parse(dateString, formatter);
Date date = Date.from(localDate.atStartOfDay(ZoneId.systemDefault()).toInstant());
workOrderEntity.setEstimatedCloseTime(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