Update gbase

This commit is contained in:
sunkaixuan
2025-09-17 11:41:09 +08:00
parent 994d517225
commit cc35b9bde0

View File

@@ -1,13 +1,11 @@
using System; using GBS.Data.GBasedbt;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Data; using System.Data;
using System.Data.Common; using System.Data.Common;
using System.Linq; using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using GBS.Data.GBasedbt; using System.Threading.Tasks;
namespace SqlSugar.GBase namespace SqlSugar.GBase
{ {
@@ -404,6 +402,10 @@ namespace SqlSugar.GBase
else else
{ {
gbsParam.Value = (param.Value == null) ? DBNull.Value : param.Value; gbsParam.Value = (param.Value == null) ? DBNull.Value : param.Value;
if (gbsParam.Value is DateTime)
{
gbsParam.Value = ((DateTime)gbsParam.Value).ToString("yyyy-MM-dd HH:mm:ss.fff");
}
} }
sqlCommand.Parameters.Add(gbsParam); sqlCommand.Parameters.Add(gbsParam);