Update gbase

This commit is contained in:
sunkaixuan 2024-08-20 14:57:52 +08:00
parent 4664912fc8
commit c7d6dfe1d8

View File

@ -50,16 +50,15 @@ namespace SqlSugar.GBase
{
var parameter = model.Args[0];
var parameter1 = model.Args[1];
string str = string.Format("NVL({0}::"+ _dateTimeType + ",{1}::" + _dateTimeType + ")", parameter.MemberName, parameter1.MemberName);
string str = string.Format("NVL({0},{1})", parameter.MemberName, parameter1.MemberName);
//if (parameter1 != null && parameter1.MemberValue != null)
//{
// str = str.TrimEnd(')');
// if (parameter1.MemberValue.GetType() == UtilConstants.DateType)
// {
// str += string.Format("::{0})", _dateTimeType);
// }
//}
if (parameter1 != null && parameter1.MemberValue != null)
{
if (parameter1.MemberValue.GetType() == UtilConstants.DateType)
{
str = string.Format("NVL({0} {2},{1} {2})", parameter.MemberName, parameter1.MemberName, "::"+_dateTimeType);
}
}
return str;
}