diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util/Common/CommonHelper.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util/Common/CommonHelper.cs
index bfda49b36..1a7db6208 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util/Common/CommonHelper.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util/Common/CommonHelper.cs
@@ -71,6 +71,16 @@ namespace Learun.Util
string code = DateTime.Now.ToString("yyyyMMddHHmmss") + strRandom;//形如
return code;
}
+ ///
+ /// 自动生成编号 年月日 20221207
+ ///
+ ///
+ public static string StringTime()
+ {
+ Random random = new Random();
+ string code = DateTime.Now.ToString("yyyyMMdd");
+ return code;
+ }
#endregion
#region 生成0-9随机数