tangjiang 8 сар өмнө
parent
commit
6d5dd45f9f

+ 2 - 2
src/Hotline.Application/StatisticalReport/OrderReportApplication.cs

@@ -97,7 +97,7 @@ namespace Hotline.Application.StatisticalReport
             else if (dto.TypeId.HasValue && dto.TypeId == 2)
                 strWhere += " and \"o\".\"IdentityType\"=2 ";
 
-            var orgName = string.IsNullOrEmpty(dto.OrgName) == false ? "   and   \"Name\" like concat('%'," + dto.OrgName + ",'%')" : "";
+            var orgName = string.IsNullOrEmpty(dto.OrgName) == false ? "   and   \"Name\" like concat('%" + dto.OrgName + "%')" : "";
 
             strSql = string.Format(strSql, dto.StartTime, dto.EndTime, strWhere, orgLength, isOrg, orgName);
 
@@ -133,7 +133,7 @@ namespace Hotline.Application.StatisticalReport
 
             var isOrg = dto.OrgCode == "001" ? "  and \"HandlerOrgId\" ='001'" : " and \"HandlerOrgId\" like concat('" + dto.OrgCode + "','%') ";
 
-            var orgName = string.IsNullOrEmpty(dto.OrgName) == false ? "   and   \"Name\" like concat('%'," + dto.OrgName + ",'%')" : "";
+            var orgName = string.IsNullOrEmpty(dto.OrgName) == false ? "   and   \"Name\" like concat('%" + dto.OrgName + "%')" : "";
 
             strSql = string.Format(strSql, dto.StartTime, dto.EndTime, strWhere, orgLength, isOrg, orgName);