Commit ef72d0bc authored by yanzg's avatar yanzg

常规BUG的修改

parent 88b98773
......@@ -115,6 +115,7 @@ public class DateHelper {
/**
* 取得当前日期的字符串表示,格式为 yyyy-MM-dd
*
* @param date
* @return
*/
......@@ -124,12 +125,14 @@ public class DateHelper {
/**
* 取得当前日期的字符串表示,格式为 yyyy-MM-dd
*
* @param date
* @return
*/
public static String getToday(Date date) {
return getYearMonthDay(date);
}
/**
* 获取年份
*
......@@ -243,6 +246,24 @@ public class DateHelper {
return cal.getTime();
}
/**
* 当日期长度只有到日期时,在最后免补足时间
*
* @param from
* @param patchHour
* @return
*/
public static String initDate(String from, String patchHour) {
if (StringHelper.isEmpty(from)) {
return from;
}
if (from.length() <= 10) {
return from + patchHour;
} else {
return from;
}
}
/**
* 本季度开始时间
*
......
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