Explorar o código

fix 题目列表

he2802 %!s(int64=3) %!d(string=hai) anos
pai
achega
885ce595e0

+ 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()
     {
         DateTimeFormatter ofPattern = DateTimeFormatter.ofPattern("yyyyMMddHHmmss");
-        String localDate = LocalDateTime.now().format(ofPattern);
+        String localDate = (LocalDateTime.now().format(ofPattern)).substring(2);
         //随机数
         String randomNumeric = RandomStringUtils.randomNumeric(8);
         return localDate+randomNumeric;