|
@@ -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;
|