duhongyu лет назад: 5
Родитель
Сommit
1d59990908

+ 12 - 12
codegit/CallCenterApi/CallCenterApi.DAL/T_Call_CallRecords.cs

@@ -23,7 +23,7 @@ namespace CallCenterApi.DAL
23 23
         /// </summary>
24 24
         public int GetMaxId()
25 25
         {
26
-            return DbHelperSQL.GetMaxID("CallRecordsId", "T_Call_CallRecords");
26
+            return DbHelperSQL.GetMaxID("CallRecordsId", "T_Call_CallRecords WITH(NOLOCK)");
27 27
         }
28 28
 
29 29
         /// <summary>
@@ -32,7 +32,7 @@ namespace CallCenterApi.DAL
32 32
         public bool Exists(int CallRecordsId)
33 33
         {
34 34
             StringBuilder strSql = new StringBuilder();
35
-            strSql.Append("select count(1) from T_Call_CallRecords");
35
+            strSql.Append("select count(1) from T_Call_CallRecords WITH(NOLOCK)");
36 36
             strSql.Append(" where CallRecordsId=@CallRecordsId");
37 37
             SqlParameter[] parameters = {
38 38
                     new SqlParameter("@CallRecordsId", SqlDbType.Int,4)
@@ -356,7 +356,7 @@ namespace CallCenterApi.DAL
356 356
         {
357 357
 
358 358
             StringBuilder strSql = new StringBuilder();
359
-            strSql.Append("delete from T_Call_CallRecords ");
359
+            strSql.Append("delete from T_Call_CallRecords WITH(NOLOCK) ");
360 360
             strSql.Append(" where CallRecordsId=@CallRecordsId");
361 361
             SqlParameter[] parameters = {
362 362
                     new SqlParameter("@CallRecordsId", SqlDbType.Int,4)
@@ -379,7 +379,7 @@ namespace CallCenterApi.DAL
379 379
         public bool DeleteList(string CallRecordsIdlist)
380 380
         {
381 381
             StringBuilder strSql = new StringBuilder();
382
-            strSql.Append("delete from T_Call_CallRecords ");
382
+            strSql.Append("delete from T_Call_CallRecords WITH(NOLOCK) ");
383 383
             strSql.Append(" where CallRecordsId in (" + CallRecordsIdlist + ")  ");
384 384
             int rows = DbHelperSQL.ExecuteSql(strSql.ToString());
385 385
             if (rows > 0)
@@ -400,7 +400,7 @@ namespace CallCenterApi.DAL
400 400
         {
401 401
 
402 402
             StringBuilder strSql = new StringBuilder();
403
-            strSql.Append("select  top 1 * from T_Call_CallRecords ");
403
+            strSql.Append("select  top 1 * from T_Call_CallRecords WITH(NOLOCK) ");
404 404
             strSql.Append(" where CallRecordsId=@CallRecordsId");
405 405
             SqlParameter[] parameters = {
406 406
                     new SqlParameter("@CallRecordsId", SqlDbType.Int,4)
@@ -658,7 +658,7 @@ namespace CallCenterApi.DAL
658 658
         {
659 659
             StringBuilder strSql = new StringBuilder();
660 660
             strSql.Append("select * ");
661
-            strSql.Append(" FROM T_Call_CallRecords ");
661
+            strSql.Append(" FROM T_Call_CallRecords WITH(NOLOCK) ");
662 662
             if (strWhere.Trim() != "")
663 663
             {
664 664
                 strSql.Append(" where " + strWhere);
@@ -678,7 +678,7 @@ namespace CallCenterApi.DAL
678 678
                 strSql.Append(" top " + Top.ToString());
679 679
             }
680 680
             strSql.Append(" * ");
681
-            strSql.Append(" FROM T_Call_CallRecords ");
681
+            strSql.Append(" FROM T_Call_CallRecords WITH(NOLOCK) ");
682 682
             if (strWhere.Trim() != "")
683 683
             {
684 684
                 strSql.Append(" where " + strWhere);
@@ -693,7 +693,7 @@ namespace CallCenterApi.DAL
693 693
         public int GetRecordCount(string strWhere)
694 694
         {
695 695
             StringBuilder strSql = new StringBuilder();
696
-            strSql.Append("select count(1) FROM T_Call_CallRecords ");
696
+            strSql.Append("select count(1) FROM T_Call_CallRecords WITH(NOLOCK) ");
697 697
             if (strWhere.Trim() != "")
698 698
             {
699 699
                 strSql.Append(" where " + strWhere);
@@ -724,7 +724,7 @@ namespace CallCenterApi.DAL
724 724
             {
725 725
                 strSql.Append("order by T.CallRecordsId desc");
726 726
             }
727
-            strSql.Append(")AS Row, T.*  from T_Call_CallRecords T ");
727
+            strSql.Append(")AS Row, T.*  from T_Call_CallRecords T  WITH(NOLOCK) ");
728 728
             if (!string.IsNullOrEmpty(strWhere.Trim()))
729 729
             {
730 730
                 strSql.Append(" WHERE " + strWhere);
@@ -887,7 +887,7 @@ namespace CallCenterApi.DAL
887 887
         public Model.T_Call_CallRecords GetModelByTelphone(string CallNumber)
888 888
         {
889 889
             StringBuilder strSql = new StringBuilder();
890
-            strSql.Append("select  top 1 * from T_Call_CallRecords ");
890
+            strSql.Append("select  top 1 * from T_Call_CallRecords WITH(NOLOCK) ");
891 891
             strSql.Append(" where CallNumber=@CallNumber order by BeginTime desc");
892 892
             SqlParameter[] parameters = {
893 893
                     new SqlParameter("@CallNumber", SqlDbType.VarChar,100)
@@ -911,7 +911,7 @@ namespace CallCenterApi.DAL
911 911
         public Model.T_Call_CallRecords GetModelByCallId(string CallId)
912 912
         {
913 913
             StringBuilder strSql = new StringBuilder();
914
-            strSql.Append("select  top 1 * from T_Call_CallRecords ");
914
+            strSql.Append("select  top 1 * from T_Call_CallRecords WITH(NOLOCK) ");
915 915
             strSql.Append(" where CallId=@CallId order by BeginTime desc");
916 916
             SqlParameter[] parameters = {
917 917
                     new SqlParameter("@CallId", SqlDbType.VarChar,50)
@@ -1006,7 +1006,7 @@ namespace CallCenterApi.DAL
1006 1006
             strSql.Append(" case callstate when 1 then '已接通' else '未接通' end callstates, ");
1007 1007
             strSql.Append(" usercode, (select F_UserName from T_Sys_UserAccount where F_UserCode= c.UserCode) username, ");
1008 1008
             strSql.Append(" begintime, talkstarttime, talkendtime, talklongtime");
1009
-            strSql.Append(" FROM T_Call_CallRecords c");
1009
+            strSql.Append(" FROM T_Call_CallRecords c WITH(NOLOCK) ");
1010 1010
             if (strWhere.Trim() != "")
1011 1011
             {
1012 1012
                 strSql.Append(" where " + strWhere);

+ 6 - 6
codegit/CallCenterApi/CallCenterApi.DAL/T_Call_CallRecords_QC.cs

@@ -23,7 +23,7 @@ namespace CallCenterApi.DAL
23 23
         public bool Exists(int CallRecordsId)
24 24
         {
25 25
             StringBuilder strSql = new StringBuilder();
26
-            strSql.Append("select count(1) from T_Call_CallRecords");
26
+            strSql.Append("select count(1) from T_Call_CallRecords WITH(NOLOCK) ");
27 27
             strSql.Append(" where CallRecordsId=@CallRecordsId");
28 28
             SqlParameter[] parameters = {
29 29
                     new SqlParameter("@CallRecordsId", SqlDbType.Int,4)
@@ -417,7 +417,7 @@ namespace CallCenterApi.DAL
417 417
         {
418 418
 
419 419
             StringBuilder strSql = new StringBuilder();
420
-            strSql.Append("select  top 1 * from T_Call_CallRecords ");
420
+            strSql.Append("select  top 1 * from T_Call_CallRecords WITH(NOLOCK) ");
421 421
             strSql.Append(" where CallRecordsId=@CallRecordsId");
422 422
             SqlParameter[] parameters = {
423 423
                     new SqlParameter("@CallRecordsId", SqlDbType.Int,4)
@@ -642,7 +642,7 @@ namespace CallCenterApi.DAL
642 642
         {
643 643
             StringBuilder strSql = new StringBuilder();
644 644
             strSql.Append("select * ");
645
-            strSql.Append(" FROM T_Call_CallRecords ");
645
+            strSql.Append(" FROM T_Call_CallRecords WITH(NOLOCK) ");
646 646
             if (strWhere.Trim() != "")
647 647
             {
648 648
                 strSql.Append(" where " + strWhere);
@@ -662,7 +662,7 @@ namespace CallCenterApi.DAL
662 662
                 strSql.Append(" top " + Top.ToString());
663 663
             }
664 664
             strSql.Append(" * ");
665
-            strSql.Append(" FROM T_Call_CallRecords ");
665
+            strSql.Append(" FROM T_Call_CallRecords WITH(NOLOCK) ");
666 666
             if (strWhere.Trim() != "")
667 667
             {
668 668
                 strSql.Append(" where " + strWhere);
@@ -677,7 +677,7 @@ namespace CallCenterApi.DAL
677 677
         public int GetRecordCount(string strWhere)
678 678
         {
679 679
             StringBuilder strSql = new StringBuilder();
680
-            strSql.Append("select count(1) FROM T_Call_CallRecords ");
680
+            strSql.Append("select count(1) FROM T_Call_CallRecords WITH(NOLOCK) ");
681 681
             if (strWhere.Trim() != "")
682 682
             {
683 683
                 strSql.Append(" where " + strWhere);
@@ -708,7 +708,7 @@ namespace CallCenterApi.DAL
708 708
             {
709 709
                 strSql.Append("order by T.CallRecordsId desc");
710 710
             }
711
-            strSql.Append(")AS Row, T.*  from T_Call_CallRecords T ");
711
+            strSql.Append(")AS Row, T.*  from T_Call_CallRecords T WITH(NOLOCK) ");
712 712
             if (!string.IsNullOrEmpty(strWhere.Trim()))
713 713
             {
714 714
                 strSql.Append(" WHERE " + strWhere);

Разница между файлами не показана из-за своего большого размера
+ 6 - 6
codegit/CallCenterApi/CallCenterApi.DAL/T_Call_TaskTelNum.cs


Разница между файлами не показана из-за своего большого размера
+ 8 - 8
codegit/CallCenterApi/CallCenterApi.DAL/T_Cus_CustomerBase.cs


+ 6 - 6
codegit/CallCenterApi/CallCenterApi.DAL/T_Cus_CustomerBaseNew.cs

@@ -23,7 +23,7 @@ namespace CallCenterApi.DAL
23 23
         public bool Exists(int F_CustomerId)
24 24
         {
25 25
             StringBuilder strSql = new StringBuilder();
26
-            strSql.Append("select count(1) from T_Cus_CustomerBaseNew");
26
+            strSql.Append("select count(1) from T_Cus_CustomerBaseNew WITH(NOLOCK) ");
27 27
             strSql.Append(" where F_CustomerId=@F_CustomerId");
28 28
             SqlParameter[] parameters = {
29 29
                     new SqlParameter("@F_CustomerId", SqlDbType.Int,4)
@@ -346,7 +346,7 @@ namespace CallCenterApi.DAL
346 346
         {
347 347
 
348 348
             StringBuilder strSql = new StringBuilder();
349
-            strSql.Append("select  top 1 * from T_Cus_CustomerBaseNew ");
349
+            strSql.Append("select  top 1 * from T_Cus_CustomerBaseNew WITH(NOLOCK) ");
350 350
             strSql.Append(" where F_CustomerId=@F_CustomerId");
351 351
             SqlParameter[] parameters = {
352 352
                     new SqlParameter("@F_CustomerId", SqlDbType.Int,4)
@@ -559,7 +559,7 @@ namespace CallCenterApi.DAL
559 559
         {
560 560
             StringBuilder strSql = new StringBuilder();
561 561
             strSql.Append("select * ");
562
-            strSql.Append(" FROM T_Cus_CustomerBaseNew ");
562
+            strSql.Append(" FROM T_Cus_CustomerBaseNew WITH(NOLOCK) ");
563 563
             if (strWhere.Trim() != "")
564 564
             {
565 565
                 strSql.Append(" where " + strWhere);
@@ -579,7 +579,7 @@ namespace CallCenterApi.DAL
579 579
                 strSql.Append(" top " + Top.ToString());
580 580
             }
581 581
             strSql.Append(" * ");
582
-            strSql.Append(" FROM T_Cus_CustomerBaseNew ");
582
+            strSql.Append(" FROM T_Cus_CustomerBaseNew WITH(NOLOCK) ");
583 583
             if (strWhere.Trim() != "")
584 584
             {
585 585
                 strSql.Append(" where " + strWhere);
@@ -594,7 +594,7 @@ namespace CallCenterApi.DAL
594 594
         public int GetRecordCount(string strWhere)
595 595
         {
596 596
             StringBuilder strSql = new StringBuilder();
597
-            strSql.Append("select count(1) FROM T_Cus_CustomerBaseNew ");
597
+            strSql.Append("select count(1) FROM T_Cus_CustomerBaseNew WITH(NOLOCK) ");
598 598
             if (strWhere.Trim() != "")
599 599
             {
600 600
                 strSql.Append(" where " + strWhere);
@@ -625,7 +625,7 @@ namespace CallCenterApi.DAL
625 625
             {
626 626
                 strSql.Append("order by T.F_CustomerId desc");
627 627
             }
628
-            strSql.Append(")AS Row, T.*  from T_Cus_CustomerBaseNew T ");
628
+            strSql.Append(")AS Row, T.*  from T_Cus_CustomerBaseNew T WITH(NOLOCK) ");
629 629
             if (!string.IsNullOrEmpty(strWhere.Trim()))
630 630
             {
631 631
                 strSql.Append(" WHERE " + strWhere);

+ 7 - 7
codegit/CallCenterApi/CallCenterApi.DAL/T_RepositoryInformation.cs

@@ -23,7 +23,7 @@ namespace CallCenterApi.DAL
23 23
         /// </summary>
24 24
         public int GetMaxId()
25 25
         {
26
-            return DbHelperSQL.GetMaxID("F_RepositoryId", "T_RepositoryInformation");
26
+            return DbHelperSQL.GetMaxID("F_RepositoryId", "T_RepositoryInformation ");
27 27
         }
28 28
 
29 29
         /// <summary>
@@ -32,7 +32,7 @@ namespace CallCenterApi.DAL
32 32
         public bool Exists(int F_RepositoryId)
33 33
         {
34 34
             StringBuilder strSql = new StringBuilder();
35
-            strSql.Append("select count(1) from T_RepositoryInformation");
35
+            strSql.Append("select count(1) from T_RepositoryInformation WITH(NOLOCK) ");
36 36
             strSql.Append(" where F_RepositoryId=@F_RepositoryId");
37 37
             SqlParameter[] parameters = {
38 38
                     new SqlParameter("@F_RepositoryId", SqlDbType.Int,4)
@@ -247,7 +247,7 @@ namespace CallCenterApi.DAL
247 247
         {
248 248
 
249 249
             StringBuilder strSql = new StringBuilder();
250
-            strSql.Append("select  top 1 F_RepositoryId,F_CategoryId,F_CustomerId,F_CustomerName,F_ManId,F_ManName,F_Title,F_Content,F_Description,F_Comments,F_Url,F_KeyWords,F_Expand1,F_Expand2,F_IntExpand1,F_CreateOn,F_CreateBy,F_CreateName,F_ModifyOn,F_ModifyBy,F_ModifyName,F_DeleteFlag from T_RepositoryInformation ");
250
+            strSql.Append("select  top 1 F_RepositoryId,F_CategoryId,F_CustomerId,F_CustomerName,F_ManId,F_ManName,F_Title,F_Content,F_Description,F_Comments,F_Url,F_KeyWords,F_Expand1,F_Expand2,F_IntExpand1,F_CreateOn,F_CreateBy,F_CreateName,F_ModifyOn,F_ModifyBy,F_ModifyName,F_DeleteFlag from T_RepositoryInformation  WITH(NOLOCK) ");
251 251
             strSql.Append(" where F_RepositoryId=@F_RepositoryId");
252 252
             SqlParameter[] parameters = {
253 253
                     new SqlParameter("@F_RepositoryId", SqlDbType.Int,4)
@@ -374,7 +374,7 @@ namespace CallCenterApi.DAL
374 374
         {
375 375
             StringBuilder strSql = new StringBuilder();
376 376
             strSql.Append("select F_RepositoryId,F_CategoryId,F_CustomerId,F_CustomerName,F_ManId,F_ManName,F_Title,F_Content,F_Description,F_Comments,F_Url,F_KeyWords,F_Expand1,F_Expand2,F_IntExpand1,F_CreateOn,F_CreateBy,F_CreateName,F_ModifyOn,F_ModifyBy,F_ModifyName,F_DeleteFlag ");
377
-            strSql.Append(" FROM T_RepositoryInformation ");
377
+            strSql.Append(" FROM T_RepositoryInformation WITH(NOLOCK) ");
378 378
             if (strWhere.Trim() != "")
379 379
             {
380 380
                 strSql.Append(" where " + strWhere);
@@ -394,7 +394,7 @@ namespace CallCenterApi.DAL
394 394
                 strSql.Append(" top " + Top.ToString());
395 395
             }
396 396
             strSql.Append(" F_RepositoryId,F_CategoryId,F_CustomerId,F_CustomerName,F_ManId,F_ManName,F_Title,F_Content,F_Description,F_Comments,F_Url,F_KeyWords,F_Expand1,F_Expand2,F_IntExpand1,F_CreateOn,F_CreateBy,F_CreateName,F_ModifyOn,F_ModifyBy,F_ModifyName,F_DeleteFlag ");
397
-            strSql.Append(" FROM T_RepositoryInformation ");
397
+            strSql.Append(" FROM T_RepositoryInformation WITH(NOLOCK) ");
398 398
             if (strWhere.Trim() != "")
399 399
             {
400 400
                 strSql.Append(" where " + strWhere);
@@ -409,7 +409,7 @@ namespace CallCenterApi.DAL
409 409
         public int GetRecordCount(string strWhere)
410 410
         {
411 411
             StringBuilder strSql = new StringBuilder();
412
-            strSql.Append("select count(1) FROM T_RepositoryInformation ");
412
+            strSql.Append("select count(1) FROM T_RepositoryInformation WITH(NOLOCK) ");
413 413
             if (strWhere.Trim() != "")
414 414
             {
415 415
                 strSql.Append(" where " + strWhere);
@@ -440,7 +440,7 @@ namespace CallCenterApi.DAL
440 440
             {
441 441
                 strSql.Append("order by T.F_RepositoryId desc");
442 442
             }
443
-            strSql.Append(")AS Row, T.*  from T_RepositoryInformation T ");
443
+            strSql.Append(")AS Row, T.*  from T_RepositoryInformation T WITH(NOLOCK) ");
444 444
             if (!string.IsNullOrEmpty(strWhere.Trim()))
445 445
             {
446 446
                 strSql.Append(" WHERE " + strWhere);

+ 6 - 6
codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_Department.cs

@@ -23,7 +23,7 @@ namespace CallCenterApi.DAL
23 23
         public bool Exists(int F_DeptId)
24 24
         {
25 25
             StringBuilder strSql = new StringBuilder();
26
-            strSql.Append("select count(1) from T_Sys_Department");
26
+            strSql.Append("select count(1) from T_Sys_Department WITH(NOLOCK) ");
27 27
             strSql.Append(" where F_DeptId=@F_DeptId");
28 28
             SqlParameter[] parameters = {
29 29
                     new SqlParameter("@F_DeptId", SqlDbType.Int,4)
@@ -206,7 +206,7 @@ namespace CallCenterApi.DAL
206 206
         {
207 207
 
208 208
             StringBuilder strSql = new StringBuilder();
209
-            strSql.Append("select TOP 1 F_DeptId,F_DeptCode,(SELECT B.F_DeptName FROM T_Sys_Department B WHERE B.F_DeptId=A.F_ParentId) AS F_ParentName,F_ParentId,F_ParentCode,F_DeptName,F_State,F_Layer,F_Type,F_Sort,F_Remark,F_Telephone,F_Mobile,F_OtherPhone,F_Email,F_Header from T_Sys_Department  A");
209
+            strSql.Append("select TOP 1 F_DeptId,F_DeptCode,(SELECT B.F_DeptName FROM T_Sys_Department B WHERE B.F_DeptId=A.F_ParentId) AS F_ParentName,F_ParentId,F_ParentCode,F_DeptName,F_State,F_Layer,F_Type,F_Sort,F_Remark,F_Telephone,F_Mobile,F_OtherPhone,F_Email,F_Header from T_Sys_Department  A  WITH(NOLOCK) ");
210 210
             strSql.Append(" where F_DeptId=@F_DeptId");
211 211
             SqlParameter[] parameters = {
212 212
                     new SqlParameter("@F_DeptId", SqlDbType.Int,4)
@@ -309,7 +309,7 @@ namespace CallCenterApi.DAL
309 309
         {
310 310
             StringBuilder strSql = new StringBuilder();
311 311
             strSql.Append("select F_DeptId,F_DeptCode,F_ParentName,F_ParentId,F_ParentCode,F_DeptName,F_State,F_Layer,F_Type,F_Sort,F_Remark,F_Telephone,F_Mobile,F_OtherPhone,F_Email,F_Header ");
312
-            strSql.Append(" FROM T_Sys_Department ");
312
+            strSql.Append(" FROM T_Sys_Department WITH(NOLOCK) ");
313 313
             if (strWhere.Trim() != "")
314 314
             {
315 315
                 strSql.Append(" where " + strWhere);
@@ -330,7 +330,7 @@ namespace CallCenterApi.DAL
330 330
                 strSql.Append(" top " + Top.ToString());
331 331
             }
332 332
             strSql.Append(" F_DeptId,F_DeptCode,F_ParentName,F_ParentId,F_ParentCode,F_DeptName,F_State,F_Layer,F_Type,F_Sort,F_Remark,F_Telephone,F_Mobile,F_OtherPhone,F_Email,F_Header ");
333
-            strSql.Append(" FROM T_Sys_Department ");
333
+            strSql.Append(" FROM T_Sys_Department WITH(NOLOCK) ");
334 334
             if (strWhere.Trim() != "")
335 335
             {
336 336
                 strSql.Append(" where " + strWhere);
@@ -345,7 +345,7 @@ namespace CallCenterApi.DAL
345 345
         public int GetRecordCount(string strWhere)
346 346
         {
347 347
             StringBuilder strSql = new StringBuilder();
348
-            strSql.Append("select count(1) FROM T_Sys_Department ");
348
+            strSql.Append("select count(1) FROM T_Sys_Department WITH(NOLOCK) ");
349 349
             if (strWhere.Trim() != "")
350 350
             {
351 351
                 strSql.Append(" where " + strWhere);
@@ -376,7 +376,7 @@ namespace CallCenterApi.DAL
376 376
             {
377 377
                 strSql.Append("order by T.F_DeptId desc");
378 378
             }
379
-            strSql.Append(")AS Row, T.*  from T_Sys_Department T ");
379
+            strSql.Append(")AS Row, T.*  from T_Sys_Department T WITH(NOLOCK) ");
380 380
             if (!string.IsNullOrEmpty(strWhere.Trim()))
381 381
             {
382 382
                 strSql.Append(" WHERE " + strWhere);

+ 6 - 6
codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_MobileData.cs

@@ -20,7 +20,7 @@ namespace CallCenterApi.DAL
20 20
         public bool Exists(int F_Id)
21 21
         {
22 22
             StringBuilder strSql = new StringBuilder();
23
-            strSql.Append("select count(1) from T_Sys_MobileData");
23
+            strSql.Append("select count(1) from T_Sys_MobileData WITH(NOLOCK) ");
24 24
             strSql.Append(" where F_Id=@F_Id");
25 25
             SqlParameter[] parameters = {
26 26
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
@@ -191,7 +191,7 @@ namespace CallCenterApi.DAL
191 191
         {
192 192
 
193 193
             StringBuilder strSql = new StringBuilder();
194
-            strSql.Append("select  top 1 F_Id,F_MobileNum,F_ZipCode,F_CityDes,F_CardDes,F_CreateUser,F_CreateTime,F_IsDelete,F_DeleteUser,F_DeleteTime from T_Sys_MobileData ");
194
+            strSql.Append("select  top 1 F_Id,F_MobileNum,F_ZipCode,F_CityDes,F_CardDes,F_CreateUser,F_CreateTime,F_IsDelete,F_DeleteUser,F_DeleteTime from T_Sys_MobileData WITH(NOLOCK) ");
195 195
             strSql.Append(" where F_Id=@F_Id");
196 196
             SqlParameter[] parameters = {
197 197
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
@@ -270,7 +270,7 @@ namespace CallCenterApi.DAL
270 270
         {
271 271
             StringBuilder strSql = new StringBuilder();
272 272
             strSql.Append("select F_Id,F_MobileNum,F_ZipCode,F_CityDes,F_CardDes,F_CreateUser,F_CreateTime,F_IsDelete,F_DeleteUser,F_DeleteTime ");
273
-            strSql.Append(" FROM T_Sys_MobileData ");
273
+            strSql.Append(" FROM T_Sys_MobileData WITH(NOLOCK) ");
274 274
             if (strWhere.Trim() != "")
275 275
             {
276 276
                 strSql.Append(" where " + strWhere);
@@ -290,7 +290,7 @@ namespace CallCenterApi.DAL
290 290
                 strSql.Append(" top " + Top.ToString());
291 291
             }
292 292
             strSql.Append(" F_Id,F_MobileNum,F_ZipCode,F_CityDes,F_CardDes,F_CreateUser,F_CreateTime,F_IsDelete,F_DeleteUser,F_DeleteTime ");
293
-            strSql.Append(" FROM T_Sys_MobileData ");
293
+            strSql.Append(" FROM T_Sys_MobileData WITH(NOLOCK) ");
294 294
             if (strWhere.Trim() != "")
295 295
             {
296 296
                 strSql.Append(" where " + strWhere);
@@ -305,7 +305,7 @@ namespace CallCenterApi.DAL
305 305
         public int GetRecordCount(string strWhere)
306 306
         {
307 307
             StringBuilder strSql = new StringBuilder();
308
-            strSql.Append("select count(1) FROM T_Sys_MobileData ");
308
+            strSql.Append("select count(1) FROM T_Sys_MobileData WITH(NOLOCK) ");
309 309
             if (strWhere.Trim() != "")
310 310
             {
311 311
                 strSql.Append(" where " + strWhere);
@@ -336,7 +336,7 @@ namespace CallCenterApi.DAL
336 336
             {
337 337
                 strSql.Append("order by T.F_Id desc");
338 338
             }
339
-            strSql.Append(")AS Row, T.*  from T_Sys_MobileData T ");
339
+            strSql.Append(")AS Row, T.*  from T_Sys_MobileData T WITH(NOLOCK) ");
340 340
             if (!string.IsNullOrEmpty(strWhere.Trim()))
341 341
             {
342 342
                 strSql.Append(" WHERE " + strWhere);

+ 6 - 6
codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_ModuleInfo.cs

@@ -32,7 +32,7 @@ namespace CallCenterApi.DAL
32 32
         public bool Exists(int F_ModuleId)
33 33
         {
34 34
             StringBuilder strSql = new StringBuilder();
35
-            strSql.Append("select count(1) from T_Sys_ModuleInfo");
35
+            strSql.Append("select count(1) from T_Sys_ModuleInfo WITH(NOLOCK) ");
36 36
             strSql.Append(" where F_ModuleId=@F_ModuleId");
37 37
             SqlParameter[] parameters = {
38 38
                     new SqlParameter("@F_ModuleId", SqlDbType.Int,4)
@@ -225,7 +225,7 @@ namespace CallCenterApi.DAL
225 225
         {
226 226
 
227 227
             StringBuilder strSql = new StringBuilder();
228
-            strSql.Append("select  top 1 F_ModuleId,F_ModuleName,F_ModuleCode,F_Remark,F_Sort,F_StateFlag,F_OptUrl,F_ImgUrl,F_Target,F_IsMenu,F_Button,F_CreateTime,F_LastModifyTime,F_DeleteTime,F_CreateUID,F_LastModifyUID,F_DeleteUID,F_ParentID from T_Sys_ModuleInfo ");
228
+            strSql.Append("select  top 1 F_ModuleId,F_ModuleName,F_ModuleCode,F_Remark,F_Sort,F_StateFlag,F_OptUrl,F_ImgUrl,F_Target,F_IsMenu,F_Button,F_CreateTime,F_LastModifyTime,F_DeleteTime,F_CreateUID,F_LastModifyUID,F_DeleteUID,F_ParentID from T_Sys_ModuleInfo WITH(NOLOCK) ");
229 229
             strSql.Append(" where F_ModuleId=@F_ModuleId");
230 230
             SqlParameter[] parameters = {
231 231
                     new SqlParameter("@F_ModuleId", SqlDbType.Int,4)
@@ -336,7 +336,7 @@ namespace CallCenterApi.DAL
336 336
         {
337 337
             StringBuilder strSql = new StringBuilder();
338 338
             strSql.Append("select F_ModuleId,F_ModuleName,F_ModuleCode,F_Remark,F_Sort,F_StateFlag,F_OptUrl,F_ImgUrl,F_Target,F_IsMenu,F_Button,F_CreateTime,F_LastModifyTime,F_DeleteTime,F_CreateUID,F_LastModifyUID,F_DeleteUID,F_ParentID ");
339
-            strSql.Append(" FROM T_Sys_ModuleInfo ");
339
+            strSql.Append(" FROM T_Sys_ModuleInfo WITH(NOLOCK) ");
340 340
             if (strWhere.Trim() != "")
341 341
             {
342 342
                 strSql.Append(" where " + strWhere);
@@ -356,7 +356,7 @@ namespace CallCenterApi.DAL
356 356
                 strSql.Append(" top " + Top.ToString());
357 357
             }
358 358
             strSql.Append(" F_ModuleId,F_ModuleName,F_ModuleCode,F_Remark,F_Sort,F_StateFlag,F_OptUrl,F_ImgUrl,F_Target,F_IsMenu,F_Button,F_CreateTime,F_LastModifyTime,F_DeleteTime,F_CreateUID,F_LastModifyUID,F_DeleteUID,F_ParentID ");
359
-            strSql.Append(" FROM T_Sys_ModuleInfo ");
359
+            strSql.Append(" FROM T_Sys_ModuleInfo WITH(NOLOCK) ");
360 360
             if (strWhere.Trim() != "")
361 361
             {
362 362
                 strSql.Append(" where " + strWhere);
@@ -371,7 +371,7 @@ namespace CallCenterApi.DAL
371 371
         public int GetRecordCount(string strWhere)
372 372
         {
373 373
             StringBuilder strSql = new StringBuilder();
374
-            strSql.Append("select count(1) FROM T_Sys_ModuleInfo ");
374
+            strSql.Append("select count(1) FROM T_Sys_ModuleInfo WITH(NOLOCK) ");
375 375
             if (strWhere.Trim() != "")
376 376
             {
377 377
                 strSql.Append(" where " + strWhere);
@@ -402,7 +402,7 @@ namespace CallCenterApi.DAL
402 402
             {
403 403
                 strSql.Append("order by T.F_ModuleId desc");
404 404
             }
405
-            strSql.Append(")AS Row, T.*  from T_Sys_ModuleInfo T ");
405
+            strSql.Append(")AS Row, T.*  from T_Sys_ModuleInfo T WITH(NOLOCK) ");
406 406
             if (!string.IsNullOrEmpty(strWhere.Trim()))
407 407
             {
408 408
                 strSql.Append(" WHERE " + strWhere);

+ 6 - 6
codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_RoleFunction.cs

@@ -32,7 +32,7 @@ namespace CallCenterApi.DAL
32 32
         public bool Exists(int F_RoleId, int F_FunctionId)
33 33
         {
34 34
             StringBuilder strSql = new StringBuilder();
35
-            strSql.Append("select count(1) from T_Sys_RoleFunction");
35
+            strSql.Append("select count(1) from T_Sys_RoleFunction WITH(NOLOCK) ");
36 36
             strSql.Append(" where F_RoleId=@F_RoleId and F_FunctionId=@F_FunctionId ");
37 37
             SqlParameter[] parameters = {
38 38
                     new SqlParameter("@F_RoleId", SqlDbType.Int,4),
@@ -158,7 +158,7 @@ namespace CallCenterApi.DAL
158 158
         {
159 159
 
160 160
             StringBuilder strSql = new StringBuilder();
161
-            strSql.Append("select  top 1 F_RoleId,F_FunctionId,F_IsKey from T_Sys_RoleFunction ");
161
+            strSql.Append("select  top 1 F_RoleId,F_FunctionId,F_IsKey from T_Sys_RoleFunction WITH(NOLOCK) ");
162 162
             strSql.Append(" where F_RoleId=@F_RoleId and F_FunctionId=@F_FunctionId ");
163 163
             SqlParameter[] parameters = {
164 164
                     new SqlParameter("@F_RoleId", SqlDbType.Int,4),
@@ -210,7 +210,7 @@ namespace CallCenterApi.DAL
210 210
         {
211 211
             StringBuilder strSql = new StringBuilder();
212 212
             strSql.Append("select F_RoleId,F_FunctionId,F_IsKey ");
213
-            strSql.Append(" FROM T_Sys_RoleFunction ");
213
+            strSql.Append(" FROM T_Sys_RoleFunction WITH(NOLOCK) ");
214 214
             if (strWhere.Trim() != "")
215 215
             {
216 216
                 strSql.Append(" where " + strWhere);
@@ -230,7 +230,7 @@ namespace CallCenterApi.DAL
230 230
                 strSql.Append(" top " + Top.ToString());
231 231
             }
232 232
             strSql.Append(" F_RoleId,F_FunctionId,F_IsKey ");
233
-            strSql.Append(" FROM T_Sys_RoleFunction ");
233
+            strSql.Append(" FROM T_Sys_RoleFunction WITH(NOLOCK) ");
234 234
             if (strWhere.Trim() != "")
235 235
             {
236 236
                 strSql.Append(" where " + strWhere);
@@ -245,7 +245,7 @@ namespace CallCenterApi.DAL
245 245
         public int GetRecordCount(string strWhere)
246 246
         {
247 247
             StringBuilder strSql = new StringBuilder();
248
-            strSql.Append("select count(1) FROM T_Sys_RoleFunction ");
248
+            strSql.Append("select count(1) FROM T_Sys_RoleFunction WITH(NOLOCK) ");
249 249
             if (strWhere.Trim() != "")
250 250
             {
251 251
                 strSql.Append(" where " + strWhere);
@@ -276,7 +276,7 @@ namespace CallCenterApi.DAL
276 276
             {
277 277
                 strSql.Append("order by T.F_FunctionId desc");
278 278
             }
279
-            strSql.Append(")AS Row, T.*  from T_Sys_RoleFunction T ");
279
+            strSql.Append(")AS Row, T.*  from T_Sys_RoleFunction T WITH(NOLOCK) ");
280 280
             if (!string.IsNullOrEmpty(strWhere.Trim()))
281 281
             {
282 282
                 strSql.Append(" WHERE " + strWhere);

+ 5 - 5
codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_TelTitleData.cs

@@ -32,7 +32,7 @@ namespace CallCenterApi.DAL
32 32
         public bool Exists(int F_Id)
33 33
         {
34 34
             StringBuilder strSql = new StringBuilder();
35
-            strSql.Append("select count(1) from T_Sys_TelTitleData");
35
+            strSql.Append("select count(1) from T_Sys_TelTitleData WITH(NOLOCK) ");
36 36
             strSql.Append(" where F_Id=@F_Id");
37 37
             SqlParameter[] parameters = {
38 38
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
@@ -206,7 +206,7 @@ namespace CallCenterApi.DAL
206 206
         {
207 207
             StringBuilder strSql = new StringBuilder();
208 208
             strSql.Append("select F_Id,F_TitleName,F_KeyPhoneNum,F_DefPhoneNumLen,F_WCode ");
209
-            strSql.Append(" FROM T_Sys_TelTitleData ");
209
+            strSql.Append(" FROM T_Sys_TelTitleData WITH(NOLOCK) ");
210 210
             if (strWhere.Trim() != "")
211 211
             {
212 212
                 strSql.Append(" where " + strWhere);
@@ -226,7 +226,7 @@ namespace CallCenterApi.DAL
226 226
                 strSql.Append(" top " + Top.ToString());
227 227
             }
228 228
             strSql.Append(" F_Id,F_TitleName,F_KeyPhoneNum,F_DefPhoneNumLen,F_WCode ");
229
-            strSql.Append(" FROM T_Sys_TelTitleData ");
229
+            strSql.Append(" FROM T_Sys_TelTitleData WITH(NOLOCK)  ");
230 230
             if (strWhere.Trim() != "")
231 231
             {
232 232
                 strSql.Append(" where " + strWhere);
@@ -241,7 +241,7 @@ namespace CallCenterApi.DAL
241 241
         public int GetRecordCount(string strWhere)
242 242
         {
243 243
             StringBuilder strSql = new StringBuilder();
244
-            strSql.Append("select count(1) FROM T_Sys_TelTitleData ");
244
+            strSql.Append("select count(1) FROM T_Sys_TelTitleData WITH(NOLOCK) ");
245 245
             if (strWhere.Trim() != "")
246 246
             {
247 247
                 strSql.Append(" where " + strWhere);
@@ -272,7 +272,7 @@ namespace CallCenterApi.DAL
272 272
             {
273 273
                 strSql.Append("order by T.F_Id desc");
274 274
             }
275
-            strSql.Append(")AS Row, T.*  from T_Sys_TelTitleData T ");
275
+            strSql.Append(")AS Row, T.*  from T_Sys_TelTitleData T WITH(NOLOCK) ");
276 276
             if (!string.IsNullOrEmpty(strWhere.Trim()))
277 277
             {
278 278
                 strSql.Append(" WHERE " + strWhere);

+ 9 - 9
codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_UserAccount.cs

@@ -32,7 +32,7 @@ namespace CallCenterApi.DAL
32 32
         public bool Exists(int F_UserId)
33 33
         {
34 34
             StringBuilder strSql = new StringBuilder();
35
-            strSql.Append("select count(1) from T_Sys_UserAccount");
35
+            strSql.Append("select count(1) from T_Sys_UserAccount WITH(NOLOCK) ");
36 36
             strSql.Append(" where F_UserId=@F_UserId");
37 37
             SqlParameter[] parameters = {
38 38
                     new SqlParameter("@F_UserId", SqlDbType.Int,4)
@@ -322,7 +322,7 @@ namespace CallCenterApi.DAL
322 322
         {
323 323
 
324 324
             StringBuilder strSql = new StringBuilder();
325
-            strSql.Append("select  top 1 F_UserId,F_UserCode,F_Password,F_ExtensionNumber,F_UserName,F_DeptId,F_RoleId,F_GroupId,F_SeatFlag,F_SeatRight,F_SeatLevel,F_SexFlag,F_RemindFlag,F_Remark,F_Telephone,F_Mobile,F_HomePhone,F_Birthday,F_CreateOn,F_CancelOn,F_DeleteFlag,F_APPOnFlag,F_LastActiveTime,F_See,F_HJType,F_PId,F_TmId,F_WorkNumber,F_DeptCode,F_WXNo,F_SeartGroupID,F_SeartGroup,F_WxOpenId,RegionId from T_Sys_UserAccount ");
325
+            strSql.Append("select  top 1 F_UserId,F_UserCode,F_Password,F_ExtensionNumber,F_UserName,F_DeptId,F_RoleId,F_GroupId,F_SeatFlag,F_SeatRight,F_SeatLevel,F_SexFlag,F_RemindFlag,F_Remark,F_Telephone,F_Mobile,F_HomePhone,F_Birthday,F_CreateOn,F_CancelOn,F_DeleteFlag,F_APPOnFlag,F_LastActiveTime,F_See,F_HJType,F_PId,F_TmId,F_WorkNumber,F_DeptCode,F_WXNo,F_SeartGroupID,F_SeartGroup,F_WxOpenId,RegionId from T_Sys_UserAccount WITH(NOLOCK) ");
326 326
             strSql.Append(" where F_UserCode=@F_UserCode and F_Password=@F_Password and  F_DeleteFlag=0");
327 327
             SqlParameter[] parameters = {
328 328
                     new SqlParameter("@F_UserCode", SqlDbType.VarChar,50),
@@ -350,7 +350,7 @@ namespace CallCenterApi.DAL
350 350
         {
351 351
 
352 352
             StringBuilder strSql = new StringBuilder();
353
-            strSql.Append("select  top 1 F_UserId,F_UserCode,F_Password,F_ExtensionNumber,F_UserName,F_DeptId,F_RoleId,F_GroupId,F_SeatFlag,F_SeatRight,F_SeatLevel,F_SexFlag,F_RemindFlag,F_Remark,F_Telephone,F_Mobile,F_HomePhone,F_Birthday,F_CreateOn,F_CancelOn,F_DeleteFlag,F_APPOnFlag,F_LastActiveTime,F_See,F_HJType,F_PId,F_TmId,F_WorkNumber,F_DeptCode,F_WXNo,F_SeartGroupID,F_SeartGroup,F_WxOpenId,RegionId from T_Sys_UserAccount ");
353
+            strSql.Append("select  top 1 F_UserId,F_UserCode,F_Password,F_ExtensionNumber,F_UserName,F_DeptId,F_RoleId,F_GroupId,F_SeatFlag,F_SeatRight,F_SeatLevel,F_SexFlag,F_RemindFlag,F_Remark,F_Telephone,F_Mobile,F_HomePhone,F_Birthday,F_CreateOn,F_CancelOn,F_DeleteFlag,F_APPOnFlag,F_LastActiveTime,F_See,F_HJType,F_PId,F_TmId,F_WorkNumber,F_DeptCode,F_WXNo,F_SeartGroupID,F_SeartGroup,F_WxOpenId,RegionId from T_Sys_UserAccount WITH(NOLOCK) ");
354 354
             strSql.Append(" where F_UserCode=@F_UserCode");
355 355
             SqlParameter[] parameters = {
356 356
                     new SqlParameter("@F_UserCode", SqlDbType.VarChar,50)
@@ -376,7 +376,7 @@ namespace CallCenterApi.DAL
376 376
         {
377 377
 
378 378
             StringBuilder strSql = new StringBuilder();
379
-            strSql.Append("select  top 1 F_UserId,F_UserCode,F_Password,F_ExtensionNumber,F_UserName,F_DeptId,F_RoleId,F_GroupId,F_SeatFlag,F_SeatRight,F_SeatLevel,F_SexFlag,F_RemindFlag,F_Remark,F_Telephone,F_Mobile,F_HomePhone,F_Birthday,F_CreateOn,F_CancelOn,F_DeleteFlag,F_APPOnFlag,F_LastActiveTime,F_See,F_HJType,F_PId,F_TmId,F_WorkNumber,F_DeptCode,F_WXNo,F_SeartGroupID,F_SeartGroup,F_WxOpenId,RegionId from T_Sys_UserAccount ");
379
+            strSql.Append("select  top 1 F_UserId,F_UserCode,F_Password,F_ExtensionNumber,F_UserName,F_DeptId,F_RoleId,F_GroupId,F_SeatFlag,F_SeatRight,F_SeatLevel,F_SexFlag,F_RemindFlag,F_Remark,F_Telephone,F_Mobile,F_HomePhone,F_Birthday,F_CreateOn,F_CancelOn,F_DeleteFlag,F_APPOnFlag,F_LastActiveTime,F_See,F_HJType,F_PId,F_TmId,F_WorkNumber,F_DeptCode,F_WXNo,F_SeartGroupID,F_SeartGroup,F_WxOpenId,RegionId from T_Sys_UserAccount WITH(NOLOCK) ");
380 380
             strSql.Append(" where F_UserId=@F_UserId");
381 381
             SqlParameter[] parameters = {
382 382
                     new SqlParameter("@F_UserId", SqlDbType.Int,4)
@@ -405,7 +405,7 @@ namespace CallCenterApi.DAL
405 405
         {
406 406
 
407 407
             StringBuilder strSql = new StringBuilder();
408
-            strSql.Append("select  top 1 * from T_Sys_UserAccount ");
408
+            strSql.Append("select  top 1 * from T_Sys_UserAccount WITH(NOLOCK)  ");
409 409
             strSql.Append(" where F_WxOpenId=@F_WxOpenId");
410 410
             SqlParameter[] parameters = {
411 411
                     new SqlParameter("@F_WxOpenId", SqlDbType.VarChar,300)
@@ -627,7 +627,7 @@ namespace CallCenterApi.DAL
627 627
         {
628 628
             StringBuilder strSql = new StringBuilder();
629 629
             strSql.Append("select F_UserId,F_UserCode,F_Password,F_ExtensionNumber,F_UserName,F_DeptId,F_RoleId,F_GroupId,F_SeatFlag,F_SeatRight,F_SeatLevel,F_SexFlag,F_RemindFlag,F_Remark,F_Telephone,F_Mobile,F_HomePhone,F_Birthday,F_CreateOn,F_CancelOn,F_DeleteFlag,F_APPOnFlag,F_LastActiveTime,F_See,F_HJType,F_PId,F_TmId,F_WorkNumber,F_DeptCode,F_WXNo,F_SeartGroupID,F_SeartGroup,F_WxOpenId,RegionId ");
630
-            strSql.Append(" FROM T_Sys_UserAccount ");
630
+            strSql.Append(" FROM T_Sys_UserAccount WITH(NOLOCK) ");
631 631
             if (strWhere.Trim() != "")
632 632
             {
633 633
                 strSql.Append(" where " + strWhere);
@@ -659,7 +659,7 @@ namespace CallCenterApi.DAL
659 659
                 strSql.Append(" top " + Top.ToString());
660 660
             }
661 661
             strSql.Append(" F_UserId,F_UserCode,F_Password,F_ExtensionNumber,F_UserName,F_DeptId,F_RoleId,F_GroupId,F_SeatFlag,F_SeatRight,F_SeatLevel,F_SexFlag,F_RemindFlag,F_Remark,F_Telephone,F_Mobile,F_HomePhone,F_Birthday,F_CreateOn,F_CancelOn,F_DeleteFlag,F_APPOnFlag,F_LastActiveTime,F_See,F_HJType,F_PId,F_TmId,F_WorkNumber,F_DeptCode,F_WXNo,F_SeartGroupID,F_SeartGroup,F_WxOpenId,RegionId ");
662
-            strSql.Append(" FROM T_Sys_UserAccount ");
662
+            strSql.Append(" FROM T_Sys_UserAccount WITH(NOLOCK) ");
663 663
             if (strWhere.Trim() != "")
664 664
             {
665 665
                 strSql.Append(" where " + strWhere);
@@ -674,7 +674,7 @@ namespace CallCenterApi.DAL
674 674
         public int GetRecordCount(string strWhere)
675 675
         {
676 676
             StringBuilder strSql = new StringBuilder();
677
-            strSql.Append("select count(1) FROM T_Sys_UserAccount ");
677
+            strSql.Append("select count(1) FROM T_Sys_UserAccount WITH(NOLOCK) ");
678 678
             if (strWhere.Trim() != "")
679 679
             {
680 680
                 strSql.Append(" where " + strWhere);
@@ -705,7 +705,7 @@ namespace CallCenterApi.DAL
705 705
             {
706 706
                 strSql.Append("order by T.F_UserId desc");
707 707
             }
708
-            strSql.Append(")AS Row, T.*  from T_Sys_UserAccount T ");
708
+            strSql.Append(")AS Row, T.*  from T_Sys_UserAccount T WITH(NOLOCK) ");
709 709
             if (!string.IsNullOrEmpty(strWhere.Trim()))
710 710
             {
711 711
                 strSql.Append(" WHERE " + strWhere);

Разница между файлами не показана из-за своего большого размера
+ 8 - 8
codegit/CallCenterApi/CallCenterApi.DAL/T_Wo_WorkOrder.cs


+ 6 - 6
codegit/CallCenterApi/CallCenterApi.DAL/T_Wo_WorkOrderItem_New.cs

@@ -23,7 +23,7 @@ namespace CallCenterApi.DAL
23 23
         public bool Exists(long F_ID)
24 24
         {
25 25
             StringBuilder strSql = new StringBuilder();
26
-            strSql.Append("select count(1) from T_Wo_WorkOrderItem_New");
26
+            strSql.Append("select count(1) from T_Wo_WorkOrderItem_New WITH(NOLOCK) ");
27 27
             strSql.Append(" where F_ID=@F_ID");
28 28
             SqlParameter[] parameters = {
29 29
                     new SqlParameter("@F_ID", SqlDbType.BigInt)
@@ -181,7 +181,7 @@ namespace CallCenterApi.DAL
181 181
         {
182 182
 
183 183
             StringBuilder strSql = new StringBuilder();
184
-            strSql.Append("select  top 1 * from T_Wo_WorkOrderItem_New ");
184
+            strSql.Append("select  top 1 * from T_Wo_WorkOrderItem_New WITH(NOLOCK)  ");
185 185
             strSql.Append(" where F_ID=@F_ID");
186 186
             SqlParameter[] parameters = {
187 187
                     new SqlParameter("@F_ID", SqlDbType.BigInt)
@@ -264,7 +264,7 @@ namespace CallCenterApi.DAL
264 264
         {
265 265
             StringBuilder strSql = new StringBuilder();
266 266
             strSql.Append("select * ");
267
-            strSql.Append(" FROM T_Wo_WorkOrderItem_New ");
267
+            strSql.Append(" FROM T_Wo_WorkOrderItem_New WITH(NOLOCK)  ");
268 268
             if (strWhere.Trim() != "")
269 269
             {
270 270
                 strSql.Append(" where " + strWhere);
@@ -284,7 +284,7 @@ namespace CallCenterApi.DAL
284 284
                 strSql.Append(" top " + Top.ToString());
285 285
             }
286 286
             strSql.Append(" * ");
287
-            strSql.Append(" FROM T_Wo_WorkOrderItem_New ");
287
+            strSql.Append(" FROM T_Wo_WorkOrderItem_New WITH(NOLOCK) ");
288 288
             if (strWhere.Trim() != "")
289 289
             {
290 290
                 strSql.Append(" where " + strWhere);
@@ -299,7 +299,7 @@ namespace CallCenterApi.DAL
299 299
         public int GetRecordCount(string strWhere)
300 300
         {
301 301
             StringBuilder strSql = new StringBuilder();
302
-            strSql.Append("select count(1) FROM T_Wo_WorkOrderItem_New ");
302
+            strSql.Append("select count(1) FROM T_Wo_WorkOrderItem_New  WITH(NOLOCK) ");
303 303
             if (strWhere.Trim() != "")
304 304
             {
305 305
                 strSql.Append(" where " + strWhere);
@@ -330,7 +330,7 @@ namespace CallCenterApi.DAL
330 330
             {
331 331
                 strSql.Append("order by T.F_ID desc");
332 332
             }
333
-            strSql.Append(")AS Row, T.*  from T_Wo_WorkOrderItem_New T ");
333
+            strSql.Append(")AS Row, T.*  from T_Wo_WorkOrderItem_New T WITH(NOLOCK) ");
334 334
             if (!string.IsNullOrEmpty(strWhere.Trim()))
335 335
             {
336 336
                 strSql.Append(" WHERE " + strWhere);