This commit is contained in:
2025-09-24 20:10:40 +08:00
parent 4389e8eb4f
commit e75ade14ca
3 changed files with 25 additions and 26 deletions
+15 -16
View File
@@ -1,6 +1,7 @@
namespace BLL
{
using Model;
using Org.BouncyCastle.Utilities;
using Quartz;
using RestSharp;
using System;
@@ -351,7 +352,7 @@ namespace BLL
}
catch (Exception ex)
{
ErrLogInfo.WriteLog(string.Empty, ex);
ErrLogInfo.WriteLog($"错误数据:{decimalStr}", ex);
return false;
}
}
@@ -375,7 +376,7 @@ namespace BLL
}
catch (Exception ex)
{
ErrLogInfo.WriteLog(string.Empty, ex);
ErrLogInfo.WriteLog($"错误数据:{integerStr}", ex);
return false;
}
}
@@ -518,7 +519,7 @@ namespace BLL
public static decimal? GetNewDecimal(string value)
{
decimal? revalue = null;
if (!String.IsNullOrEmpty(value))
if (!string.IsNullOrWhiteSpace(value))
{
try
{
@@ -526,8 +527,7 @@ namespace BLL
}
catch (Exception ex)
{
ErrLogInfo.WriteLog(string.Empty, ex);
ErrLogInfo.WriteLog($"错误数据:{value}", ex);
}
}
@@ -540,7 +540,7 @@ namespace BLL
/// <returns></returns>
public static int? GetNewInt(string value)
{
if (!String.IsNullOrEmpty(value))
if (!string.IsNullOrWhiteSpace(value))
{
try
{
@@ -548,7 +548,7 @@ namespace BLL
}
catch (Exception ex)
{
ErrLogInfo.WriteLog(string.Empty, ex);
ErrLogInfo.WriteLog($"错误数据:{value}", ex);
return null;
}
}
@@ -564,7 +564,7 @@ namespace BLL
/// <returns></returns>
public static long? GetNewlong(string value)
{
if (!String.IsNullOrEmpty(value))
if (!string.IsNullOrWhiteSpace(value))
{
try
{
@@ -572,7 +572,7 @@ namespace BLL
}
catch (Exception ex)
{
ErrLogInfo.WriteLog(string.Empty, ex);
ErrLogInfo.WriteLog($"错误数据:{value}", ex);
return null;
}
}
@@ -589,7 +589,7 @@ namespace BLL
public static int GetNewIntOrZero(string value)
{
int revalue = 0;
if (!String.IsNullOrEmpty(value))
if (!string.IsNullOrWhiteSpace(value))
{
try
{
@@ -597,8 +597,7 @@ namespace BLL
}
catch (Exception ex)
{
ErrLogInfo.WriteLog(string.Empty, ex);
ErrLogInfo.WriteLog($"错误数据:{value}", ex);
}
}
@@ -693,7 +692,7 @@ namespace BLL
{
try
{
if (!String.IsNullOrEmpty(time))
if (!string.IsNullOrWhiteSpace(time))
{
DateTime dateTime = DateTime.Parse(time);
if (dateTime.Year > 1753 && dateTime.Year < 9999)
@@ -712,7 +711,7 @@ namespace BLL
}
catch (Exception ex)
{
ErrLogInfo.WriteLog(string.Empty, ex);
ErrLogInfo.WriteLog($"错误数据:{time}", ex);
return null;
}
}
@@ -725,7 +724,7 @@ namespace BLL
{
try
{
if (!String.IsNullOrEmpty(time))
if (!string.IsNullOrWhiteSpace(time))
{
DateTime dateTime = DateTime.Parse(time);
if (dateTime.Year > 1753 && dateTime.Year < 9999)
@@ -744,7 +743,7 @@ namespace BLL
}
catch (Exception ex)
{
ErrLogInfo.WriteLog(string.Empty, ex);
ErrLogInfo.WriteLog($"错误数据:{time}", ex);
return System.DateTime.Now;
}
}