소스 검색

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()
     {
         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;