定时任务

This commit is contained in:
2025-12-10 19:02:09 +08:00
parent d097f8d4d4
commit 6726cdfb52
14 changed files with 547 additions and 475 deletions
+8 -6
View File
@@ -43,7 +43,7 @@ namespace BLL
/// 数据库连接字符串
/// </summary>
private static string connString;
/// <summary>
/// 数据库连结字符串。
/// </summary>
@@ -134,7 +134,8 @@ namespace BLL
{
get
{
lock (locker) {
lock (locker)
{
try
{
if (!DBList.ContainsKey(System.Threading.Thread.CurrentThread.ManagedThreadId))
@@ -194,7 +195,7 @@ namespace BLL
DDL.Items.Insert(0, new FineUIPro.ListItem("- 请选择 -", BLL.Const._Null));
return;
}
/// <summary>
/// 为目标下拉框加上选择内容
/// </summary>
@@ -575,7 +576,7 @@ namespace BLL
Random rm = new Random(System.Environment.TickCount);
if (dateTime.HasValue)
{
str= dateTime.Value.ToString("yyyyMMddhhmmss") + rm.Next(1000, 9999).ToString();
str = dateTime.Value.ToString("yyyyMMddhhmmss") + rm.Next(1000, 9999).ToString();
}
return str;
}
@@ -872,7 +873,7 @@ namespace BLL
}
#region
public static string NumericCapitalization(decimal num)
public static string NumericCapitalization(decimal num)
{
string str1 = "零壹贰叁肆伍陆柒捌玖"; //0-9所对应的汉字
string str2 = "万仟佰拾亿仟佰拾万仟佰拾元角分"; //数字位所对应的汉字
@@ -1003,7 +1004,7 @@ namespace BLL
return str.ToArray();
}
public static string GetStringByArray(string[] array)
public static string GetStringByArray(string[] array)
{
string str = string.Empty;
foreach (var item in array)
@@ -1209,6 +1210,7 @@ namespace BLL
}
IRestResponse response = client.Execute(request);
return response.Content;
}