Commit 992d22a0 authored by zhouleilei's avatar zhouleilei

方案环图查询-优化易华录调度日期

parent 7cce213a
...@@ -429,10 +429,10 @@ public class WanJiCommonStaticInfoServiceImpl implements WanJiCommonStaticInfoSe ...@@ -429,10 +429,10 @@ public class WanJiCommonStaticInfoServiceImpl implements WanJiCommonStaticInfoSe
//java.util.date转LocalDate //java.util.date转LocalDate
LocalDate localDate = datetime.toInstant().atZone(ZoneId.systemDefault()).toLocalDate(); LocalDate localDate = datetime.toInstant().atZone(ZoneId.systemDefault()).toLocalDate();
int week = localDate.getDayOfWeek().getValue(); int week = localDate.getDayOfWeek().getValue();
if (week == 7) { /*if (week == 7) {
//表中周日用0表示 //表中周日用0表示
week = 0; week = 0;
} }*/
// 创建一个 SimpleDateFormat 对象,并指定日期格式 // 创建一个 SimpleDateFormat 对象,并指定日期格式
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
// 将 Date 对象格式化为字符串 // 将 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