浏览代码

fix 题目列表

he2802 3 年之前
父节点
当前提交
885ce595e0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      zhongzheng-common/src/main/java/com/zhongzheng/common/utils/DateUtils.java

+ 1 - 1
zhongzheng-common/src/main/java/com/zhongzheng/common/utils/DateUtils.java

@@ -170,7 +170,7 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils
     public static String getDateOrderSn()
     public static String getDateOrderSn()
     {
     {
         DateTimeFormatter ofPattern = DateTimeFormatter.ofPattern("yyyyMMddHHmmss");
         DateTimeFormatter ofPattern = DateTimeFormatter.ofPattern("yyyyMMddHHmmss");
-        String localDate = LocalDateTime.now().format(ofPattern);
+        String localDate = (LocalDateTime.now().format(ofPattern)).substring(2);
         //随机数
         //随机数
         String randomNumeric = RandomStringUtils.randomNumeric(8);
         String randomNumeric = RandomStringUtils.randomNumeric(8);
         return localDate+randomNumeric;
         return localDate+randomNumeric;