Update unit test

This commit is contained in:
sunkaixuan 2023-01-12 19:41:39 +08:00
parent 1cb9871d8d
commit 7b561b8af0
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ namespace OrmTest
.Where(x => x.IpfCode == "" && x.PmId == pm1.Id)
.Select(x => SqlFunc.AggregateSum(SqlFunc.ToDecimal(x.SbrAmount))))
}).ToSqlString();
if (!sql.Contains("`bil_payment` pm1"))
if (!sql.Contains("`bil_payment` `pm1`"))
{
throw new Exception("unit error");
}

View File

@ -56,7 +56,7 @@ namespace OrmTest
.Having(cs => cs.PmAmount != 0)
.ToSql();
if (!sql.Key.Contains("`bil_costshare` cs"))
if (!sql.Key.Contains("`bil_costshare` `cs`"))
{
throw new Exception("unit error");
}