燕山石化溯源三维电子沙盘-【后端】-服务
1
13693261870
2023-08-10 1b2ce0a15e0d441042817feceaa16184a885165f
src/main/java/com/yssh/utils/DateUtils.java
@@ -212,9 +212,6 @@
      return times;
   }
   /**
    *
    */
   public static Map<Date, Date> segmentationDateByTimeQuantum(Date startDate, Date endDate, int timeQuantum, int dateType) {
      LinkedHashMap<Date, Date> result = new LinkedHashMap<Date, Date>();
      long startTimeMillisecond = startDate.getTime();
@@ -245,9 +242,17 @@
   }
   /**
    * 剪除日期的时间部分
    */
   public static Date trimTime(Date date) {
      Calendar cal = Calendar.getInstance();
      cal.setTime(date);
      return dateTime(YYYY_MM_DD_HH_MM_SS, parseDateToStr(YYYY_MM_DD, cal.getTime()) + " 00:00:00");
   }
   /**
    * 获取本月第一天
    *
    * @return String
    **/
   public static Date getMonthStart(Date date) {
      Calendar cal = Calendar.getInstance();
@@ -259,8 +264,6 @@
   /**
    * 获取本月最后一天
    *
    * @return String
    **/
   public static Date getMonthEnd(Date date) {
      Calendar cal = Calendar.getInstance();