Преглед на файлове

修改车资料,酒店资料,导游地接资料,机场三字码资料的SQL语句

wangh преди 2 години
родител
ревизия
0c3a8d2338

+ 1 - 0
OASystem/OASystem.Infrastructure/Repositories/Resource/CarDataRepository.cs

@@ -41,6 +41,7 @@ namespace OASystem.Infrastructure.Repositories.Resource
                 {
                     sqlWhere += string.Format(@" And ContactTel like '%{0}%'", dto.ContactTel);
                 }
+                sqlWhere += string.Format(@" And IsDel={0}", 0);
                 if (!string.IsNullOrEmpty(sqlWhere.Trim()))
                 {
                     Regex r = new Regex("And");

+ 1 - 0
OASystem/OASystem.Infrastructure/Repositories/Resource/HotelDataRepository.cs

@@ -101,6 +101,7 @@ namespace OASystem.Infrastructure.Repositories.Resource
                 {
                     sqlWhere += string.Format(@" And ContactPhone like '%{0}%'", dto.ContactPhone);
                 }
+                sqlWhere += string.Format(@" And IsDel={0}", 0);
                 if (!string.IsNullOrEmpty(sqlWhere.Trim()))
                 {
                     Regex r = new Regex("And");

+ 1 - 0
OASystem/OASystem.Infrastructure/Repositories/Resource/LocalGuideDataRepository.cs

@@ -108,6 +108,7 @@ namespace OASystem.Infrastructure.Repositories.Resource
                 {
                     sqlWhere += string.Format(@" And ContactTel like '%{0}%'", dto.ContactTel);
                 }
+                sqlWhere += string.Format(@" And IsDel={0}", 0);
                 if (!string.IsNullOrEmpty(sqlWhere.Trim()))
                 {
                     Regex r = new Regex("And");

+ 1 - 0
OASystem/OASystem.Infrastructure/Repositories/Resource/ThreeCodeRepository.cs

@@ -35,6 +35,7 @@ namespace OASystem.Infrastructure.Repositories.Resource
                 {
                     sqlWhere += string.Format(@" And Three like '%{0}%'", dto.Three);
                 }
+                sqlWhere += string.Format(@" And IsDel={0}", 0);
                 if (!string.IsNullOrEmpty(sqlWhere.Trim()))
                 {
                     Regex r = new Regex("And");