Просмотр исходного кода

dal ,controller添加 WITH(NOLOCK)

liyuanyuan лет назад: 4
Родитель
Сommit
486148f420
97 измененных файлов с 437 добавлено и 437 удалено
  1. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Ask_PagerInfo.cs
  2. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Ask_PagerItems.cs
  3. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Ask_Question.cs
  4. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Ask_QuestionCategory.cs
  5. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Ask_QuestionItems.cs
  6. 6 6
      codegit/CallCenterApi/CallCenterApi.DAL/T_CTI_Task.cs
  7. 2 2
      codegit/CallCenterApi/CallCenterApi.DAL/T_CTI_TaskAgent.cs
  8. 2 2
      codegit/CallCenterApi/CallCenterApi.DAL/T_CTI_TaskDaily.cs
  9. 1 1
      codegit/CallCenterApi/CallCenterApi.DAL/T_CTI_TaskPhonePart.cs
  10. 2 2
      codegit/CallCenterApi/CallCenterApi.DAL/T_CTI_TaskRecord.cs
  11. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Call_Blacklist.cs
  12. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Call_CallRecords.cs
  13. 4 4
      codegit/CallCenterApi/CallCenterApi.DAL/T_Call_CallRecordsLD.cs
  14. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Call_CallRecords_QC.cs
  15. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Call_LeaveRecord.cs
  16. 4 4
      codegit/CallCenterApi/CallCenterApi.DAL/T_Call_OutAnswers.cs
  17. 4 4
      codegit/CallCenterApi/CallCenterApi.DAL/T_Call_OutTask.cs
  18. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Call_OutTaskRecords.cs
  19. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Call_OutTaskTelNum.cs
  20. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Call_TaskTelNum.cs
  21. 4 4
      codegit/CallCenterApi/CallCenterApi.DAL/T_Call_WorkOrder.cs
  22. 4 4
      codegit/CallCenterApi/CallCenterApi.DAL/T_Call_ZBDH.cs
  23. 4 4
      codegit/CallCenterApi/CallCenterApi.DAL/T_Con_Conversation.cs
  24. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Cus_ContactPerson.cs
  25. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Cus_ContactPersonNew.cs
  26. 11 11
      codegit/CallCenterApi/CallCenterApi.DAL/T_Cus_CustomerBase.cs
  27. 6 6
      codegit/CallCenterApi/CallCenterApi.DAL/T_Cus_CustomerBaseNew.cs
  28. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Cus_CustomerExpand.cs
  29. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Cus_CustomerFinance.cs
  30. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Cus_CustomerFinanceLog.cs
  31. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Cus_RegionCategory.cs
  32. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Cus_Region_UserAccount_Map.cs
  33. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Msg_List.cs
  34. 4 4
      codegit/CallCenterApi/CallCenterApi.DAL/T_Msg_NoticeInfo.cs
  35. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_QC_IndexBase.cs
  36. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_QC_IndexCategory.cs
  37. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_QC_IndexRes.cs
  38. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Que_Question_Answer.cs
  39. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Que_Question_Map.cs
  40. 4 4
      codegit/CallCenterApi/CallCenterApi.DAL/T_RegionCategory.cs
  41. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_RepositoryCategory.cs
  42. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_RepositoryInformation.cs
  43. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_SMS_List.cs
  44. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_SMS_Receive.cs
  45. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_SMS_RecvSMS.cs
  46. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_SMS_SendSMSTask.cs
  47. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_SMS_SentSMS.cs
  48. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_SMS_Template.cs
  49. 2 2
      codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_Accessories.cs
  50. 2 2
      codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_Department.cs
  51. 2 2
      codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_DictionaryBase.cs
  52. 2 2
      codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_DictionaryValue.cs
  53. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_LoginLogs.cs
  54. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_MobileData.cs
  55. 7 7
      codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_ModuleFunctions.cs
  56. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_ModuleInfo.cs
  57. 1 1
      codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_Patirnt.cs
  58. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_RoleFunction.cs
  59. 6 6
      codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_RoleInfo.cs
  60. 4 4
      codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_SeatGroup.cs
  61. 7 7
      codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_SeatPermissionConfig.cs
  62. 1 1
      codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_SystemConfig.cs
  63. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_TelTitleData.cs
  64. 4 4
      codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_UserAccount.cs
  65. 2 2
      codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_Users.cs
  66. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_WorkCalendar.cs
  67. 4 4
      codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_WorkOFFDays.cs
  68. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_WorkTimes.cs
  69. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Vis_DXNTelphone.cs
  70. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Vis_DXOTelphone.cs
  71. 4 4
      codegit/CallCenterApi/CallCenterApi.DAL/T_Vis_DXTelRecords.cs
  72. 4 4
      codegit/CallCenterApi/CallCenterApi.DAL/T_Vis_Files.cs
  73. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Vis_TelAllot.cs
  74. 3 3
      codegit/CallCenterApi/CallCenterApi.DAL/T_Vis_TelBZ.cs
  75. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Vis_TelRecords.cs
  76. 12 12
      codegit/CallCenterApi/CallCenterApi.DAL/T_Vis_Telphone.cs
  77. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_WO_UserWorkOrder.cs
  78. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Wo_Bill.cs
  79. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Wo_BusinessManage.cs
  80. 3 3
      codegit/CallCenterApi/CallCenterApi.DAL/T_Wo_WorkOrder.cs
  81. 1 1
      codegit/CallCenterApi/CallCenterApi.DAL/T_Wo_WorkOrderBase.cs
  82. 2 2
      codegit/CallCenterApi/CallCenterApi.DAL/T_Wo_WorkOrderItem.cs
  83. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Wo_WorkOrderItem_New.cs
  84. 4 4
      codegit/CallCenterApi/CallCenterApi.DAL/T_Wo_WorkOrderNew.cs
  85. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Wo_WorkOrderTimeOut.cs
  86. 2 2
      codegit/CallCenterApi/CallCenterApi.DAL/T_Wo_WorkOrder_Logs.cs
  87. 5 5
      codegit/CallCenterApi/CallCenterApi.DAL/T_Wo_WorkOrder_Que_Map.cs
  88. 4 4
      codegit/CallCenterApi/CallCenterApi.DAL/UserAccount.cs
  89. 12 12
      codegit/CallCenterApi/CallCenterApi.DAL/article.cs
  90. 8 8
      codegit/CallCenterApi/CallCenterApi.DAL/article_category.cs
  91. 7 7
      codegit/CallCenterApi/CallCenterApi.DAL/orders.cs
  92. 3 3
      codegit/CallCenterApi/CallCenterApi.DAL/telloc_users.cs
  93. 1 1
      codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/SMSController.cs
  94. 5 5
      codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/callout/CallOutPlanController.cs
  95. 1 1
      codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/callout/CallPlanController.cs
  96. 1 1
      codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/knowledge/KnowledgeController.cs
  97. 4 4
      codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs

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

@@ -22,7 +22,7 @@ namespace CallCenterApi.DAL
22 22
         public bool Exists(int F_PagerId)
23 23
         {
24 24
             StringBuilder strSql = new StringBuilder();
25
-            strSql.Append("select count(1) from T_Ask_PagerInfo");
25
+            strSql.Append("select count(1) from T_Ask_PagerInfo WITH(NOLOCK) ");
26 26
             strSql.Append(" where F_PagerId=@F_PagerId");
27 27
             SqlParameter[] parameters = {
28 28
                     new SqlParameter("@F_PagerId", SqlDbType.Int,4)
@@ -195,7 +195,7 @@ namespace CallCenterApi.DAL
195 195
         {
196 196
 
197 197
             StringBuilder strSql = new StringBuilder();
198
-            strSql.Append("select  top 1 * from T_Ask_PagerInfo ");
198
+            strSql.Append("select  top 1 * from T_Ask_PagerInfo  WITH(NOLOCK) ");
199 199
             strSql.Append(" where F_PagerId=@F_PagerId");
200 200
             SqlParameter[] parameters = {
201 201
                     new SqlParameter("@F_PagerId", SqlDbType.Int,4)
@@ -277,7 +277,7 @@ namespace CallCenterApi.DAL
277 277
         {
278 278
             StringBuilder strSql = new StringBuilder();
279 279
             strSql.Append("select * ");
280
-            strSql.Append(" FROM T_Ask_PagerInfo ");
280
+            strSql.Append(" FROM T_Ask_PagerInfo  WITH(NOLOCK) ");
281 281
             if (strWhere.Trim() != "")
282 282
             {
283 283
                 strSql.Append(" where " + strWhere);
@@ -297,7 +297,7 @@ namespace CallCenterApi.DAL
297 297
                 strSql.Append(" top " + Top.ToString());
298 298
             }
299 299
             strSql.Append(" * ");
300
-            strSql.Append(" FROM T_Ask_PagerInfo ");
300
+            strSql.Append(" FROM T_Ask_PagerInfo  WITH(NOLOCK) ");
301 301
             if (strWhere.Trim() != "")
302 302
             {
303 303
                 strSql.Append(" where " + strWhere);
@@ -312,7 +312,7 @@ namespace CallCenterApi.DAL
312 312
         public int GetRecordCount(string strWhere)
313 313
         {
314 314
             StringBuilder strSql = new StringBuilder();
315
-            strSql.Append("select count(1) FROM T_Ask_PagerInfo ");
315
+            strSql.Append("select count(1) FROM T_Ask_PagerInfo  WITH(NOLOCK) ");
316 316
             if (strWhere.Trim() != "")
317 317
             {
318 318
                 strSql.Append(" where " + strWhere);

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

@@ -22,7 +22,7 @@ namespace CallCenterApi.DAL
22 22
         public bool Exists(int F_ItemId)
23 23
         {
24 24
             StringBuilder strSql = new StringBuilder();
25
-            strSql.Append("select count(1) from T_Ask_PagerItems");
25
+            strSql.Append("select count(1) from T_Ask_PagerItems WITH(NOLOCK) ");
26 26
             strSql.Append(" where F_ItemId=@F_ItemId");
27 27
             SqlParameter[] parameters = {
28 28
                     new SqlParameter("@F_ItemId", SqlDbType.Int,4)
@@ -180,7 +180,7 @@ namespace CallCenterApi.DAL
180 180
         {
181 181
 
182 182
             StringBuilder strSql = new StringBuilder();
183
-            strSql.Append("select  top 1 F_ItemId,F_PagerId,F_QuestionId,F_Remark,F_Sort,F_Score from T_Ask_PagerItems ");
183
+            strSql.Append("select  top 1 F_ItemId,F_PagerId,F_QuestionId,F_Remark,F_Sort,F_Score from T_Ask_PagerItems  WITH(NOLOCK) ");
184 184
             strSql.Append(" where F_ItemId=@F_ItemId");
185 185
             SqlParameter[] parameters = {
186 186
                     new SqlParameter("@F_ItemId", SqlDbType.Int,4)
@@ -229,7 +229,7 @@ namespace CallCenterApi.DAL
229 229
         public DataSet GetList(string strWhere)
230 230
         {
231 231
             StringBuilder strSql = new StringBuilder();
232
-            strSql.Append("select F_ItemId,F_PagerId,F_QuestionId,F_Remark,F_Sort,F_Score ");
232
+            strSql.Append("select F_ItemId,F_PagerId,F_QuestionId,F_Remark,F_Sort,F_Score  WITH(NOLOCK) ");
233 233
             strSql.Append(" FROM T_Ask_PagerItems ");
234 234
             if (strWhere.Trim() != "")
235 235
             {
@@ -250,7 +250,7 @@ namespace CallCenterApi.DAL
250 250
                 strSql.Append(" top " + Top.ToString());
251 251
             }
252 252
             strSql.Append(" F_ItemId,F_PagerId,F_QuestionId,F_Remark,F_Sort,F_Score ");
253
-            strSql.Append(" FROM T_Ask_PagerItems ");
253
+            strSql.Append(" FROM T_Ask_PagerItems  WITH(NOLOCK) ");
254 254
             if (strWhere.Trim() != "")
255 255
             {
256 256
                 strSql.Append(" where " + strWhere);
@@ -265,7 +265,7 @@ namespace CallCenterApi.DAL
265 265
         public int GetRecordCount(string strWhere)
266 266
         {
267 267
             StringBuilder strSql = new StringBuilder();
268
-            strSql.Append("select count(1) FROM T_Ask_PagerItems ");
268
+            strSql.Append("select count(1) FROM T_Ask_PagerItems  WITH(NOLOCK) ");
269 269
             if (strWhere.Trim() != "")
270 270
             {
271 271
                 strSql.Append(" where " + strWhere);

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

@@ -22,7 +22,7 @@ namespace CallCenterApi.DAL
22 22
         public bool Exists(int F_QuestionId)
23 23
         {
24 24
             StringBuilder strSql = new StringBuilder();
25
-            strSql.Append("select count(1) from T_Ask_Question");
25
+            strSql.Append("select count(1) from T_Ask_Question WITH(NOLOCK) ");
26 26
             strSql.Append(" where F_QuestionId=@F_QuestionId");
27 27
             SqlParameter[] parameters = {
28 28
 					new SqlParameter("@F_QuestionId", SqlDbType.Int,4)
@@ -176,7 +176,7 @@ namespace CallCenterApi.DAL
176 176
         {
177 177
 
178 178
             StringBuilder strSql = new StringBuilder();
179
-            strSql.Append("select  top 1 * from vw_Ask_Question ");
179
+            strSql.Append("select  top 1 * from vw_Ask_Question  WITH(NOLOCK) ");
180 180
             strSql.Append(" where F_QuestionId=@F_QuestionId");
181 181
             SqlParameter[] parameters = {
182 182
 					new SqlParameter("@F_QuestionId", SqlDbType.Int,4)
@@ -254,7 +254,7 @@ namespace CallCenterApi.DAL
254 254
         {
255 255
             StringBuilder strSql = new StringBuilder();
256 256
             strSql.Append("select * ");
257
-            strSql.Append(" FROM T_Ask_Question ");
257
+            strSql.Append(" FROM T_Ask_Question  WITH(NOLOCK) ");
258 258
             if (strWhere.Trim() != "")
259 259
             {
260 260
                 strSql.Append(" where " + strWhere);
@@ -274,7 +274,7 @@ namespace CallCenterApi.DAL
274 274
                 strSql.Append(" top " + Top.ToString());
275 275
             }
276 276
             strSql.Append(" * ");
277
-            strSql.Append(" FROM T_Ask_Question ");
277
+            strSql.Append(" FROM T_Ask_Question  WITH(NOLOCK) ");
278 278
             if (strWhere.Trim() != "")
279 279
             {
280 280
                 strSql.Append(" where " + strWhere);
@@ -289,7 +289,7 @@ namespace CallCenterApi.DAL
289 289
         public int GetRecordCount(string strWhere)
290 290
         {
291 291
             StringBuilder strSql = new StringBuilder();
292
-            strSql.Append("select count(1) FROM T_Ask_Question ");
292
+            strSql.Append("select count(1) FROM T_Ask_Question  WITH(NOLOCK) ");
293 293
             if (strWhere.Trim() != "")
294 294
             {
295 295
                 strSql.Append(" where " + strWhere);

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

@@ -22,7 +22,7 @@ namespace CallCenterApi.DAL
22 22
         public bool Exists(int F_CategoryId)
23 23
         {
24 24
             StringBuilder strSql = new StringBuilder();
25
-            strSql.Append("select count(1) from T_Ask_QuestionCategory");
25
+            strSql.Append("select count(1) from T_Ask_QuestionCategory WITH(NOLOCK) ");
26 26
             strSql.Append(" where F_CategoryId=@F_CategoryId");
27 27
             SqlParameter[] parameters = {
28 28
                     new SqlParameter("@F_CategoryId", SqlDbType.Int,4)
@@ -200,7 +200,7 @@ namespace CallCenterApi.DAL
200 200
         {
201 201
 
202 202
             StringBuilder strSql = new StringBuilder();
203
-            strSql.Append("select  top 1 F_CategoryId,F_CategoryNumber,F_CategoryName,F_CategoryEName,F_Layer,F_ParentId,F_CategoryType,F_CanDelete,F_IsCommon,F_Sort,F_Expand1,F_Expand2,F_CreateOn,F_CreateBy,F_DeleteFlag from T_Ask_QuestionCategory ");
203
+            strSql.Append("select  top 1 F_CategoryId,F_CategoryNumber,F_CategoryName,F_CategoryEName,F_Layer,F_ParentId,F_CategoryType,F_CanDelete,F_IsCommon,F_Sort,F_Expand1,F_Expand2,F_CreateOn,F_CreateBy,F_DeleteFlag from T_Ask_QuestionCategory  WITH(NOLOCK) ");
204 204
             strSql.Append(" where F_CategoryId=@F_CategoryId");
205 205
             SqlParameter[] parameters = {
206 206
                     new SqlParameter("@F_CategoryId", SqlDbType.Int,4)
@@ -286,7 +286,7 @@ namespace CallCenterApi.DAL
286 286
         {
287 287
             StringBuilder strSql = new StringBuilder();
288 288
             strSql.Append("select F_CategoryId,F_CategoryNumber,F_CategoryName,F_CategoryEName,F_Layer,F_ParentId,F_CategoryType,F_CanDelete,F_IsCommon,F_Sort,F_Expand1,F_Expand2,F_CreateOn,F_CreateBy,F_DeleteFlag ");
289
-            strSql.Append(" FROM T_Ask_QuestionCategory ");
289
+            strSql.Append(" FROM T_Ask_QuestionCategory  WITH(NOLOCK) ");
290 290
             if (strWhere.Trim() != "")
291 291
             {
292 292
                 strSql.Append(" where " + strWhere);
@@ -306,7 +306,7 @@ namespace CallCenterApi.DAL
306 306
                 strSql.Append(" top " + Top.ToString());
307 307
             }
308 308
             strSql.Append(" F_CategoryId,F_CategoryNumber,F_CategoryName,F_CategoryEName,F_Layer,F_ParentId,F_CategoryType,F_CanDelete,F_IsCommon,F_Sort,F_Expand1,F_Expand2,F_CreateOn,F_CreateBy,F_DeleteFlag ");
309
-            strSql.Append(" FROM T_Ask_QuestionCategory ");
309
+            strSql.Append(" FROM T_Ask_QuestionCategory WITH(NOLOCK)  ");
310 310
             if (strWhere.Trim() != "")
311 311
             {
312 312
                 strSql.Append(" where " + strWhere);
@@ -321,7 +321,7 @@ namespace CallCenterApi.DAL
321 321
         public int GetRecordCount(string strWhere)
322 322
         {
323 323
             StringBuilder strSql = new StringBuilder();
324
-            strSql.Append("select count(1) FROM T_Ask_QuestionCategory ");
324
+            strSql.Append("select count(1) FROM T_Ask_QuestionCategory  WITH(NOLOCK) ");
325 325
             if (strWhere.Trim() != "")
326 326
             {
327 327
                 strSql.Append(" where " + strWhere);

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

@@ -22,7 +22,7 @@ namespace CallCenterApi.DAL
22 22
         public bool Exists(int F_ItemId)
23 23
         {
24 24
             StringBuilder strSql = new StringBuilder();
25
-            strSql.Append("select count(1) from T_Ask_QuestionItems");
25
+            strSql.Append("select count(1) from T_Ask_QuestionItems WITH(NOLOCK) ");
26 26
             strSql.Append(" where F_ItemId=@F_ItemId");
27 27
             SqlParameter[] parameters = {
28 28
 					new SqlParameter("@F_ItemId", SqlDbType.Int,4)
@@ -186,7 +186,7 @@ namespace CallCenterApi.DAL
186 186
         {
187 187
 
188 188
             StringBuilder strSql = new StringBuilder();
189
-            strSql.Append("select  top 1 F_ItemId,F_QuestionId,F_ItemName,F_IsAnswer,F_Remark,F_Sort,F_SortModel from T_Ask_QuestionItems ");
189
+            strSql.Append("select  top 1 F_ItemId,F_QuestionId,F_ItemName,F_IsAnswer,F_Remark,F_Sort,F_SortModel from T_Ask_QuestionItems  WITH(NOLOCK) ");
190 190
             strSql.Append(" where F_ItemId=@F_ItemId");
191 191
             SqlParameter[] parameters = {
192 192
 					new SqlParameter("@F_ItemId", SqlDbType.Int,4)
@@ -240,7 +240,7 @@ namespace CallCenterApi.DAL
240 240
         {
241 241
             StringBuilder strSql = new StringBuilder();
242 242
             strSql.Append("select F_ItemId,F_QuestionId,F_ItemName,F_IsAnswer,F_Remark,F_Sort,F_SortModel ");
243
-            strSql.Append(" FROM T_Ask_QuestionItems ");
243
+            strSql.Append(" FROM T_Ask_QuestionItems  WITH(NOLOCK) ");
244 244
             if (strWhere.Trim() != "")
245 245
             {
246 246
                 strSql.Append(" where " + strWhere);
@@ -260,7 +260,7 @@ namespace CallCenterApi.DAL
260 260
                 strSql.Append(" top " + Top.ToString());
261 261
             }
262 262
             strSql.Append(" F_ItemId,F_QuestionId,F_ItemName,F_IsAnswer,F_Remark,F_Sort,F_SortModel ");
263
-            strSql.Append(" FROM T_Ask_QuestionItems ");
263
+            strSql.Append(" FROM T_Ask_QuestionItems  WITH(NOLOCK) ");
264 264
             if (strWhere.Trim() != "")
265 265
             {
266 266
                 strSql.Append(" where " + strWhere);
@@ -275,7 +275,7 @@ namespace CallCenterApi.DAL
275 275
         public int GetRecordCount(string strWhere)
276 276
         {
277 277
             StringBuilder strSql = new StringBuilder();
278
-            strSql.Append("select count(1) FROM T_Ask_QuestionItems ");
278
+            strSql.Append("select count(1) FROM T_Ask_QuestionItems  WITH(NOLOCK) ");
279 279
             if (strWhere.Trim() != "")
280 280
             {
281 281
                 strSql.Append(" where " + strWhere);

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

@@ -21,7 +21,7 @@ namespace CallCenterApi.DAL
21 21
         public bool Exists(long TaskID)
22 22
         {
23 23
             StringBuilder strSql = new StringBuilder();
24
-            strSql.Append("select count(1) from T_CTI_Task");
24
+            strSql.Append("select count(1) from T_CTI_Task  WITH(NOLOCK) ");
25 25
             strSql.Append(" where TaskID=@TaskID");
26 26
             SqlParameter[] parameters = {
27 27
                     new SqlParameter("@TaskID", SqlDbType.BigInt)
@@ -366,7 +366,7 @@ namespace CallCenterApi.DAL
366 366
         {
367 367
 
368 368
             StringBuilder strSql = new StringBuilder();
369
-            strSql.Append("select  top 1 TaskID,TaskName,TrunkGroupID,CallerNum,CallType,ExInfo,MaxTrunkCount,IntensityCoefficient,ItemTableName,State,AddTime,y_PSort,y_TkModelId,y_SXH,y_FPCount,y_YJCount,y_HCCount,y_HSCount,y_HTCount,y_HMCount,y_OkCount,y_RFCount,y_ConsCount,y_InvlCount,y_NoAnswerCount,y_ShutDownCount,TaskType,Pre,Concurrency,ConcurrencyType,PlanStartDate,PlanEndDate,StartTime1,EndTime1,StartTime2,EndTime2,AgentGroupId from T_CTI_Task ");
369
+            strSql.Append("select  top 1 TaskID,TaskName,TrunkGroupID,CallerNum,CallType,ExInfo,MaxTrunkCount,IntensityCoefficient,ItemTableName,State,AddTime,y_PSort,y_TkModelId,y_SXH,y_FPCount,y_YJCount,y_HCCount,y_HSCount,y_HTCount,y_HMCount,y_OkCount,y_RFCount,y_ConsCount,y_InvlCount,y_NoAnswerCount,y_ShutDownCount,TaskType,Pre,Concurrency,ConcurrencyType,PlanStartDate,PlanEndDate,StartTime1,EndTime1,StartTime2,EndTime2,AgentGroupId from T_CTI_Task   WITH(NOLOCK) ");
370 370
             strSql.Append(" where State>=0 and  TaskID=@TaskID ");
371 371
             SqlParameter[] parameters = {
372 372
                     new SqlParameter("@TaskID", SqlDbType.BigInt)
@@ -538,7 +538,7 @@ namespace CallCenterApi.DAL
538 538
         {
539 539
             StringBuilder strSql = new StringBuilder();
540 540
             strSql.Append("select * FROM ");
541
-            strSql.Append(" FROM vw_CTI_TaskPager ");
541
+            strSql.Append(" FROM vw_CTI_TaskPager   WITH(NOLOCK) ");
542 542
 
543 543
             return DbHelperSQL.Query(strSql.ToString());
544 544
         }
@@ -550,7 +550,7 @@ namespace CallCenterApi.DAL
550 550
         {
551 551
             StringBuilder strSql = new StringBuilder();
552 552
             strSql.Append("select * ");
553
-            strSql.Append(" FROM vw_CTI_TaskPager ");
553
+            strSql.Append(" FROM vw_CTI_TaskPager   WITH(NOLOCK) ");
554 554
             if (strWhere.Trim() != "")
555 555
             {
556 556
                 strSql.Append(" where " + strWhere);
@@ -570,7 +570,7 @@ namespace CallCenterApi.DAL
570 570
                 strSql.Append(" top " + Top.ToString());
571 571
             }
572 572
             strSql.Append(" TaskID,TaskName,TrunkGroupID,CallerNum,CallType,ExInfo,MaxTrunkCount,IntensityCoefficient,ItemTableName,State,AddTime,y_PSort,y_TkModelId,y_SXH,y_FPCount,y_YJCount,y_HCCount,y_HSCount,y_HTCount,y_HMCount,y_OkCount,y_RFCount,y_ConsCount,y_InvlCount,y_NoAnswerCount,y_ShutDownCount,TaskType,Pre,Speed ");
573
-            strSql.Append(" FROM T_CTI_Task ");
573
+            strSql.Append(" FROM T_CTI_Task   WITH(NOLOCK) ");
574 574
             if (strWhere.Trim() != "")
575 575
             {
576 576
                 strSql.Append(" where " + strWhere);
@@ -585,7 +585,7 @@ namespace CallCenterApi.DAL
585 585
         public int GetRecordCount(string strWhere)
586 586
         {
587 587
             StringBuilder strSql = new StringBuilder();
588
-            strSql.Append("select count(1) FROM T_CTI_Task ");
588
+            strSql.Append("select count(1) FROM T_CTI_Task   WITH(NOLOCK) ");
589 589
             if (strWhere.Trim() != "")
590 590
             {
591 591
                 strSql.Append(" where " + strWhere);

+ 2 - 2
codegit/CallCenterApi/CallCenterApi.DAL/T_CTI_TaskAgent.cs

@@ -49,7 +49,7 @@ namespace CallCenterApi.DAL
49 49
         {
50 50
             StringBuilder strSql = new StringBuilder();
51 51
             strSql.Append("select * ");
52
-            strSql.Append(" FROM T_CTI_TaskAgent ");
52
+            strSql.Append(" FROM T_CTI_TaskAgent   WITH(NOLOCK) ");
53 53
             if (strWhere.Trim() != "")
54 54
             {
55 55
                 strSql.Append(" where " + strWhere);
@@ -60,7 +60,7 @@ namespace CallCenterApi.DAL
60 60
         public Model.T_CTI_TaskAgent GetModel(int taskId)
61 61
         {
62 62
             StringBuilder strSql = new StringBuilder();
63
-            strSql.Append("select  top 1 Id,TaskId,AgentId,GroupId from T_CTI_TaskAgent ");
63
+            strSql.Append("select  top 1 Id,TaskId,AgentId,GroupId from T_CTI_TaskAgent   WITH(NOLOCK) ");
64 64
             strSql.Append(" where TaskId=@TaskId ");
65 65
             SqlParameter[] parameters = {
66 66
                     new SqlParameter("@TaskId",taskId)

+ 2 - 2
codegit/CallCenterApi/CallCenterApi.DAL/T_CTI_TaskDaily.cs

@@ -17,7 +17,7 @@ namespace CallCenterApi.DAL
17 17
         {
18 18
             StringBuilder strSql = new StringBuilder();
19 19
             strSql.Append("select [Date],TaskId,AllCount,CalledCount,connectedCount,ConnectedAgentCount,UpdateTime ");
20
-            strSql.Append(" FROM T_CTI_TaskDaily ");
20
+            strSql.Append(" FROM T_CTI_TaskDaily   WITH(NOLOCK) ");
21 21
             if (strWhere.Trim() != "")
22 22
             {
23 23
                 strSql.Append(" where " + strWhere);
@@ -33,7 +33,7 @@ namespace CallCenterApi.DAL
33 33
         public DataSet GetList()
34 34
         {
35 35
             StringBuilder strSql = new StringBuilder();
36
-            strSql.Append("SELECT Date,Sum(AllCount)as AllCount,Sum(CalledCount)as CalledCount,sum(connectedcount)as connectedcount, sum(connectedagentcount)as connectedagentcount FROM T_CTI_TaskDaily group by Date");
36
+            strSql.Append("SELECT Date,Sum(AllCount)as AllCount,Sum(CalledCount)as CalledCount,sum(connectedcount)as connectedcount, sum(connectedagentcount)as connectedagentcount FROM T_CTI_TaskDaily   WITH(NOLOCK)  group by Date");
37 37
             return DbHelperSQL.Query(strSql.ToString());
38 38
         }
39 39
         /// <summary>

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.DAL/T_CTI_TaskPhonePart.cs

@@ -17,7 +17,7 @@ namespace CallCenterApi.DAL
17 17
         {
18 18
             StringBuilder strSql = new StringBuilder();
19 19
             strSql.Append("select [Date],TaskId,PhonePart,Province,City,AllCount,CalledCount,connectedCount,ConnectedAgentCount,UpdateTime");
20
-            strSql.Append(" FROM T_CTI_TaskPhonePart ");
20
+            strSql.Append(" FROM T_CTI_TaskPhonePart   WITH(NOLOCK)  ");
21 21
             if (strWhere.Trim() != "")
22 22
             {
23 23
                 strSql.Append(" where " + strWhere);

+ 2 - 2
codegit/CallCenterApi/CallCenterApi.DAL/T_CTI_TaskRecord.cs

@@ -49,7 +49,7 @@ namespace CallCenterApi.DAL
49 49
         {
50 50
             StringBuilder strSql = new StringBuilder();
51 51
             strSql.Append("select * ");
52
-            strSql.Append(" FROM T_CTI_TaskRecord ");
52
+            strSql.Append(" FROM T_CTI_TaskRecord   WITH(NOLOCK) ");
53 53
             if (strWhere.Trim() != "")
54 54
             {
55 55
                 strSql.Append(" where " + strWhere);
@@ -60,7 +60,7 @@ namespace CallCenterApi.DAL
60 60
         public Model.T_CTI_TaskRecord GetModel(int id)
61 61
         {
62 62
             StringBuilder strSql = new StringBuilder();
63
-            strSql.Append("select  top 1 Id,Name,RecordTime,RecordPath,Remark from T_CTI_TaskRecord ");
63
+            strSql.Append("select  top 1 Id,Name,RecordTime,RecordPath,Remark from T_CTI_TaskRecord   WITH(NOLOCK) ");
64 64
             strSql.Append(" where Id=@Id");
65 65
             SqlParameter[] parameters = {
66 66
                     new SqlParameter("@Id",id)

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

@@ -32,7 +32,7 @@ namespace CallCenterApi.DAL
32 32
         public bool Exists(int F_BlackId)
33 33
         {
34 34
             StringBuilder strSql = new StringBuilder();
35
-            strSql.Append("select count(1) from T_Call_Blacklist");
35
+            strSql.Append("select count(1) from T_Call_Blacklist WITH(NOLOCK) ");
36 36
             strSql.Append(" where F_BlackId=@F_BlackId");
37 37
             SqlParameter[] parameters = {
38 38
                     new SqlParameter("@F_BlackId", SqlDbType.Int,4)
@@ -185,7 +185,7 @@ namespace CallCenterApi.DAL
185 185
         {
186 186
 
187 187
             StringBuilder strSql = new StringBuilder();
188
-            strSql.Append("select  top 1 F_BlackId,F_CallId,F_TelPhone,F_BlackType,F_SetTime,F_RemoveTime,F_Describe,F_UserId,F_InterceptNum,F_IsDelete from T_Call_Blacklist ");
188
+            strSql.Append("select  top 1 F_BlackId,F_CallId,F_TelPhone,F_BlackType,F_SetTime,F_RemoveTime,F_Describe,F_UserId,F_InterceptNum,F_IsDelete from T_Call_Blacklist  WITH(NOLOCK) ");
189 189
             strSql.Append(" where F_BlackId=@F_BlackId");
190 190
             SqlParameter[] parameters = {
191 191
                     new SqlParameter("@F_BlackId", SqlDbType.Int,4)
@@ -271,7 +271,7 @@ namespace CallCenterApi.DAL
271 271
         {
272 272
             StringBuilder strSql = new StringBuilder();
273 273
             strSql.Append("select F_BlackId,F_CallId,F_TelPhone,F_BlackType,F_SetTime,F_RemoveTime,F_Describe,F_UserId,F_InterceptNum,F_IsDelete ");
274
-            strSql.Append(" FROM T_Call_Blacklist ");
274
+            strSql.Append(" FROM T_Call_Blacklist   WITH(NOLOCK) ");
275 275
             if (strWhere.Trim() != "")
276 276
             {
277 277
                 strSql.Append(" where " + strWhere);
@@ -291,7 +291,7 @@ namespace CallCenterApi.DAL
291 291
                 strSql.Append(" top " + Top.ToString());
292 292
             }
293 293
             strSql.Append(" F_BlackId,F_CallId,F_TelPhone,F_BlackType,F_SetTime,F_RemoveTime,F_Describe,F_UserId,F_InterceptNum,F_IsDelete ");
294
-            strSql.Append(" FROM T_Call_Blacklist ");
294
+            strSql.Append(" FROM T_Call_Blacklist   WITH(NOLOCK) ");
295 295
             if (strWhere.Trim() != "")
296 296
             {
297 297
                 strSql.Append(" where " + strWhere);
@@ -306,7 +306,7 @@ namespace CallCenterApi.DAL
306 306
         public int GetRecordCount(string strWhere)
307 307
         {
308 308
             StringBuilder strSql = new StringBuilder();
309
-            strSql.Append("select count(1) FROM T_Call_Blacklist ");
309
+            strSql.Append("select count(1) FROM T_Call_Blacklist   WITH(NOLOCK) ");
310 310
             if (strWhere.Trim() != "")
311 311
             {
312 312
                 strSql.Append(" where " + strWhere);

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

@@ -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)
@@ -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);
@@ -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)
@@ -932,7 +932,7 @@ namespace CallCenterApi.DAL
932 932
         public Model.T_Call_CallRecords GetModelByRecordId(string CallId)
933 933
         {
934 934
             StringBuilder strSql = new StringBuilder();
935
-            strSql.Append("select  top 1 * from T_Call_CallRecords ");
935
+            strSql.Append("select  top 1 * from T_Call_CallRecords   WITH(NOLOCK) ");
936 936
             strSql.Append(" where CallRecordsId=@CallRecordsId order by BeginTime desc");
937 937
             SqlParameter[] parameters = {
938 938
                     new SqlParameter("@CallRecordsId", SqlDbType.Int)

+ 4 - 4
codegit/CallCenterApi/CallCenterApi.DAL/T_Call_CallRecordsLD.cs

@@ -102,7 +102,7 @@ namespace CallCenterApi.DAL
102 102
         {
103 103
 
104 104
             StringBuilder strSql = new StringBuilder();
105
-            strSql.Append("select  top 1 F_CallRLDID,F_CallRecordsID,F_IsListen,F_IsDownload,F_OptID,F_OptBy,F_OptDate from T_Call_CallRecordsLD ");
105
+            strSql.Append("select  top 1 F_CallRLDID,F_CallRecordsID,F_IsListen,F_IsDownload,F_OptID,F_OptBy,F_OptDate from T_Call_CallRecordsLD   WITH(NOLOCK) ");
106 106
             strSql.Append(" where F_CallRLDID=@F_CallRLDID");
107 107
             SqlParameter[] parameters = {
108 108
                     new SqlParameter("@F_CallRLDID", SqlDbType.Int,4)
@@ -183,7 +183,7 @@ namespace CallCenterApi.DAL
183 183
         {
184 184
             StringBuilder strSql = new StringBuilder();
185 185
             strSql.Append("select F_CallRLDID,F_CallRecordsID,F_IsListen,F_IsDownload,F_OptID,F_OptBy,F_OptDate ");
186
-            strSql.Append(" FROM T_Call_CallRecordsLD ");
186
+            strSql.Append(" FROM T_Call_CallRecordsLD   WITH(NOLOCK) ");
187 187
             if (strWhere.Trim() != "")
188 188
             {
189 189
                 strSql.Append(" where " + strWhere);
@@ -203,7 +203,7 @@ namespace CallCenterApi.DAL
203 203
                 strSql.Append(" top " + Top.ToString());
204 204
             }
205 205
             strSql.Append(" F_CallRLDID,F_CallRecordsID,F_IsListen,F_IsDownload,F_OptID,F_OptBy,F_OptDate ");
206
-            strSql.Append(" FROM T_Call_CallRecordsLD ");
206
+            strSql.Append(" FROM T_Call_CallRecordsLD   WITH(NOLOCK) ");
207 207
             if (strWhere.Trim() != "")
208 208
             {
209 209
                 strSql.Append(" where " + strWhere);
@@ -218,7 +218,7 @@ namespace CallCenterApi.DAL
218 218
         public int GetRecordCount(string strWhere)
219 219
         {
220 220
             StringBuilder strSql = new StringBuilder();
221
-            strSql.Append("select count(1) FROM T_Call_CallRecordsLD ");
221
+            strSql.Append("select count(1) FROM T_Call_CallRecordsLD   WITH(NOLOCK) ");
222 222
             if (strWhere.Trim() != "")
223 223
             {
224 224
                 strSql.Append(" where " + strWhere);

+ 5 - 5
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);

+ 5 - 5
codegit/CallCenterApi/CallCenterApi.DAL/T_Call_LeaveRecord.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_Call_LeaveRecord");
35
+            strSql.Append("select count(1) from T_Call_LeaveRecord  WITH(NOLOCK) ");
36 36
             strSql.Append(" where F_Id=@F_Id");
37 37
             SqlParameter[] parameters = {
38 38
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
@@ -200,7 +200,7 @@ namespace CallCenterApi.DAL
200 200
         {
201 201
 
202 202
             StringBuilder strSql = new StringBuilder();
203
-            strSql.Append("select  top 1 F_Id,F_CallId,F_Phone,F_LeaveTime,F_Status,F_UserId,F_UserCode,F_UserName,F_DealTime,F_DealContent,F_Remark,F_CallAppId,F_RecFileUrl from T_Call_LeaveRecord ");
203
+            strSql.Append("select  top 1 F_Id,F_CallId,F_Phone,F_LeaveTime,F_Status,F_UserId,F_UserCode,F_UserName,F_DealTime,F_DealContent,F_Remark,F_CallAppId,F_RecFileUrl from T_Call_LeaveRecord   WITH(NOLOCK) ");
204 204
             strSql.Append(" where F_Id=@F_Id");
205 205
             SqlParameter[] parameters = {
206 206
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
@@ -291,7 +291,7 @@ namespace CallCenterApi.DAL
291 291
         {
292 292
             StringBuilder strSql = new StringBuilder();
293 293
             strSql.Append("select F_Id,F_CallId,F_Phone,F_LeaveTime,F_Status,F_UserId,F_UserCode,F_UserName,F_DealTime,F_DealContent,F_Remark,F_CallAppId,F_RecFileUrl ");
294
-            strSql.Append(" FROM T_Call_LeaveRecord ");
294
+            strSql.Append(" FROM T_Call_LeaveRecord   WITH(NOLOCK) ");
295 295
             if (strWhere.Trim() != "")
296 296
             {
297 297
                 strSql.Append(" where " + strWhere);
@@ -311,7 +311,7 @@ namespace CallCenterApi.DAL
311 311
                 strSql.Append(" top " + Top.ToString());
312 312
             }
313 313
             strSql.Append(" F_Id,F_CallId,F_Phone,F_LeaveTime,F_Status,F_UserId,F_UserCode,F_UserName,F_DealTime,F_DealContent,F_Remark,F_CallAppId,F_RecFileUrl ");
314
-            strSql.Append(" FROM T_Call_LeaveRecord ");
314
+            strSql.Append(" FROM T_Call_LeaveRecord   WITH(NOLOCK) ");
315 315
             if (strWhere.Trim() != "")
316 316
             {
317 317
                 strSql.Append(" where " + strWhere);
@@ -326,7 +326,7 @@ namespace CallCenterApi.DAL
326 326
         public int GetRecordCount(string strWhere)
327 327
         {
328 328
             StringBuilder strSql = new StringBuilder();
329
-            strSql.Append("select count(1) FROM T_Call_LeaveRecord ");
329
+            strSql.Append("select count(1) FROM T_Call_LeaveRecord   WITH(NOLOCK) ");
330 330
             if (strWhere.Trim() != "")
331 331
             {
332 332
                 strSql.Append(" where " + strWhere);

+ 4 - 4
codegit/CallCenterApi/CallCenterApi.DAL/T_Call_OutAnswers.cs

@@ -198,7 +198,7 @@ namespace CallCenterApi.DAL
198 198
         {
199 199
 
200 200
             StringBuilder strSql = new StringBuilder();
201
-            strSql.Append("select  top 1 F_AnswerID,F_TaskID,F_QID,F_QIID,F_Answer,F_CusTelID,F_CusID,F_OptBy,F_OptByName,F_OptOn,F_Expand1,F_Expand2,F_Expand3 from T_Call_OutAnswers ");
201
+            strSql.Append("select  top 1 F_AnswerID,F_TaskID,F_QID,F_QIID,F_Answer,F_CusTelID,F_CusID,F_OptBy,F_OptByName,F_OptOn,F_Expand1,F_Expand2,F_Expand3 from T_Call_OutAnswers   WITH(NOLOCK) ");
202 202
             strSql.Append(" where F_AnswerID=@F_AnswerID");
203 203
             SqlParameter[] parameters = {
204 204
                     new SqlParameter("@F_AnswerID", SqlDbType.Int,4)
@@ -289,7 +289,7 @@ namespace CallCenterApi.DAL
289 289
         {
290 290
             StringBuilder strSql = new StringBuilder();
291 291
             strSql.Append("select F_AnswerID,F_TaskID,F_QID,F_QIID,F_Answer,F_CusTelID,F_CusID,F_OptBy,F_OptByName,F_OptOn,F_Expand1,F_Expand2,F_Expand3 ");
292
-            strSql.Append(" FROM T_Call_OutAnswers ");
292
+            strSql.Append(" FROM T_Call_OutAnswers   WITH(NOLOCK) ");
293 293
             if (strWhere.Trim() != "")
294 294
             {
295 295
                 strSql.Append(" where " + strWhere);
@@ -309,7 +309,7 @@ namespace CallCenterApi.DAL
309 309
                 strSql.Append(" top " + Top.ToString());
310 310
             }
311 311
             strSql.Append(" F_AnswerID,F_TaskID,F_QID,F_QIID,F_Answer,F_CusTelID,F_CusID,F_OptBy,F_OptByName,F_OptOn,F_Expand1,F_Expand2,F_Expand3 ");
312
-            strSql.Append(" FROM T_Call_OutAnswers ");
312
+            strSql.Append(" FROM T_Call_OutAnswers   WITH(NOLOCK) ");
313 313
             if (strWhere.Trim() != "")
314 314
             {
315 315
                 strSql.Append(" where " + strWhere);
@@ -324,7 +324,7 @@ namespace CallCenterApi.DAL
324 324
         public int GetRecordCount(string strWhere)
325 325
         {
326 326
             StringBuilder strSql = new StringBuilder();
327
-            strSql.Append("select count(1) FROM T_Call_OutAnswers ");
327
+            strSql.Append("select count(1) FROM T_Call_OutAnswers   WITH(NOLOCK) ");
328 328
             if (strWhere.Trim() != "")
329 329
             {
330 330
                 strSql.Append(" where " + strWhere);

+ 4 - 4
codegit/CallCenterApi/CallCenterApi.DAL/T_Call_OutTask.cs

@@ -178,7 +178,7 @@ namespace CallCenterApi.DAL
178 178
         {
179 179
 
180 180
             StringBuilder strSql = new StringBuilder();
181
-            strSql.Append("select  top 1 * from T_Call_OutTask ");
181
+            strSql.Append("select  top 1 * from T_Call_OutTask   WITH(NOLOCK) ");
182 182
             strSql.Append(" where F_TaskID=@F_TaskID");
183 183
             SqlParameter[] parameters = {
184 184
                     new SqlParameter("@F_TaskID", SqlDbType.Int,4)
@@ -269,7 +269,7 @@ namespace CallCenterApi.DAL
269 269
         {
270 270
             StringBuilder strSql = new StringBuilder();
271 271
             strSql.Append("select * ");
272
-            strSql.Append(" FROM T_Call_OutTask ");
272
+            strSql.Append(" FROM T_Call_OutTask   WITH(NOLOCK) ");
273 273
             if (strWhere.Trim() != "")
274 274
             {
275 275
                 strSql.Append(" where " + strWhere);
@@ -289,7 +289,7 @@ namespace CallCenterApi.DAL
289 289
                 strSql.Append(" top " + Top.ToString());
290 290
             }
291 291
             strSql.Append(" * ");
292
-            strSql.Append(" FROM T_Call_OutTask ");
292
+            strSql.Append(" FROM T_Call_OutTask   WITH(NOLOCK) ");
293 293
             if (strWhere.Trim() != "")
294 294
             {
295 295
                 strSql.Append(" where " + strWhere);
@@ -304,7 +304,7 @@ namespace CallCenterApi.DAL
304 304
         public int GetRecordCount(string strWhere)
305 305
         {
306 306
             StringBuilder strSql = new StringBuilder();
307
-            strSql.Append("select count(1) FROM T_Call_OutTask ");
307
+            strSql.Append("select count(1) FROM T_Call_OutTask   WITH(NOLOCK) ");
308 308
             if (strWhere.Trim() != "")
309 309
             {
310 310
                 strSql.Append(" where " + strWhere);

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


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

@@ -23,7 +23,7 @@ namespace CallCenterApi.DAL
23 23
         public bool Exists(int F_Id)
24 24
         {
25 25
             StringBuilder strSql = new StringBuilder();
26
-            strSql.Append("select count(1) from T_Call_OutTaskTelNum");
26
+            strSql.Append("select count(1) from T_Call_OutTaskTelNum  WITH(NOLOCK) ");
27 27
             strSql.Append(" where F_Id=@F_Id");
28 28
             SqlParameter[] parameters = {
29 29
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
@@ -433,7 +433,7 @@ namespace CallCenterApi.DAL
433 433
         {
434 434
 
435 435
             StringBuilder strSql = new StringBuilder();
436
-            strSql.Append("select  top 1 * from T_Call_OutTaskTelNum ");
436
+            strSql.Append("select  top 1 * from T_Call_OutTaskTelNum   WITH(NOLOCK) ");
437 437
             strSql.Append(" where F_Id=@F_Id");
438 438
             SqlParameter[] parameters = {
439 439
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
@@ -700,7 +700,7 @@ namespace CallCenterApi.DAL
700 700
         {
701 701
             StringBuilder strSql = new StringBuilder();
702 702
             strSql.Append("select * ");
703
-            strSql.Append(" FROM T_Call_OutTaskTelNum ");
703
+            strSql.Append(" FROM T_Call_OutTaskTelNum   WITH(NOLOCK) ");
704 704
             if (strWhere.Trim() != "")
705 705
             {
706 706
                 strSql.Append(" where " + strWhere);
@@ -720,7 +720,7 @@ namespace CallCenterApi.DAL
720 720
                 strSql.Append(" top " + Top.ToString());
721 721
             }
722 722
             strSql.Append(" * ");
723
-            strSql.Append(" FROM T_Call_OutTaskTelNum ");
723
+            strSql.Append(" FROM T_Call_OutTaskTelNum   WITH(NOLOCK) ");
724 724
             if (strWhere.Trim() != "")
725 725
             {
726 726
                 strSql.Append(" where " + strWhere);
@@ -735,7 +735,7 @@ namespace CallCenterApi.DAL
735 735
         public int GetRecordCount(string strWhere)
736 736
         {
737 737
             StringBuilder strSql = new StringBuilder();
738
-            strSql.Append("select count(1) FROM T_Call_OutTaskTelNum ");
738
+            strSql.Append("select count(1) FROM T_Call_OutTaskTelNum   WITH(NOLOCK) ");
739 739
             if (strWhere.Trim() != "")
740 740
             {
741 741
                 strSql.Append(" where " + strWhere);

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


+ 4 - 4
codegit/CallCenterApi/CallCenterApi.DAL/T_Call_WorkOrder.cs

@@ -114,7 +114,7 @@ namespace CallCenterApi.DAL
114 114
         {
115 115
             //该表无主键信息,请自定义主键/条件字段
116 116
             StringBuilder strSql = new StringBuilder();
117
-            strSql.Append("select  top 1 F_WORKORDERID,CallId,F_WORKORDERSTATEID,TalkLongTime from T_Call_WorkOrder ");
117
+            strSql.Append("select  top 1 F_WORKORDERID,CallId,F_WORKORDERSTATEID,TalkLongTime from T_Call_WorkOrder   WITH(NOLOCK) ");
118 118
             strSql.Append(" where ");
119 119
             SqlParameter[] parameters = {
120 120
 };
@@ -154,7 +154,7 @@ namespace CallCenterApi.DAL
154 154
         {
155 155
             StringBuilder strSql = new StringBuilder();
156 156
             strSql.Append("select F_WORKORDERID,CallId,F_WORKORDERSTATEID,TalkLongTime ");
157
-            strSql.Append(" FROM T_Call_WorkOrder ");
157
+            strSql.Append(" FROM T_Call_WorkOrder   WITH(NOLOCK) ");
158 158
             if (strWhere.Trim() != "")
159 159
             {
160 160
                 strSql.Append(" where " + strWhere);
@@ -174,7 +174,7 @@ namespace CallCenterApi.DAL
174 174
                 strSql.Append(" top " + Top.ToString());
175 175
             }
176 176
             strSql.Append(" F_WORKORDERID,CallId,F_WORKORDERSTATEID,TalkLongTime ");
177
-            strSql.Append(" FROM T_Call_WorkOrder ");
177
+            strSql.Append(" FROM T_Call_WorkOrder   WITH(NOLOCK) ");
178 178
             if (strWhere.Trim() != "")
179 179
             {
180 180
                 strSql.Append(" where " + strWhere);
@@ -189,7 +189,7 @@ namespace CallCenterApi.DAL
189 189
         public int GetRecordCount(string strWhere)
190 190
         {
191 191
             StringBuilder strSql = new StringBuilder();
192
-            strSql.Append("select count(1) FROM T_Call_WorkOrder ");
192
+            strSql.Append("select count(1) FROM T_Call_WorkOrder   WITH(NOLOCK) ");
193 193
             if (strWhere.Trim() != "")
194 194
             {
195 195
                 strSql.Append(" where " + strWhere);

+ 4 - 4
codegit/CallCenterApi/CallCenterApi.DAL/T_Call_ZBDH.cs

@@ -155,7 +155,7 @@ namespace CallCenterApi.DAL
155 155
         {
156 156
 
157 157
             StringBuilder strSql = new StringBuilder();
158
-            strSql.Append("select  top 1 F_ZBID,F_ZBDH,F_GroupName,F_Groupid,F_Remark,F_CallinTime,F_CreateBy,F_CreateTime,F_CreateID from T_Call_ZBDH ");
158
+            strSql.Append("select  top 1 F_ZBID,F_ZBDH,F_GroupName,F_Groupid,F_Remark,F_CallinTime,F_CreateBy,F_CreateTime,F_CreateID from T_Call_ZBDH   WITH(NOLOCK) ");
159 159
             strSql.Append(" where F_ZBID=@F_ZBID");
160 160
             SqlParameter[] parameters = {
161 161
                     new SqlParameter("@F_ZBID", SqlDbType.Int,4)
@@ -230,7 +230,7 @@ namespace CallCenterApi.DAL
230 230
         {
231 231
             StringBuilder strSql = new StringBuilder();
232 232
             strSql.Append("select F_ZBID,F_ZBDH,F_GroupName,F_Groupid,F_Remark,F_CallinTime,F_CreateBy,F_CreateTime,F_CreateID ");
233
-            strSql.Append(" FROM T_Call_ZBDH ");
233
+            strSql.Append(" FROM T_Call_ZBDH   WITH(NOLOCK) ");
234 234
             if (strWhere.Trim() != "")
235 235
             {
236 236
                 strSql.Append(" where " + strWhere);
@@ -250,7 +250,7 @@ namespace CallCenterApi.DAL
250 250
                 strSql.Append(" top " + Top.ToString());
251 251
             }
252 252
             strSql.Append(" F_ZBID,F_ZBDH,F_GroupName,F_Groupid,F_Remark,F_CallinTime,F_CreateBy,F_CreateTime,F_CreateID ");
253
-            strSql.Append(" FROM T_Call_ZBDH ");
253
+            strSql.Append(" FROM T_Call_ZBDH   WITH(NOLOCK) ");
254 254
             if (strWhere.Trim() != "")
255 255
             {
256 256
                 strSql.Append(" where " + strWhere);
@@ -264,7 +264,7 @@ namespace CallCenterApi.DAL
264 264
         public int GetRecordCount(string strWhere)
265 265
         {
266 266
             StringBuilder strSql = new StringBuilder();
267
-            strSql.Append("select count(1) FROM T_Call_ZBDH ");
267
+            strSql.Append("select count(1) FROM T_Call_ZBDH   WITH(NOLOCK) ");
268 268
             if (strWhere.Trim() != "")
269 269
             {
270 270
                 strSql.Append(" where " + strWhere);

+ 4 - 4
codegit/CallCenterApi/CallCenterApi.DAL/T_Con_Conversation.cs

@@ -129,7 +129,7 @@ namespace CallCenterApi.DAL
129 129
         {
130 130
             //该表无主键信息,请自定义主键/条件字段
131 131
             StringBuilder strSql = new StringBuilder();
132
-            strSql.Append("select  top 1 * from T_Con_Conversation ");
132
+            strSql.Append("select  top 1 * from T_Con_Conversation   WITH(NOLOCK) ");
133 133
             strSql.Append(" where ID=@ID");
134 134
             SqlParameter[] parameters = {
135 135
                  new SqlParameter("@ID", SqlDbType.Int,4)
@@ -203,7 +203,7 @@ namespace CallCenterApi.DAL
203 203
         {
204 204
             StringBuilder strSql = new StringBuilder();
205 205
             strSql.Append("select ID,F_Type,F_Department,F_Section,F_Telephone,F_Physician,F_Title,F_IsDelete,F_FileId ");
206
-            strSql.Append(" FROM T_Con_Conversation ");
206
+            strSql.Append(" FROM T_Con_Conversation   WITH(NOLOCK) ");
207 207
             if (strWhere.Trim() != "")
208 208
             {
209 209
                 strSql.Append(" where " + strWhere);
@@ -223,7 +223,7 @@ namespace CallCenterApi.DAL
223 223
                 strSql.Append(" top " + Top.ToString());
224 224
             }
225 225
             strSql.Append(" ID,F_Type,F_Department,F_Section,F_Telephone,F_Physician,F_Title,F_IsDelete,F_FileId ");
226
-            strSql.Append(" FROM T_Con_Conversation ");
226
+            strSql.Append(" FROM T_Con_Conversation   WITH(NOLOCK) ");
227 227
             if (strWhere.Trim() != "")
228 228
             {
229 229
                 strSql.Append(" where " + strWhere);
@@ -238,7 +238,7 @@ namespace CallCenterApi.DAL
238 238
         public int GetRecordCount(string strWhere)
239 239
         {
240 240
             StringBuilder strSql = new StringBuilder();
241
-            strSql.Append("select count(1) FROM T_Con_Conversation ");
241
+            strSql.Append("select count(1) FROM T_Con_Conversation   WITH(NOLOCK) ");
242 242
             if (strWhere.Trim() != "")
243 243
             {
244 244
                 strSql.Append(" where " + strWhere);

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

@@ -32,7 +32,7 @@ namespace CallCenterApi.DAL
32 32
         public bool Exists(int F_ManId)
33 33
         {
34 34
             StringBuilder strSql = new StringBuilder();
35
-            strSql.Append("select count(1) from T_Cus_ContactPerson");
35
+            strSql.Append("select count(1) from T_Cus_ContactPerson   WITH(NOLOCK) ");
36 36
             strSql.Append(" where F_ManId=@F_ManId");
37 37
             SqlParameter[] parameters = {
38 38
                     new SqlParameter("@F_ManId", SqlDbType.Int,4)
@@ -315,7 +315,7 @@ namespace CallCenterApi.DAL
315 315
         {
316 316
 
317 317
             StringBuilder strSql = new StringBuilder();
318
-            strSql.Append("select  top 1 F_ManId,F_CustomerId,F_CategoryId,F_Name,F_EName,F_IsMain,F_Sex,F_Telephone,F_Mobile,F_Fax,F_Address,F_Email,F_Duty,F_Department,F_QQ,F_MSN,F_IsBirth,F_Birthday,F_BirthType,F_BirthCN,F_BirthCNYear,F_BirthCNMonth,F_BirthCNDay,F_IsSMS,F_SMSContent,F_FirstDate,F_LatelyDate,F_Remark,F_CreateBy,F_CreateOn,F_ModifyBy,F_ModifyOn,F_DeletionStateCode, F_UserAccount, F_Password, F_RoleId from T_Cus_ContactPerson ");
318
+            strSql.Append("select  top 1 F_ManId,F_CustomerId,F_CategoryId,F_Name,F_EName,F_IsMain,F_Sex,F_Telephone,F_Mobile,F_Fax,F_Address,F_Email,F_Duty,F_Department,F_QQ,F_MSN,F_IsBirth,F_Birthday,F_BirthType,F_BirthCN,F_BirthCNYear,F_BirthCNMonth,F_BirthCNDay,F_IsSMS,F_SMSContent,F_FirstDate,F_LatelyDate,F_Remark,F_CreateBy,F_CreateOn,F_ModifyBy,F_ModifyOn,F_DeletionStateCode, F_UserAccount, F_Password, F_RoleId from T_Cus_ContactPerson   WITH(NOLOCK) ");
319 319
             strSql.Append(" where F_ManId=@F_ManId");
320 320
             SqlParameter[] parameters = {
321 321
                     new SqlParameter("@F_ManId", SqlDbType.Int,4)
@@ -519,7 +519,7 @@ namespace CallCenterApi.DAL
519 519
         {
520 520
             StringBuilder strSql = new StringBuilder();
521 521
             strSql.Append("select F_ManId,F_CustomerId,F_CategoryId,F_Name,F_EName,F_IsMain,F_Sex,F_Telephone,F_Mobile,F_Fax,F_Address,F_Email,F_Duty,F_Department,F_QQ,F_MSN,F_IsBirth,F_Birthday,F_BirthType,F_BirthCN,F_BirthCNYear,F_BirthCNMonth,F_BirthCNDay,F_IsSMS,F_SMSContent,F_FirstDate,F_LatelyDate,F_Remark,F_CreateBy,F_CreateOn,F_ModifyBy,F_ModifyOn,F_DeletionStateCode, F_UserAccount, F_Password, F_RoleId ");
522
-            strSql.Append(" FROM T_Cus_ContactPerson ");
522
+            strSql.Append(" FROM T_Cus_ContactPerson   WITH(NOLOCK) ");
523 523
             if (strWhere.Trim() != "")
524 524
             {
525 525
                 strSql.Append(" where " + strWhere);
@@ -539,7 +539,7 @@ namespace CallCenterApi.DAL
539 539
                 strSql.Append(" top " + Top.ToString());
540 540
             }
541 541
             strSql.Append(" F_ManId,F_CustomerId,F_CategoryId,F_Name,F_EName,F_IsMain,F_Sex,F_Telephone,F_Mobile,F_Fax,F_Address,F_Email,F_Duty,F_Department,F_QQ,F_MSN,F_IsBirth,F_Birthday,F_BirthType,F_BirthCN,F_BirthCNYear,F_BirthCNMonth,F_BirthCNDay,F_IsSMS,F_SMSContent,F_FirstDate,F_LatelyDate,F_Remark,F_CreateBy,F_CreateOn,F_ModifyBy,F_ModifyOn,F_DeletionStateCode, F_UserAccount, F_Password, F_RoleId ");
542
-            strSql.Append(" FROM T_Cus_ContactPerson ");
542
+            strSql.Append(" FROM T_Cus_ContactPerson   WITH(NOLOCK) ");
543 543
             if (strWhere.Trim() != "")
544 544
             {
545 545
                 strSql.Append(" where " + strWhere);
@@ -554,7 +554,7 @@ namespace CallCenterApi.DAL
554 554
         public int GetRecordCount(string strWhere)
555 555
         {
556 556
             StringBuilder strSql = new StringBuilder();
557
-            strSql.Append("select count(1) FROM T_Cus_ContactPerson ");
557
+            strSql.Append("select count(1) FROM T_Cus_ContactPerson   WITH(NOLOCK) ");
558 558
             if (strWhere.Trim() != "")
559 559
             {
560 560
                 strSql.Append(" where " + strWhere);

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

@@ -23,7 +23,7 @@ namespace CallCenterApi.DAL
23 23
         public bool Exists(int F_ManId)
24 24
         {
25 25
             StringBuilder strSql = new StringBuilder();
26
-            strSql.Append("select count(1) from T_Cus_ContactPersonNew");
26
+            strSql.Append("select count(1) from T_Cus_ContactPersonNew  WITH(NOLOCK) ");
27 27
             strSql.Append(" where F_ManId=@F_ManId");
28 28
             SqlParameter[] parameters = {
29 29
                     new SqlParameter("@F_ManId", SqlDbType.Int,4)
@@ -212,7 +212,7 @@ namespace CallCenterApi.DAL
212 212
         {
213 213
 
214 214
             StringBuilder strSql = new StringBuilder();
215
-            strSql.Append("select  top 1 * from T_Cus_ContactPersonNew ");
215
+            strSql.Append("select  top 1 * from T_Cus_ContactPersonNew   WITH(NOLOCK) ");
216 216
             strSql.Append(" where F_ManId=@F_ManId");
217 217
             SqlParameter[] parameters = {
218 218
                     new SqlParameter("@F_ManId", SqlDbType.Int,4)
@@ -309,7 +309,7 @@ namespace CallCenterApi.DAL
309 309
         {
310 310
             StringBuilder strSql = new StringBuilder();
311 311
             strSql.Append("select * ");
312
-            strSql.Append(" FROM T_Cus_ContactPersonNew ");
312
+            strSql.Append(" FROM T_Cus_ContactPersonNew   WITH(NOLOCK) ");
313 313
             if (strWhere.Trim() != "")
314 314
             {
315 315
                 strSql.Append(" where " + strWhere);
@@ -329,7 +329,7 @@ namespace CallCenterApi.DAL
329 329
                 strSql.Append(" top " + Top.ToString());
330 330
             }
331 331
             strSql.Append(" * ");
332
-            strSql.Append(" FROM T_Cus_ContactPersonNew ");
332
+            strSql.Append(" FROM T_Cus_ContactPersonNew   WITH(NOLOCK) ");
333 333
             if (strWhere.Trim() != "")
334 334
             {
335 335
                 strSql.Append(" where " + strWhere);
@@ -344,7 +344,7 @@ namespace CallCenterApi.DAL
344 344
         public int GetRecordCount(string strWhere)
345 345
         {
346 346
             StringBuilder strSql = new StringBuilder();
347
-            strSql.Append("select count(1) FROM T_Cus_ContactPersonNew ");
347
+            strSql.Append("select count(1) FROM T_Cus_ContactPersonNew   WITH(NOLOCK) ");
348 348
             if (strWhere.Trim() != "")
349 349
             {
350 350
                 strSql.Append(" where " + strWhere);

Разница между файлами не показана из-за своего большого размера
+ 11 - 11
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)
@@ -355,7 +355,7 @@ namespace CallCenterApi.DAL
355 355
         {
356 356
 
357 357
             StringBuilder strSql = new StringBuilder();
358
-            strSql.Append("select  top 1 * from T_Cus_CustomerBaseNew ");
358
+            strSql.Append("select  top 1 * from T_Cus_CustomerBaseNew   WITH(NOLOCK) ");
359 359
             strSql.Append(" where F_CustomerId=@F_CustomerId");
360 360
             SqlParameter[] parameters = {
361 361
                     new SqlParameter("@F_CustomerId", SqlDbType.Int,4)
@@ -577,7 +577,7 @@ namespace CallCenterApi.DAL
577 577
         {
578 578
             StringBuilder strSql = new StringBuilder();
579 579
             strSql.Append("select * ");
580
-            strSql.Append(" FROM T_Cus_CustomerBaseNew ");
580
+            strSql.Append(" FROM T_Cus_CustomerBaseNew   WITH(NOLOCK) ");
581 581
             if (strWhere.Trim() != "")
582 582
             {
583 583
                 strSql.Append(" where " + strWhere);
@@ -597,7 +597,7 @@ namespace CallCenterApi.DAL
597 597
                 strSql.Append(" top " + Top.ToString());
598 598
             }
599 599
             strSql.Append(" * ");
600
-            strSql.Append(" FROM T_Cus_CustomerBaseNew ");
600
+            strSql.Append(" FROM T_Cus_CustomerBaseNew   WITH(NOLOCK) ");
601 601
             if (strWhere.Trim() != "")
602 602
             {
603 603
                 strSql.Append(" where " + strWhere);
@@ -612,7 +612,7 @@ namespace CallCenterApi.DAL
612 612
         public int GetRecordCount(string strWhere)
613 613
         {
614 614
             StringBuilder strSql = new StringBuilder();
615
-            strSql.Append("select count(1) FROM T_Cus_CustomerBaseNew ");
615
+            strSql.Append("select count(1) FROM T_Cus_CustomerBaseNew   WITH(NOLOCK) ");
616 616
             if (strWhere.Trim() != "")
617 617
             {
618 618
                 strSql.Append(" where " + strWhere);
@@ -661,7 +661,7 @@ namespace CallCenterApi.DAL
661 661
         {
662 662
 
663 663
             StringBuilder strSql = new StringBuilder();
664
-            strSql.Append("select top 1 * from T_Cus_CustomerBaseNew ");
664
+            strSql.Append("select top 1 * from T_Cus_CustomerBaseNew   WITH(NOLOCK) ");
665 665
             strSql.Append(" where F_WxOpenId=@F_WxOpenId and F_DeleteFlag=0 ");
666 666
             SqlParameter[] parameters = {
667 667
                     new SqlParameter("@F_WxOpenId", SqlDbType.NVarChar,200)

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

@@ -24,7 +24,7 @@ namespace CallCenterApi.DAL
24 24
         public bool Exists(Guid F_ExpandId)
25 25
         {
26 26
             StringBuilder strSql = new StringBuilder();
27
-            strSql.Append("select count(1) from T_Cus_CustomerExpand");
27
+            strSql.Append("select count(1) from T_Cus_CustomerExpand  WITH(NOLOCK) ");
28 28
             strSql.Append(" where F_ExpandId=@F_ExpandId ");
29 29
             SqlParameter[] parameters = {
30 30
                     new SqlParameter("@F_ExpandId", SqlDbType.UniqueIdentifier,16)          };
@@ -206,7 +206,7 @@ namespace CallCenterApi.DAL
206 206
         {
207 207
 
208 208
             StringBuilder strSql = new StringBuilder();
209
-            strSql.Append("select  top 1 F_ExpandId,F_CustomerId,F_StrExpand1,F_StrExpand2,F_StrExpand3,F_StrExpand4,F_StrExpand5,F_StrExpand6,F_TypeExpand1,F_TypeExpand2,F_IntExpand1,F_IntExpand2,F_TimeExpand1,F_TimeExpand2,F_TextExpand1,F_TextExpand2 from T_Cus_CustomerExpand ");
209
+            strSql.Append("select  top 1 F_ExpandId,F_CustomerId,F_StrExpand1,F_StrExpand2,F_StrExpand3,F_StrExpand4,F_StrExpand5,F_StrExpand6,F_TypeExpand1,F_TypeExpand2,F_IntExpand1,F_IntExpand2,F_TimeExpand1,F_TimeExpand2,F_TextExpand1,F_TextExpand2 from T_Cus_CustomerExpand   WITH(NOLOCK) ");
210 210
             strSql.Append(" where F_ExpandId=@F_ExpandId ");
211 211
             SqlParameter[] parameters = {
212 212
                     new SqlParameter("@F_ExpandId", SqlDbType.UniqueIdentifier,16)          };
@@ -308,7 +308,7 @@ namespace CallCenterApi.DAL
308 308
         {
309 309
             StringBuilder strSql = new StringBuilder();
310 310
             strSql.Append("select F_ExpandId,F_CustomerId,F_StrExpand1,F_StrExpand2,F_StrExpand3,F_StrExpand4,F_StrExpand5,F_StrExpand6,F_TypeExpand1,F_TypeExpand2,F_IntExpand1,F_IntExpand2,F_TimeExpand1,F_TimeExpand2,F_TextExpand1,F_TextExpand2 ");
311
-            strSql.Append(" FROM T_Cus_CustomerExpand ");
311
+            strSql.Append(" FROM T_Cus_CustomerExpand   WITH(NOLOCK) ");
312 312
             if (strWhere.Trim() != "")
313 313
             {
314 314
                 strSql.Append(" where " + strWhere);
@@ -328,7 +328,7 @@ namespace CallCenterApi.DAL
328 328
                 strSql.Append(" top " + Top.ToString());
329 329
             }
330 330
             strSql.Append(" F_ExpandId,F_CustomerId,F_StrExpand1,F_StrExpand2,F_StrExpand3,F_StrExpand4,F_StrExpand5,F_StrExpand6,F_TypeExpand1,F_TypeExpand2,F_IntExpand1,F_IntExpand2,F_TimeExpand1,F_TimeExpand2,F_TextExpand1,F_TextExpand2 ");
331
-            strSql.Append(" FROM T_Cus_CustomerExpand ");
331
+            strSql.Append(" FROM T_Cus_CustomerExpand   WITH(NOLOCK) ");
332 332
             if (strWhere.Trim() != "")
333 333
             {
334 334
                 strSql.Append(" where " + strWhere);
@@ -343,7 +343,7 @@ namespace CallCenterApi.DAL
343 343
         public int GetRecordCount(string strWhere)
344 344
         {
345 345
             StringBuilder strSql = new StringBuilder();
346
-            strSql.Append("select count(1) FROM T_Cus_CustomerExpand ");
346
+            strSql.Append("select count(1) FROM T_Cus_CustomerExpand   WITH(NOLOCK) ");
347 347
             if (strWhere.Trim() != "")
348 348
             {
349 349
                 strSql.Append(" where " + strWhere);

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

@@ -23,7 +23,7 @@ namespace CallCenterApi.DAL
23 23
         public bool Exists(int F_CusFinId)
24 24
         {
25 25
             StringBuilder strSql = new StringBuilder();
26
-            strSql.Append("select count(1) from T_Cus_CustomerFinance");
26
+            strSql.Append("select count(1) from T_Cus_CustomerFinance  WITH(NOLOCK) ");
27 27
             strSql.Append(" where F_CusFinId=@F_CusFinId");
28 28
             SqlParameter[] parameters = {
29 29
                     new SqlParameter("@F_CusFinId", SqlDbType.Int,4)
@@ -283,7 +283,7 @@ namespace CallCenterApi.DAL
283 283
         {
284 284
 
285 285
             StringBuilder strSql = new StringBuilder();
286
-            strSql.Append("select  top 1 * from T_Cus_CustomerFinance ");
286
+            strSql.Append("select  top 1 * from T_Cus_CustomerFinance   WITH(NOLOCK) ");
287 287
             strSql.Append(" where F_CusFinId=@F_CusFinId");
288 288
             SqlParameter[] parameters = {
289 289
                     new SqlParameter("@F_CusFinId", SqlDbType.Int,4)
@@ -446,7 +446,7 @@ namespace CallCenterApi.DAL
446 446
         {
447 447
             StringBuilder strSql = new StringBuilder();
448 448
             strSql.Append("select * ");
449
-            strSql.Append(" FROM T_Cus_CustomerFinance ");
449
+            strSql.Append(" FROM T_Cus_CustomerFinance   WITH(NOLOCK) ");
450 450
             if (strWhere.Trim() != "")
451 451
             {
452 452
                 strSql.Append(" where " + strWhere);
@@ -466,7 +466,7 @@ namespace CallCenterApi.DAL
466 466
                 strSql.Append(" top " + Top.ToString());
467 467
             }
468 468
             strSql.Append(" * ");
469
-            strSql.Append(" FROM T_Cus_CustomerFinance ");
469
+            strSql.Append(" FROM T_Cus_CustomerFinance   WITH(NOLOCK) ");
470 470
             if (strWhere.Trim() != "")
471 471
             {
472 472
                 strSql.Append(" where " + strWhere);
@@ -481,7 +481,7 @@ namespace CallCenterApi.DAL
481 481
         public int GetRecordCount(string strWhere)
482 482
         {
483 483
             StringBuilder strSql = new StringBuilder();
484
-            strSql.Append("select count(1) FROM T_Cus_CustomerFinance ");
484
+            strSql.Append("select count(1) FROM T_Cus_CustomerFinance   WITH(NOLOCK) ");
485 485
             if (strWhere.Trim() != "")
486 486
             {
487 487
                 strSql.Append(" where " + strWhere);

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

@@ -23,7 +23,7 @@ namespace CallCenterApi.DAL
23 23
         public bool Exists(int F_CusFinLogId)
24 24
         {
25 25
             StringBuilder strSql = new StringBuilder();
26
-            strSql.Append("select count(1) from T_Cus_CustomerFinanceLog");
26
+            strSql.Append("select count(1) from T_Cus_CustomerFinanceLog  WITH(NOLOCK) ");
27 27
             strSql.Append(" where F_CusFinLogId=@F_CusFinLogId");
28 28
             SqlParameter[] parameters = {
29 29
                     new SqlParameter("@F_CusFinLogId", SqlDbType.Int,4)
@@ -286,7 +286,7 @@ namespace CallCenterApi.DAL
286 286
         {
287 287
 
288 288
             StringBuilder strSql = new StringBuilder();
289
-            strSql.Append("select  top 1 * from T_Cus_CustomerFinanceLog ");
289
+            strSql.Append("select  top 1 * from T_Cus_CustomerFinanceLog   WITH(NOLOCK) ");
290 290
             strSql.Append(" where F_CusFinLogId=@F_CusFinLogId");
291 291
             SqlParameter[] parameters = {
292 292
                     new SqlParameter("@F_CusFinLogId", SqlDbType.Int,4)
@@ -453,7 +453,7 @@ namespace CallCenterApi.DAL
453 453
         {
454 454
             StringBuilder strSql = new StringBuilder();
455 455
             strSql.Append("select * ");
456
-            strSql.Append(" FROM T_Cus_CustomerFinanceLog ");
456
+            strSql.Append(" FROM T_Cus_CustomerFinanceLog   WITH(NOLOCK) ");
457 457
             if (strWhere.Trim() != "")
458 458
             {
459 459
                 strSql.Append(" where " + strWhere);
@@ -473,7 +473,7 @@ namespace CallCenterApi.DAL
473 473
                 strSql.Append(" top " + Top.ToString());
474 474
             }
475 475
             strSql.Append(" * ");
476
-            strSql.Append(" FROM T_Cus_CustomerFinanceLog ");
476
+            strSql.Append(" FROM T_Cus_CustomerFinanceLog   WITH(NOLOCK)  ");
477 477
             if (strWhere.Trim() != "")
478 478
             {
479 479
                 strSql.Append(" where " + strWhere);
@@ -488,7 +488,7 @@ namespace CallCenterApi.DAL
488 488
         public int GetRecordCount(string strWhere)
489 489
         {
490 490
             StringBuilder strSql = new StringBuilder();
491
-            strSql.Append("select count(1) FROM T_Cus_CustomerFinanceLog ");
491
+            strSql.Append("select count(1) FROM T_Cus_CustomerFinanceLog   WITH(NOLOCK) ");
492 492
             if (strWhere.Trim() != "")
493 493
             {
494 494
                 strSql.Append(" where " + strWhere);

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

@@ -32,7 +32,7 @@ namespace CallCenterApi.DAL
32 32
         public bool Exists(int F_RegionId)
33 33
         {
34 34
             StringBuilder strSql = new StringBuilder();
35
-            strSql.Append("select count(1) from T_Cus_RegionCategory");
35
+            strSql.Append("select count(1) from T_Cus_RegionCategory  WITH(NOLOCK) ");
36 36
             strSql.Append(" where F_RegionId=@F_RegionId");
37 37
             SqlParameter[] parameters = {
38 38
                     new SqlParameter("@F_RegionId", SqlDbType.Int,4)
@@ -205,7 +205,7 @@ namespace CallCenterApi.DAL
205 205
         {
206 206
 
207 207
             StringBuilder strSql = new StringBuilder();
208
-            strSql.Append("select  top 1 F_RegionId,F_AreaId,F_RegionNumber,F_RegionName,F_Property,F_City,F_Sort,F_Layer,F_ParentId,F_CreateBy,F_CreateOn,F_ModifyBy,F_ModifyOn,F_DeleteFlag from T_Cus_RegionCategory ");
208
+            strSql.Append("select  top 1 F_RegionId,F_AreaId,F_RegionNumber,F_RegionName,F_Property,F_City,F_Sort,F_Layer,F_ParentId,F_CreateBy,F_CreateOn,F_ModifyBy,F_ModifyOn,F_DeleteFlag from T_Cus_RegionCategory   WITH(NOLOCK) ");
209 209
             strSql.Append(" where F_RegionId=@F_RegionId");
210 210
             SqlParameter[] parameters = {
211 211
                     new SqlParameter("@F_RegionId", SqlDbType.Int,4)
@@ -300,7 +300,7 @@ namespace CallCenterApi.DAL
300 300
         {
301 301
             StringBuilder strSql = new StringBuilder();
302 302
             strSql.Append("select F_RegionId,F_AreaId,F_RegionNumber,F_RegionName,F_Property,F_City,F_Sort,F_Layer,F_ParentId,F_CreateBy,F_CreateOn,F_ModifyBy,F_ModifyOn,F_DeleteFlag ");
303
-            strSql.Append(" FROM T_Cus_RegionCategory ");
303
+            strSql.Append(" FROM T_Cus_RegionCategory   WITH(NOLOCK) ");
304 304
             if (strWhere.Trim() != "")
305 305
             {
306 306
                 strSql.Append(" where " + strWhere);
@@ -320,7 +320,7 @@ namespace CallCenterApi.DAL
320 320
                 strSql.Append(" top " + Top.ToString());
321 321
             }
322 322
             strSql.Append(" F_RegionId,F_AreaId,F_RegionNumber,F_RegionName,F_Property,F_City,F_Sort,F_Layer,F_ParentId,F_CreateBy,F_CreateOn,F_ModifyBy,F_ModifyOn,F_DeleteFlag ");
323
-            strSql.Append(" FROM T_Cus_RegionCategory ");
323
+            strSql.Append(" FROM T_Cus_RegionCategory   WITH(NOLOCK) ");
324 324
             if (strWhere.Trim() != "")
325 325
             {
326 326
                 strSql.Append(" where " + strWhere);
@@ -335,7 +335,7 @@ namespace CallCenterApi.DAL
335 335
         public int GetRecordCount(string strWhere)
336 336
         {
337 337
             StringBuilder strSql = new StringBuilder();
338
-            strSql.Append("select count(1) FROM T_Cus_RegionCategory ");
338
+            strSql.Append("select count(1) FROM T_Cus_RegionCategory   WITH(NOLOCK) ");
339 339
             if (strWhere.Trim() != "")
340 340
             {
341 341
                 strSql.Append(" where " + strWhere);

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

@@ -32,7 +32,7 @@ namespace CallCenterApi.DAL
32 32
         public bool Exists(int RegionId, int UserId)
33 33
         {
34 34
             StringBuilder strSql = new StringBuilder();
35
-            strSql.Append("select count(1) from T_Cus_Region_UserAccount_Map");
35
+            strSql.Append("select count(1) from T_Cus_Region_UserAccount_Map  WITH(NOLOCK) ");
36 36
             strSql.Append(" where RegionId=@RegionId and UserId=@UserId ");
37 37
             SqlParameter[] parameters = {
38 38
                     new SqlParameter("@RegionId", SqlDbType.Int,4),
@@ -163,7 +163,7 @@ namespace CallCenterApi.DAL
163 163
         {
164 164
 
165 165
             StringBuilder strSql = new StringBuilder();
166
-            strSql.Append("select  top 1 RegionId,UserId,CreateBy,CreateDateTime from T_Cus_Region_UserAccount_Map ");
166
+            strSql.Append("select  top 1 RegionId,UserId,CreateBy,CreateDateTime from T_Cus_Region_UserAccount_Map   WITH(NOLOCK) ");
167 167
             strSql.Append(" where RegionId=@RegionId and UserId=@UserId ");
168 168
             SqlParameter[] parameters = {
169 169
                     new SqlParameter("@RegionId", SqlDbType.Int,4),
@@ -219,7 +219,7 @@ namespace CallCenterApi.DAL
219 219
         {
220 220
             StringBuilder strSql = new StringBuilder();
221 221
             strSql.Append("select RegionId,UserId,CreateBy,CreateDateTime ");
222
-            strSql.Append(" FROM T_Cus_Region_UserAccount_Map ");
222
+            strSql.Append(" FROM T_Cus_Region_UserAccount_Map   WITH(NOLOCK) ");
223 223
             if (strWhere.Trim() != "")
224 224
             {
225 225
                 strSql.Append(" where " + strWhere);
@@ -239,7 +239,7 @@ namespace CallCenterApi.DAL
239 239
                 strSql.Append(" top " + Top.ToString());
240 240
             }
241 241
             strSql.Append(" RegionId,UserId,CreateBy,CreateDateTime ");
242
-            strSql.Append(" FROM T_Cus_Region_UserAccount_Map ");
242
+            strSql.Append(" FROM T_Cus_Region_UserAccount_Map   WITH(NOLOCK) ");
243 243
             if (strWhere.Trim() != "")
244 244
             {
245 245
                 strSql.Append(" where " + strWhere);
@@ -254,7 +254,7 @@ namespace CallCenterApi.DAL
254 254
         public int GetRecordCount(string strWhere)
255 255
         {
256 256
             StringBuilder strSql = new StringBuilder();
257
-            strSql.Append("select count(1) FROM T_Cus_Region_UserAccount_Map ");
257
+            strSql.Append("select count(1) FROM T_Cus_Region_UserAccount_Map   WITH(NOLOCK) ");
258 258
             if (strWhere.Trim() != "")
259 259
             {
260 260
                 strSql.Append(" where " + strWhere);

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

@@ -20,7 +20,7 @@ namespace CallCenterApi.DAL
20 20
         public bool Exists(int ID)
21 21
         {
22 22
             StringBuilder strSql = new StringBuilder();
23
-            strSql.Append("select count(1) from T_Msg_List");
23
+            strSql.Append("select count(1) from T_Msg_List   WITH(NOLOCK) ");
24 24
             strSql.Append(" where ID=@ID");
25 25
             SqlParameter[] parameters = {
26 26
                     new SqlParameter("@ID", SqlDbType.Int,4)
@@ -188,7 +188,7 @@ namespace CallCenterApi.DAL
188 188
         {
189 189
 
190 190
             StringBuilder strSql = new StringBuilder();
191
-            strSql.Append("select  top 1 ID,Type,Detail,State,ToUser,ToID,Remark,CreateUser,CreateDate,ReadDate,IsDel,DelUser,DelDate from T_Msg_List ");
191
+            strSql.Append("select  top 1 ID,Type,Detail,State,ToUser,ToID,Remark,CreateUser,CreateDate,ReadDate,IsDel,DelUser,DelDate from T_Msg_List   WITH(NOLOCK) ");
192 192
             strSql.Append(" where ID=@ID");
193 193
             SqlParameter[] parameters = {
194 194
                     new SqlParameter("@ID", SqlDbType.Int,4)
@@ -279,7 +279,7 @@ namespace CallCenterApi.DAL
279 279
         {
280 280
             StringBuilder strSql = new StringBuilder();
281 281
             strSql.Append("select ID,Type,Detail,State,ToUser,ToID,Remark,CreateUser,CreateDate,ReadDate,IsDel,DelUser,DelDate ");
282
-            strSql.Append(" FROM T_Msg_List ");
282
+            strSql.Append(" FROM T_Msg_List   WITH(NOLOCK) ");
283 283
             if (strWhere.Trim() != "")
284 284
             {
285 285
                 strSql.Append(" where " + strWhere);
@@ -299,7 +299,7 @@ namespace CallCenterApi.DAL
299 299
                 strSql.Append(" top " + Top.ToString());
300 300
             }
301 301
             strSql.Append(" ID,Type,Detail,State,ToUser,ToID,Remark,CreateUser,CreateDate,ReadDate,IsDel,DelUser,DelDate ");
302
-            strSql.Append(" FROM T_Msg_List ");
302
+            strSql.Append(" FROM T_Msg_List   WITH(NOLOCK) ");
303 303
             if (strWhere.Trim() != "")
304 304
             {
305 305
                 strSql.Append(" where " + strWhere);
@@ -314,7 +314,7 @@ namespace CallCenterApi.DAL
314 314
         public int GetRecordCount(string strWhere)
315 315
         {
316 316
             StringBuilder strSql = new StringBuilder();
317
-            strSql.Append("select count(1) FROM T_Msg_List ");
317
+            strSql.Append("select count(1) FROM T_Msg_List   WITH(NOLOCK) ");
318 318
             if (strWhere.Trim() != "")
319 319
             {
320 320
                 strSql.Append(" where " + strWhere);

+ 4 - 4
codegit/CallCenterApi/CallCenterApi.DAL/T_Msg_NoticeInfo.cs

@@ -168,7 +168,7 @@ namespace CallCenterApi.DAL
168 168
         {
169 169
 
170 170
             StringBuilder strSql = new StringBuilder();
171
-            strSql.Append("select  top 1 * from T_Msg_NoticeInfo ");
171
+            strSql.Append("select  top 1 * from T_Msg_NoticeInfo   WITH(NOLOCK) ");
172 172
             strSql.Append(" where F_NoticeId=@F_NoticeId");
173 173
             SqlParameter[] parameters = {
174 174
                     new SqlParameter("@F_NoticeId", SqlDbType.Int,4)
@@ -252,7 +252,7 @@ namespace CallCenterApi.DAL
252 252
         {
253 253
             StringBuilder strSql = new StringBuilder();
254 254
             strSql.Append("select * ");
255
-            strSql.Append(" FROM T_Msg_NoticeInfo ");
255
+            strSql.Append(" FROM T_Msg_NoticeInfo   WITH(NOLOCK) ");
256 256
             if (strWhere.Trim() != "")
257 257
             {
258 258
                 strSql.Append(" where " + strWhere);
@@ -272,7 +272,7 @@ namespace CallCenterApi.DAL
272 272
                 strSql.Append(" top " + Top.ToString());
273 273
             }
274 274
             strSql.Append(" * ");
275
-            strSql.Append(" FROM T_Msg_NoticeInfo ");
275
+            strSql.Append(" FROM T_Msg_NoticeInfo   WITH(NOLOCK) ");
276 276
             if (strWhere.Trim() != "")
277 277
             {
278 278
                 strSql.Append(" where " + strWhere);
@@ -287,7 +287,7 @@ namespace CallCenterApi.DAL
287 287
         public int GetRecordCount(string strWhere)
288 288
         {
289 289
             StringBuilder strSql = new StringBuilder();
290
-            strSql.Append("select count(1) FROM T_Msg_NoticeInfo ");
290
+            strSql.Append("select count(1) FROM T_Msg_NoticeInfo   WITH(NOLOCK) ");
291 291
             if (strWhere.Trim() != "")
292 292
             {
293 293
                 strSql.Append(" where " + strWhere);

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

@@ -23,7 +23,7 @@ namespace CallCenterApi.DAL
23 23
         public bool Exists(int F_IndexId)
24 24
         {
25 25
             StringBuilder strSql = new StringBuilder();
26
-            strSql.Append("select count(1) from T_QC_IndexBase");
26
+            strSql.Append("select count(1) from T_QC_IndexBase  WITH(NOLOCK) ");
27 27
             strSql.Append(" where F_IndexId=@F_IndexId");
28 28
             SqlParameter[] parameters = {
29 29
                     new SqlParameter("@F_IndexId", SqlDbType.Int,4)
@@ -196,7 +196,7 @@ namespace CallCenterApi.DAL
196 196
         {
197 197
 
198 198
             StringBuilder strSql = new StringBuilder();
199
-            strSql.Append("select  top 1 * from vw_QC_IndexBase ");
199
+            strSql.Append("select  top 1 * from vw_QC_IndexBase   WITH(NOLOCK) ");
200 200
             strSql.Append(" where F_IndexId=@F_IndexId");
201 201
             SqlParameter[] parameters = {
202 202
                     new SqlParameter("@F_IndexId", SqlDbType.Int,4)
@@ -282,7 +282,7 @@ namespace CallCenterApi.DAL
282 282
         {
283 283
             StringBuilder strSql = new StringBuilder();
284 284
             strSql.Append("select F_IndexId,F_CategoryId,F_Type,F_Score,F_Title,F_Content,F_Remark,F_CreateOn,F_CreateBy,F_ModifyOn,F_ModifyBy,F_DeleteFlag,F_SortModel,F_Sort ");
285
-            strSql.Append(" FROM T_QC_IndexBase ");
285
+            strSql.Append(" FROM T_QC_IndexBase   WITH(NOLOCK) ");
286 286
             if (strWhere.Trim() != "")
287 287
             {
288 288
                 strSql.Append(" where " + strWhere);
@@ -302,7 +302,7 @@ namespace CallCenterApi.DAL
302 302
                 strSql.Append(" top " + Top.ToString());
303 303
             }
304 304
             strSql.Append(" F_IndexId,F_CategoryId,F_Type,F_Score,F_Title,F_Content,F_Remark,F_CreateOn,F_CreateBy,F_ModifyOn,F_ModifyBy,F_DeleteFlag,F_SortModel,F_Sort ");
305
-            strSql.Append(" FROM T_QC_IndexBase ");
305
+            strSql.Append(" FROM T_QC_IndexBase   WITH(NOLOCK) ");
306 306
             if (strWhere.Trim() != "")
307 307
             {
308 308
                 strSql.Append(" where " + strWhere);
@@ -317,7 +317,7 @@ namespace CallCenterApi.DAL
317 317
         public int GetRecordCount(string strWhere)
318 318
         {
319 319
             StringBuilder strSql = new StringBuilder();
320
-            strSql.Append("select count(1) FROM T_QC_IndexBase ");
320
+            strSql.Append("select count(1) FROM T_QC_IndexBase   WITH(NOLOCK) ");
321 321
             if (strWhere.Trim() != "")
322 322
             {
323 323
                 strSql.Append(" where " + strWhere);

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

@@ -23,7 +23,7 @@ namespace CallCenterApi.DAL
23 23
         public bool Exists(int F_CategoryId)
24 24
         {
25 25
             StringBuilder strSql = new StringBuilder();
26
-            strSql.Append("select count(1) from T_QC_IndexCategory");
26
+            strSql.Append("select count(1) from T_QC_IndexCategory  WITH(NOLOCK) ");
27 27
             strSql.Append(" where F_CategoryId=@F_CategoryId");
28 28
             SqlParameter[] parameters = {
29 29
                     new SqlParameter("@F_CategoryId", SqlDbType.Int,4)
@@ -201,7 +201,7 @@ namespace CallCenterApi.DAL
201 201
         {
202 202
 
203 203
             StringBuilder strSql = new StringBuilder();
204
-            strSql.Append("select  top 1 F_CategoryId,F_CategoryNumber,F_CategoryName,F_CategoryEName,F_Layer,F_ParentId,F_CategoryType,F_CanDelete,F_IsCommon,F_Sort,F_Expand1,F_Expand2,F_CreateOn,F_CreateBy,F_DeleteFlag from T_QC_IndexCategory ");
204
+            strSql.Append("select  top 1 F_CategoryId,F_CategoryNumber,F_CategoryName,F_CategoryEName,F_Layer,F_ParentId,F_CategoryType,F_CanDelete,F_IsCommon,F_Sort,F_Expand1,F_Expand2,F_CreateOn,F_CreateBy,F_DeleteFlag from T_QC_IndexCategory   WITH(NOLOCK) ");
205 205
             strSql.Append(" where F_CategoryId=@F_CategoryId");
206 206
             SqlParameter[] parameters = {
207 207
                     new SqlParameter("@F_CategoryId", SqlDbType.Int,4)
@@ -287,7 +287,7 @@ namespace CallCenterApi.DAL
287 287
         {
288 288
             StringBuilder strSql = new StringBuilder();
289 289
             strSql.Append("select F_CategoryId,F_CategoryNumber,F_CategoryName,F_CategoryEName,F_Layer,F_ParentId,F_CategoryType,F_CanDelete,F_IsCommon,F_Sort,F_Expand1,F_Expand2,F_CreateOn,F_CreateBy,F_DeleteFlag ");
290
-            strSql.Append(" FROM T_QC_IndexCategory ");
290
+            strSql.Append(" FROM T_QC_IndexCategory   WITH(NOLOCK) ");
291 291
             if (strWhere.Trim() != "")
292 292
             {
293 293
                 strSql.Append(" where " + strWhere);
@@ -307,7 +307,7 @@ namespace CallCenterApi.DAL
307 307
                 strSql.Append(" top " + Top.ToString());
308 308
             }
309 309
             strSql.Append(" F_CategoryId,F_CategoryNumber,F_CategoryName,F_CategoryEName,F_Layer,F_ParentId,F_CategoryType,F_CanDelete,F_IsCommon,F_Sort,F_Expand1,F_Expand2,F_CreateOn,F_CreateBy,F_DeleteFlag ");
310
-            strSql.Append(" FROM T_QC_IndexCategory ");
310
+            strSql.Append(" FROM T_QC_IndexCategory   WITH(NOLOCK) ");
311 311
             if (strWhere.Trim() != "")
312 312
             {
313 313
                 strSql.Append(" where " + strWhere);
@@ -322,7 +322,7 @@ namespace CallCenterApi.DAL
322 322
         public int GetRecordCount(string strWhere)
323 323
         {
324 324
             StringBuilder strSql = new StringBuilder();
325
-            strSql.Append("select count(1) FROM T_QC_IndexCategory ");
325
+            strSql.Append("select count(1) FROM T_QC_IndexCategory   WITH(NOLOCK) ");
326 326
             if (strWhere.Trim() != "")
327 327
             {
328 328
                 strSql.Append(" where " + strWhere);

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

@@ -23,7 +23,7 @@ namespace CallCenterApi.DAL
23 23
         public bool Exists(int F_Id)
24 24
         {
25 25
             StringBuilder strSql = new StringBuilder();
26
-            strSql.Append("select count(1) from T_QC_IndexRes");
26
+            strSql.Append("select count(1) from T_QC_IndexRes  WITH(NOLOCK) ");
27 27
             strSql.Append(" where F_Id=@F_Id");
28 28
             SqlParameter[] parameters = {
29 29
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
@@ -156,7 +156,7 @@ namespace CallCenterApi.DAL
156 156
         {
157 157
 
158 158
             StringBuilder strSql = new StringBuilder();
159
-            strSql.Append("select  top 1 F_Id,CallRecordsId,F_IndexId,F_Score,F_QCScore,F_Remark from T_QC_IndexRes ");
159
+            strSql.Append("select  top 1 F_Id,CallRecordsId,F_IndexId,F_Score,F_QCScore,F_Remark from T_QC_IndexRes   WITH(NOLOCK) ");
160 160
             strSql.Append(" where F_Id=@F_Id");
161 161
             SqlParameter[] parameters = {
162 162
                     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,CallRecordsId,F_IndexId,F_Score,F_QCScore,F_Remark ");
209
-            strSql.Append(" FROM T_QC_IndexRes ");
209
+            strSql.Append(" FROM T_QC_IndexRes   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,CallRecordsId,F_IndexId,F_Score,F_QCScore,F_Remark ");
229
-            strSql.Append(" FROM T_QC_IndexRes ");
229
+            strSql.Append(" FROM T_QC_IndexRes   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_QC_IndexRes ");
244
+            strSql.Append("select count(1) FROM T_QC_IndexRes   WITH(NOLOCK) ");
245 245
             if (strWhere.Trim() != "")
246 246
             {
247 247
                 strSql.Append(" where " + strWhere);

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

@@ -24,7 +24,7 @@ namespace CallCenterApi.DAL
24 24
         public bool Exists(long Id)
25 25
         {
26 26
             StringBuilder strSql = new StringBuilder();
27
-            strSql.Append("select count(1) from T_Que_Question_Answer");
27
+            strSql.Append("select count(1) from T_Que_Question_Answer  WITH(NOLOCK) ");
28 28
             strSql.Append(" where Id=@Id");
29 29
             SqlParameter[] parameters = {
30 30
                     new SqlParameter("@Id", SqlDbType.BigInt)
@@ -167,7 +167,7 @@ namespace CallCenterApi.DAL
167 167
         {
168 168
 
169 169
             StringBuilder strSql = new StringBuilder();
170
-            strSql.Append("select  top 1 Id,Title,ParendId,Layer,Score,OrderBy,IsDelete,Remark from T_Que_Question_Answer ");
170
+            strSql.Append("select  top 1 Id,Title,ParendId,Layer,Score,OrderBy,IsDelete,Remark from T_Que_Question_Answer   WITH(NOLOCK) ");
171 171
             strSql.Append(" where Id=@Id");
172 172
             SqlParameter[] parameters = {
173 173
                     new SqlParameter("@Id", SqlDbType.BigInt)
@@ -238,7 +238,7 @@ namespace CallCenterApi.DAL
238 238
         {
239 239
             StringBuilder strSql = new StringBuilder();
240 240
             strSql.Append("select Id,Title,ParendId,Layer,Score,OrderBy,IsDelete,Remark ");
241
-            strSql.Append(" FROM T_Que_Question_Answer ");
241
+            strSql.Append(" FROM T_Que_Question_Answer   WITH(NOLOCK) ");
242 242
             if (strWhere.Trim() != "")
243 243
             {
244 244
                 strSql.Append(" where " + strWhere);
@@ -258,7 +258,7 @@ namespace CallCenterApi.DAL
258 258
                 strSql.Append(" top " + Top.ToString());
259 259
             }
260 260
             strSql.Append(" Id,Title,ParendId,Layer,Score,OrderBy,IsDelete,Remark ");
261
-            strSql.Append(" FROM T_Que_Question_Answer ");
261
+            strSql.Append(" FROM T_Que_Question_Answer   WITH(NOLOCK) ");
262 262
             if (strWhere.Trim() != "")
263 263
             {
264 264
                 strSql.Append(" where " + strWhere);
@@ -273,7 +273,7 @@ namespace CallCenterApi.DAL
273 273
         public int GetRecordCount(string strWhere)
274 274
         {
275 275
             StringBuilder strSql = new StringBuilder();
276
-            strSql.Append("select count(1) FROM T_Que_Question_Answer ");
276
+            strSql.Append("select count(1) FROM T_Que_Question_Answer   WITH(NOLOCK) ");
277 277
             if (strWhere.Trim() != "")
278 278
             {
279 279
                 strSql.Append(" where " + strWhere);

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

@@ -24,7 +24,7 @@ namespace CallCenterApi.DAL
24 24
         public bool Exists(long Id)
25 25
         {
26 26
             StringBuilder strSql = new StringBuilder();
27
-            strSql.Append("select count(1) from T_Que_Question_Map");
27
+            strSql.Append("select count(1) from T_Que_Question_Map  WITH(NOLOCK) ");
28 28
             strSql.Append(" where Id=@Id");
29 29
             SqlParameter[] parameters = {
30 30
                     new SqlParameter("@Id", SqlDbType.BigInt)
@@ -197,7 +197,7 @@ namespace CallCenterApi.DAL
197 197
         {
198 198
 
199 199
             StringBuilder strSql = new StringBuilder();
200
-            strSql.Append("select  top 1 Id,WorkOrderId,QuestionId,TotalScore,Score,AnswersTitle,QuestionIId,CreateBy,CreateTime from T_Que_Question_Map ");
200
+            strSql.Append("select  top 1 Id,WorkOrderId,QuestionId,TotalScore,Score,AnswersTitle,QuestionIId,CreateBy,CreateTime from T_Que_Question_Map   WITH(NOLOCK) ");
201 201
             strSql.Append(" where Id=@Id");
202 202
             SqlParameter[] parameters = {
203 203
                     new SqlParameter("@Id", SqlDbType.BigInt)
@@ -272,7 +272,7 @@ namespace CallCenterApi.DAL
272 272
         {
273 273
             StringBuilder strSql = new StringBuilder();
274 274
             strSql.Append("select Id,WorkOrderId,QuestionId,TotalScore,Score,AnswersTitle,QuestionIId,CreateBy,CreateTime ");
275
-            strSql.Append(" FROM T_Que_Question_Map ");
275
+            strSql.Append(" FROM T_Que_Question_Map   WITH(NOLOCK) ");
276 276
             if (strWhere.Trim() != "")
277 277
             {
278 278
                 strSql.Append(" where " + strWhere);
@@ -292,7 +292,7 @@ namespace CallCenterApi.DAL
292 292
                 strSql.Append(" top " + Top.ToString());
293 293
             }
294 294
             strSql.Append(" Id,WorkOrderId,QuestionId,TotalScore,Score,AnswersTitle,QuestionIId,CreateBy,CreateTime ");
295
-            strSql.Append(" FROM T_Que_Question_Map ");
295
+            strSql.Append(" FROM T_Que_Question_Map   WITH(NOLOCK) ");
296 296
             if (strWhere.Trim() != "")
297 297
             {
298 298
                 strSql.Append(" where " + strWhere);
@@ -307,7 +307,7 @@ namespace CallCenterApi.DAL
307 307
         public int GetRecordCount(string strWhere)
308 308
         {
309 309
             StringBuilder strSql = new StringBuilder();
310
-            strSql.Append("select count(1) FROM T_Que_Question_Map ");
310
+            strSql.Append("select count(1) FROM T_Que_Question_Map   WITH(NOLOCK) ");
311 311
             if (strWhere.Trim() != "")
312 312
             {
313 313
                 strSql.Append(" where " + strWhere);

+ 4 - 4
codegit/CallCenterApi/CallCenterApi.DAL/T_RegionCategory.cs

@@ -22,7 +22,7 @@ namespace CallCenterApi.DAL
22 22
         public bool Exists(int F_RegionId)
23 23
         {
24 24
             StringBuilder strSql = new StringBuilder();
25
-            strSql.Append("select count(1) from T_RegionCategory");
25
+            strSql.Append("select count(1) from T_RegionCategory  WITH(NOLOCK) ");
26 26
             strSql.Append(" where F_RegionId=@F_RegionId");
27 27
             SqlParameter[] parameters = {
28 28
 					new SqlParameter("@F_RegionId", SqlDbType.Int,4)
@@ -190,7 +190,7 @@ namespace CallCenterApi.DAL
190 190
         {
191 191
 
192 192
             StringBuilder strSql = new StringBuilder();
193
-            strSql.Append("select  top 1 F_RegionId,F_AreaId,F_RegionNumber,F_RegionName,F_RegionEName,F_Sort,F_Layer,F_ParentId,F_CreateBy,F_CreateOn,F_ModifyBy,F_ModifyOn,F_DeleteFlag from T_RegionCategory ");
193
+            strSql.Append("select  top 1 F_RegionId,F_AreaId,F_RegionNumber,F_RegionName,F_RegionEName,F_Sort,F_Layer,F_ParentId,F_CreateBy,F_CreateOn,F_ModifyBy,F_ModifyOn,F_DeleteFlag from T_RegionCategory   WITH(NOLOCK) ");
194 194
             strSql.Append(" where F_RegionId=@F_RegionId");
195 195
             SqlParameter[] parameters = {
196 196
 					new SqlParameter("@F_RegionId", SqlDbType.Int,4)
@@ -268,7 +268,7 @@ namespace CallCenterApi.DAL
268 268
         {
269 269
             StringBuilder strSql = new StringBuilder();
270 270
             strSql.Append("select * ");
271
-            strSql.Append(" FROM T_RegionCategory ");
271
+            strSql.Append(" FROM T_RegionCategory   WITH(NOLOCK) ");
272 272
             if (strWhere.Trim() != "")
273 273
             {
274 274
                 strSql.Append(" where " + strWhere);
@@ -288,7 +288,7 @@ namespace CallCenterApi.DAL
288 288
                 strSql.Append(" top " + Top.ToString());
289 289
             }
290 290
             strSql.Append(" * ");
291
-            strSql.Append(" FROM T_RegionCategory ");
291
+            strSql.Append(" FROM T_RegionCategory   WITH(NOLOCK) ");
292 292
             if (strWhere.Trim() != "")
293 293
             {
294 294
                 strSql.Append(" where " + strWhere);

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

@@ -32,7 +32,7 @@ namespace CallCenterApi.DAL
32 32
         public bool Exists(int F_CategoryId)
33 33
         {
34 34
             StringBuilder strSql = new StringBuilder();
35
-            strSql.Append("select count(1) from T_RepositoryCategory");
35
+            strSql.Append("select count(1) from T_RepositoryCategory  WITH(NOLOCK) ");
36 36
             strSql.Append(" where F_CategoryId=@F_CategoryId");
37 37
             SqlParameter[] parameters = {
38 38
                     new SqlParameter("@F_CategoryId", SqlDbType.Int,4)
@@ -211,7 +211,7 @@ namespace CallCenterApi.DAL
211 211
         {
212 212
 
213 213
             StringBuilder strSql = new StringBuilder();
214
-            strSql.Append("select  top 1 F_CategoryId,F_CategoryNumber,F_CategoryName,F_CategoryEName,F_Layer,F_ParentId,F_CategoryType,F_CanDelete,F_IsCommon,F_Sort,F_Expand1,F_Expand2,F_CreateOn,F_CreateBy,F_DeleteFlag from T_RepositoryCategory ");
214
+            strSql.Append("select  top 1 F_CategoryId,F_CategoryNumber,F_CategoryName,F_CategoryEName,F_Layer,F_ParentId,F_CategoryType,F_CanDelete,F_IsCommon,F_Sort,F_Expand1,F_Expand2,F_CreateOn,F_CreateBy,F_DeleteFlag from T_RepositoryCategory   WITH(NOLOCK) ");
215 215
             strSql.Append(" where F_CategoryId=@F_CategoryId");
216 216
             SqlParameter[] parameters = {
217 217
                     new SqlParameter("@F_CategoryId", SqlDbType.Int,4)
@@ -310,7 +310,7 @@ namespace CallCenterApi.DAL
310 310
         {
311 311
             StringBuilder strSql = new StringBuilder();
312 312
             strSql.Append("select F_CategoryId,F_CategoryNumber,F_CategoryName,F_CategoryEName,F_Layer,F_ParentId,F_CategoryType,F_CanDelete,F_IsCommon,F_Sort,F_Expand1,F_Expand2,F_CreateOn,F_CreateBy,F_DeleteFlag ");
313
-            strSql.Append(" FROM T_RepositoryCategory ");
313
+            strSql.Append(" FROM T_RepositoryCategory   WITH(NOLOCK) ");
314 314
             if (strWhere.Trim() != "")
315 315
             {
316 316
                 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_CategoryId,F_CategoryNumber,F_CategoryName,F_CategoryEName,F_Layer,F_ParentId,F_CategoryType,F_CanDelete,F_IsCommon,F_Sort,F_Expand1,F_Expand2,F_CreateOn,F_CreateBy,F_DeleteFlag ");
333
-            strSql.Append(" FROM T_RepositoryCategory ");
333
+            strSql.Append(" FROM T_RepositoryCategory   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_RepositoryCategory ");
348
+            strSql.Append("select count(1) FROM T_RepositoryCategory   WITH(NOLOCK) ");
349 349
             if (strWhere.Trim() != "")
350 350
             {
351 351
                 strSql.Append(" where " + strWhere);

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

@@ -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);

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

@@ -20,7 +20,7 @@ namespace CallCenterApi.DAL
20 20
         public bool Exists(int ID)
21 21
         {
22 22
             StringBuilder strSql = new StringBuilder();
23
-            strSql.Append("select count(1) from T_SMS_List");
23
+            strSql.Append("select count(1) from T_SMS_List  WITH(NOLOCK) ");
24 24
             strSql.Append(" where ID=@ID");
25 25
             SqlParameter[] parameters = {
26 26
                     new SqlParameter("@ID", SqlDbType.Int,4)
@@ -193,7 +193,7 @@ namespace CallCenterApi.DAL
193 193
         {
194 194
 
195 195
             StringBuilder strSql = new StringBuilder();
196
-            strSql.Append("select  top 1 ID,Type,SendWay,DSSendTime,SendTime,IsSend,Telephone,Detail,MBID,MID,MName,CreateDate,BatchNo from T_SMS_List ");
196
+            strSql.Append("select  top 1 ID,Type,SendWay,DSSendTime,SendTime,IsSend,Telephone,Detail,MBID,MID,MName,CreateDate,BatchNo from T_SMS_List   WITH(NOLOCK) ");
197 197
             strSql.Append(" where ID=@ID");
198 198
             SqlParameter[] parameters = {
199 199
                     new SqlParameter("@ID", SqlDbType.Int,4)
@@ -288,7 +288,7 @@ namespace CallCenterApi.DAL
288 288
         {
289 289
             StringBuilder strSql = new StringBuilder();
290 290
             strSql.Append("select ID,Type,SendWay,DSSendTime,SendTime,IsSend,Telephone,F_IsDelete,Detail,MBID,MID,MName,CreateDate,BatchNo ");
291
-            strSql.Append(" FROM T_SMS_List ");
291
+            strSql.Append(" FROM T_SMS_List   WITH(NOLOCK) ");
292 292
             if (strWhere.Trim() != "")
293 293
             {
294 294
                 strSql.Append(" where " + strWhere);
@@ -308,7 +308,7 @@ namespace CallCenterApi.DAL
308 308
                 strSql.Append(" top " + Top.ToString());
309 309
             }
310 310
             strSql.Append(" ID,Type,SendWay,DSSendTime,SendTime,IsSend,Telephone,Detail,MBID,MID,MName,CreateDate,BatchNo ");
311
-            strSql.Append(" FROM T_SMS_List ");
311
+            strSql.Append(" FROM T_SMS_List   WITH(NOLOCK) ");
312 312
             if (strWhere.Trim() != "")
313 313
             {
314 314
                 strSql.Append(" where " + strWhere);
@@ -323,7 +323,7 @@ namespace CallCenterApi.DAL
323 323
         public int GetRecordCount(string strWhere)
324 324
         {
325 325
             StringBuilder strSql = new StringBuilder();
326
-            strSql.Append("select count(1) FROM T_SMS_List ");
326
+            strSql.Append("select count(1) FROM T_SMS_List   WITH(NOLOCK) ");
327 327
             if (strWhere.Trim() != "")
328 328
             {
329 329
                 strSql.Append(" where " + strWhere);

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

@@ -18,7 +18,7 @@ namespace CallCenterApi.DAL
18 18
         public bool Exists(int ID)
19 19
         {
20 20
             StringBuilder strSql = new StringBuilder();
21
-            strSql.Append("select count(1) from T_SMS_Receive ");
21
+            strSql.Append("select count(1) from T_SMS_Receive   WITH(NOLOCK) ");
22 22
 
23 23
             strSql.Append(" where ");
24 24
             strSql.Append(" ID = @ID  ");
@@ -169,7 +169,7 @@ namespace CallCenterApi.DAL
169 169
 
170 170
             StringBuilder strSql = new StringBuilder();
171 171
             strSql.Append("select ID, Telephone, Detail, State, CreateDate  ");
172
-            strSql.Append("  from T_SMS_Receive ");
172
+            strSql.Append("  from T_SMS_Receive   WITH(NOLOCK) ");
173 173
 
174 174
             strSql.Append(" where ID=@ID");
175 175
             SqlParameter[] parameters = {
@@ -214,7 +214,7 @@ namespace CallCenterApi.DAL
214 214
         {
215 215
             StringBuilder strSql = new StringBuilder();
216 216
             strSql.Append("select * ");
217
-            strSql.Append(" FROM T_SMS_Receive ");
217
+            strSql.Append(" FROM T_SMS_Receive   WITH(NOLOCK) ");
218 218
 
219 219
             if (strWhere.Trim() != "")
220 220
             {
@@ -235,7 +235,7 @@ namespace CallCenterApi.DAL
235 235
                 strSql.Append(" top " + Top.ToString());
236 236
             }
237 237
             strSql.Append(" * ");
238
-            strSql.Append(" FROM T_SMS_Receive ");
238
+            strSql.Append(" FROM T_SMS_Receive   WITH(NOLOCK) ");
239 239
 
240 240
             if (strWhere.Trim() != "")
241 241
             {
@@ -254,7 +254,7 @@ namespace CallCenterApi.DAL
254 254
         public int GetRecordCount(string strWhere)
255 255
         {
256 256
             StringBuilder strSql = new StringBuilder();
257
-            strSql.Append("select count(1) FROM T_SMS_Receive ");
257
+            strSql.Append("select count(1) FROM T_SMS_Receive   WITH(NOLOCK) ");
258 258
             if (strWhere.Trim() != "")
259 259
             {
260 260
                 strSql.Append(" where " + strWhere);

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

@@ -24,7 +24,7 @@ namespace CallCenterApi.DAL
24 24
         public bool Exists(int SMSID)
25 25
         {
26 26
             StringBuilder strSql = new StringBuilder();
27
-            strSql.Append("select count(1) from T_SMS_RecvSMS");
27
+            strSql.Append("select count(1) from T_SMS_RecvSMS  WITH(NOLOCK) ");
28 28
             strSql.Append(" where ");
29 29
             strSql.Append(" SMSID = @SMSID  ");
30 30
             SqlParameter[] parameters = {
@@ -191,7 +191,7 @@ namespace CallCenterApi.DAL
191 191
 
192 192
             StringBuilder strSql = new StringBuilder();
193 193
             strSql.Append("select SMSID, F_CreateDate, CallerNum, Content, RecvTime, F_UserID, F_CustomerID, F_Name, State  ");
194
-            strSql.Append("  from T_SMS_RecvSMS ");
194
+            strSql.Append("  from T_SMS_RecvSMS   WITH(NOLOCK) ");
195 195
             strSql.Append(" where SMSID=@SMSID");
196 196
             SqlParameter[] parameters = {
197 197
                     new SqlParameter("@SMSID", SqlDbType.Int,4)
@@ -248,7 +248,7 @@ namespace CallCenterApi.DAL
248 248
         {
249 249
             StringBuilder strSql = new StringBuilder();
250 250
             strSql.Append("select * ");
251
-            strSql.Append(" FROM T_SMS_RecvSMS ");
251
+            strSql.Append(" FROM T_SMS_RecvSMS   WITH(NOLOCK) ");
252 252
             if (strWhere.Trim() != "")
253 253
             {
254 254
                 strSql.Append(" where " + strWhere);
@@ -268,7 +268,7 @@ namespace CallCenterApi.DAL
268 268
                 strSql.Append(" top " + Top.ToString());
269 269
             }
270 270
             strSql.Append(" * ");
271
-            strSql.Append(" FROM T_SMS_RecvSMS ");
271
+            strSql.Append(" FROM T_SMS_RecvSMS   WITH(NOLOCK) ");
272 272
             if (strWhere.Trim() != "")
273 273
             {
274 274
                 strSql.Append(" where " + strWhere);
@@ -283,7 +283,7 @@ namespace CallCenterApi.DAL
283 283
         public int GetRecordCount(string strWhere)
284 284
         {
285 285
             StringBuilder strSql = new StringBuilder();
286
-            strSql.Append("select count(1) FROM T_SMS_RecvSMS ");
286
+            strSql.Append("select count(1) FROM T_SMS_RecvSMS   WITH(NOLOCK) ");
287 287
             if (strWhere.Trim() != "")
288 288
             {
289 289
                 strSql.Append(" where " + strWhere);

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

@@ -24,7 +24,7 @@ namespace CallCenterApi.DAL
24 24
         public bool Exists(int SMSID)
25 25
         {
26 26
             StringBuilder strSql = new StringBuilder();
27
-            strSql.Append("select count(1) from T_SMS_SendSMSTask");
27
+            strSql.Append("select count(1) from T_SMS_SendSMSTask  WITH(NOLOCK) ");
28 28
             strSql.Append(" where ");
29 29
             strSql.Append(" SMSID = @SMSID  ");
30 30
             SqlParameter[] parameters = {
@@ -226,7 +226,7 @@ namespace CallCenterApi.DAL
226 226
 
227 227
             StringBuilder strSql = new StringBuilder();
228 228
             strSql.Append("select SMSID, Info, F_UserID, F_CustomerID, F_Name, F_CreateDate, SignName, TempCode, Name, StartTime, EndTime, State, PeriodStartTime, PeriodEndTime, PeriodStartTime1, PeriodEndTime1  ");
229
-            strSql.Append("  from T_SMS_SendSMSTask ");
229
+            strSql.Append("  from T_SMS_SendSMSTask   WITH(NOLOCK) ");
230 230
             strSql.Append(" where SMSID=@SMSID");
231 231
             SqlParameter[] parameters = {
232 232
                     new SqlParameter("@SMSID", SqlDbType.Int,4)
@@ -293,7 +293,7 @@ namespace CallCenterApi.DAL
293 293
         {
294 294
             StringBuilder strSql = new StringBuilder();
295 295
             strSql.Append("select * ");
296
-            strSql.Append(" FROM T_SMS_SendSMSTask ");
296
+            strSql.Append(" FROM T_SMS_SendSMSTask   WITH(NOLOCK) ");
297 297
             if (strWhere.Trim() != "")
298 298
             {
299 299
                 strSql.Append(" where " + strWhere);
@@ -313,7 +313,7 @@ namespace CallCenterApi.DAL
313 313
                 strSql.Append(" top " + Top.ToString());
314 314
             }
315 315
             strSql.Append(" * ");
316
-            strSql.Append(" FROM T_SMS_SendSMSTask ");
316
+            strSql.Append(" FROM T_SMS_SendSMSTask   WITH(NOLOCK) ");
317 317
             if (strWhere.Trim() != "")
318 318
             {
319 319
                 strSql.Append(" where " + strWhere);
@@ -328,7 +328,7 @@ namespace CallCenterApi.DAL
328 328
         public int GetRecordCount(string strWhere)
329 329
         {
330 330
             StringBuilder strSql = new StringBuilder();
331
-            strSql.Append("select count(1) FROM T_SMS_RecvSMS ");
331
+            strSql.Append("select count(1) FROM T_SMS_RecvSMS   WITH(NOLOCK) ");
332 332
             if (strWhere.Trim() != "")
333 333
             {
334 334
                 strSql.Append(" where " + strWhere);

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

@@ -24,7 +24,7 @@ namespace CallCenterApi.DAL
24 24
         public bool Exists(int SMSID)
25 25
         {
26 26
             StringBuilder strSql = new StringBuilder();
27
-            strSql.Append("select count(1) from T_SMS_SentSMS");
27
+            strSql.Append("select count(1) from T_SMS_SentSMS  WITH(NOLOCK) ");
28 28
             strSql.Append(" where ");
29 29
             strSql.Append(" SMSID = @SMSID  ");
30 30
             SqlParameter[] parameters = {
@@ -201,7 +201,7 @@ namespace CallCenterApi.DAL
201 201
 
202 202
             StringBuilder strSql = new StringBuilder();
203 203
             strSql.Append("select * ");
204
-            strSql.Append("  from T_SMS_SentSMS ");
204
+            strSql.Append("  from T_SMS_SentSMS   WITH(NOLOCK) ");
205 205
             strSql.Append(" where SMSID=@SMSID");
206 206
             SqlParameter[] parameters = {
207 207
                     new SqlParameter("@SMSID", SqlDbType.Int,4)
@@ -263,7 +263,7 @@ namespace CallCenterApi.DAL
263 263
         {
264 264
             StringBuilder strSql = new StringBuilder();
265 265
             strSql.Append("select * ");
266
-            strSql.Append(" FROM T_SMS_SentSMS ");
266
+            strSql.Append(" FROM T_SMS_SentSMS   WITH(NOLOCK) ");
267 267
             if (strWhere.Trim() != "")
268 268
             {
269 269
                 strSql.Append(" where " + strWhere);
@@ -283,7 +283,7 @@ namespace CallCenterApi.DAL
283 283
                 strSql.Append(" top " + Top.ToString());
284 284
             }
285 285
             strSql.Append(" * ");
286
-            strSql.Append(" FROM T_SMS_SentSMS ");
286
+            strSql.Append(" FROM T_SMS_SentSMS   WITH(NOLOCK) ");
287 287
             if (strWhere.Trim() != "")
288 288
             {
289 289
                 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_SMS_SentSMS ");
302
+            strSql.Append("select count(1) FROM T_SMS_SentSMS   WITH(NOLOCK) ");
303 303
             if (strWhere.Trim() != "")
304 304
             {
305 305
                 strSql.Append(" where " + strWhere);

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

@@ -21,7 +21,7 @@ namespace CallCenterApi.DAL
21 21
         public bool Exists(int ID)
22 22
         {
23 23
             StringBuilder strSql = new StringBuilder();
24
-            strSql.Append("select count(1) from T_SMS_Template");
24
+            strSql.Append("select count(1) from T_SMS_Template  WITH(NOLOCK) ");
25 25
             strSql.Append(" where ");
26 26
             strSql.Append(" ID = @ID  ");
27 27
             SqlParameter[] parameters = {
@@ -178,7 +178,7 @@ namespace CallCenterApi.DAL
178 178
 
179 179
             StringBuilder strSql = new StringBuilder();
180 180
             strSql.Append("select ID, Name, Detail, IsEnable, MID, MName, CreateDate  ");
181
-            strSql.Append("  from T_SMS_Template ");
181
+            strSql.Append("  from T_SMS_Template  WITH(NOLOCK)  ");
182 182
             strSql.Append(" where ID=@ID");
183 183
             SqlParameter[] parameters = {
184 184
                     new SqlParameter("@ID", SqlDbType.Int,4)
@@ -224,7 +224,7 @@ namespace CallCenterApi.DAL
224 224
         {
225 225
             StringBuilder strSql = new StringBuilder();
226 226
             strSql.Append("select * ");
227
-            strSql.Append(" FROM T_SMS_Template ");
227
+            strSql.Append(" FROM T_SMS_Template   WITH(NOLOCK) ");
228 228
             if (strWhere.Trim() != "")
229 229
             {
230 230
                 strSql.Append(" where " + strWhere);
@@ -244,7 +244,7 @@ namespace CallCenterApi.DAL
244 244
                 strSql.Append(" top " + Top.ToString());
245 245
             }
246 246
             strSql.Append(" * ");
247
-            strSql.Append(" FROM T_SMS_Template ");
247
+            strSql.Append(" FROM T_SMS_Template   WITH(NOLOCK) ");
248 248
             if (strWhere.Trim() != "")
249 249
             {
250 250
                 strSql.Append(" where " + strWhere);
@@ -260,7 +260,7 @@ namespace CallCenterApi.DAL
260 260
         public int GetRecordCount(string strWhere)
261 261
         {
262 262
             StringBuilder strSql = new StringBuilder();
263
-            strSql.Append("select count(1) FROM T_SMS_Template ");
263
+            strSql.Append("select count(1) FROM T_SMS_Template   WITH(NOLOCK) ");
264 264
             if (strWhere.Trim() != "")
265 265
             {
266 266
                 strSql.Append(" where " + strWhere);

+ 2 - 2
codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_Accessories.cs

@@ -23,7 +23,7 @@ namespace CallCenterApi.DAL
23 23
         public bool Exists(int F_FileId)
24 24
         {
25 25
             StringBuilder strSql = new StringBuilder();
26
-            strSql.Append("select count(1) from T_Sys_Accessories");
26
+            strSql.Append("select count(1) from T_Sys_Accessories  WITH(NOLOCK) ");
27 27
             strSql.Append(" where F_FileId=@F_FileId");
28 28
             SqlParameter[] parameters = {
29 29
                     new SqlParameter("@F_FileId", SqlDbType.Int,4)
@@ -263,7 +263,7 @@ namespace CallCenterApi.DAL
263 263
         public int GetRecordCount(string strWhere)
264 264
         {
265 265
             StringBuilder strSql = new StringBuilder();
266
-            strSql.Append("select count(1) FROM T_Sys_Accessories ");
266
+            strSql.Append("select count(1) FROM T_Sys_Accessories   WITH(NOLOCK) ");
267 267
             if (strWhere.Trim() != "")
268 268
             {
269 269
                 strSql.Append(" where " + strWhere);

+ 2 - 2
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)
@@ -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);

+ 2 - 2
codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_DictionaryBase.cs

@@ -24,7 +24,7 @@ namespace CallCenterApi.DAL
24 24
         public bool Exists(string F_DictionaryFlag)
25 25
         {
26 26
             StringBuilder strSql = new StringBuilder();
27
-            strSql.Append("select count(1) from T_Sys_DictionaryBase");
27
+            strSql.Append("select count(1) from T_Sys_DictionaryBase  WITH(NOLOCK) ");
28 28
             strSql.Append(" where F_DictionaryFlag=@F_DictionaryFlag ");
29 29
             SqlParameter[] parameters = {
30 30
                     new SqlParameter("@F_DictionaryFlag", SqlDbType.VarChar,50)         };
@@ -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_DictionaryBase ");
248
+            strSql.Append("select count(1) FROM T_Sys_DictionaryBase   WITH(NOLOCK) ");
249 249
             if (strWhere.Trim() != "")
250 250
             {
251 251
                 strSql.Append(" where " + strWhere);

+ 2 - 2
codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_DictionaryValue.cs

@@ -23,7 +23,7 @@ namespace CallCenterApi.DAL
23 23
         public bool Exists(int F_DictionaryValueId)
24 24
         {
25 25
             StringBuilder strSql = new StringBuilder();
26
-            strSql.Append("select count(1) from T_Sys_DictionaryValue");
26
+            strSql.Append("select count(1) from T_Sys_DictionaryValue  WITH(NOLOCK) ");
27 27
             strSql.Append(" where F_DictionaryValueId=@F_DictionaryValueId");
28 28
             SqlParameter[] parameters = {
29 29
                     new SqlParameter("@F_DictionaryValueId", SqlDbType.Int,4)
@@ -263,7 +263,7 @@ namespace CallCenterApi.DAL
263 263
         public int GetRecordCount(string strWhere)
264 264
         {
265 265
             StringBuilder strSql = new StringBuilder();
266
-            strSql.Append("select count(1) FROM T_Sys_DictionaryValue ");
266
+            strSql.Append("select count(1) FROM T_Sys_DictionaryValue   WITH(NOLOCK) ");
267 267
             if (strWhere.Trim() != "")
268 268
             {
269 269
                 strSql.Append(" where " + strWhere);

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

@@ -23,7 +23,7 @@ namespace CallCenterApi.DAL
23 23
         public bool Exists(int F_Id)
24 24
         {
25 25
             StringBuilder strSql = new StringBuilder();
26
-            strSql.Append("select count(1) from T_Sys_LoginLogs");
26
+            strSql.Append("select count(1) from T_Sys_LoginLogs  WITH(NOLOCK) ");
27 27
             strSql.Append(" where F_Id=@F_Id");
28 28
             SqlParameter[] parameters = {
29 29
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
@@ -176,7 +176,7 @@ namespace CallCenterApi.DAL
176 176
         {
177 177
 
178 178
             StringBuilder strSql = new StringBuilder();
179
-            strSql.Append("select  top 1 F_Id,F_LoginName,F_LoginId,F_Result,F_LoginIP,F_Hostname,F_LoginDate,F_Remark,F_State,F_LoginOutDate from T_Sys_LoginLogs ");
179
+            strSql.Append("select  top 1 F_Id,F_LoginName,F_LoginId,F_Result,F_LoginIP,F_Hostname,F_LoginDate,F_Remark,F_State,F_LoginOutDate from T_Sys_LoginLogs   WITH(NOLOCK) ");
180 180
             strSql.Append(" where F_Id=@F_Id");
181 181
             SqlParameter[] parameters = {
182 182
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
@@ -255,7 +255,7 @@ namespace CallCenterApi.DAL
255 255
         {
256 256
             StringBuilder strSql = new StringBuilder();
257 257
             strSql.Append("select F_Id,F_LoginName,F_LoginId,F_Result,F_LoginIP,F_Hostname,F_LoginDate,F_Remark,F_State,F_LoginOutDate ");
258
-            strSql.Append(" FROM T_Sys_LoginLogs ");
258
+            strSql.Append(" FROM T_Sys_LoginLogs   WITH(NOLOCK) ");
259 259
             if (strWhere.Trim() != "")
260 260
             {
261 261
                 strSql.Append(" where " + strWhere);
@@ -275,7 +275,7 @@ namespace CallCenterApi.DAL
275 275
                 strSql.Append(" top " + Top.ToString());
276 276
             }
277 277
             strSql.Append(" F_Id,F_LoginName,F_LoginId,F_Result,F_LoginIP,F_Hostname,F_LoginDate,F_Remark,F_State,F_LoginOutDate ");
278
-            strSql.Append(" FROM T_Sys_LoginLogs ");
278
+            strSql.Append(" FROM T_Sys_LoginLogs   WITH(NOLOCK) ");
279 279
             if (strWhere.Trim() != "")
280 280
             {
281 281
                 strSql.Append(" where " + strWhere);
@@ -290,7 +290,7 @@ namespace CallCenterApi.DAL
290 290
         public int GetRecordCount(string strWhere)
291 291
         {
292 292
             StringBuilder strSql = new StringBuilder();
293
-            strSql.Append("select count(1) FROM T_Sys_LoginLogs ");
293
+            strSql.Append("select count(1) FROM T_Sys_LoginLogs   WITH(NOLOCK) ");
294 294
             if (strWhere.Trim() != "")
295 295
             {
296 296
                 strSql.Append(" where " + strWhere);

+ 5 - 5
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);

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

@@ -23,7 +23,7 @@ namespace CallCenterApi.DAL
23 23
         public bool Exists(int F_FunctionId)
24 24
         {
25 25
             StringBuilder strSql = new StringBuilder();
26
-            strSql.Append("select count(1) from T_Sys_ModuleFunctions");
26
+            strSql.Append("select count(1) from T_Sys_ModuleFunctions  WITH(NOLOCK) ");
27 27
             strSql.Append(" where F_FunctionId=@F_FunctionId");
28 28
             SqlParameter[] parameters = {
29 29
                     new SqlParameter("@F_FunctionId", SqlDbType.Int,4)
@@ -212,7 +212,7 @@ namespace CallCenterApi.DAL
212 212
         {
213 213
 
214 214
             StringBuilder strSql = new StringBuilder();
215
-            strSql.Append("select  top 1 F_FunctionId,F_FunctionCode,F_ParentId,F_ParentCode,F_Name,F_Sort,F_Layer,F_StateFlag,F_Type,F_OptUrl,F_Remark,F_SysFlag,F_ImgUrl,F_ModuleId,F_ModuleCode,F_Controller,F_Action from T_Sys_ModuleFunctions ");
215
+            strSql.Append("select  top 1 F_FunctionId,F_FunctionCode,F_ParentId,F_ParentCode,F_Name,F_Sort,F_Layer,F_StateFlag,F_Type,F_OptUrl,F_Remark,F_SysFlag,F_ImgUrl,F_ModuleId,F_ModuleCode,F_Controller,F_Action from T_Sys_ModuleFunctions   WITH(NOLOCK) ");
216 216
             strSql.Append(" where F_FunctionId=@F_FunctionId");
217 217
             SqlParameter[] parameters = {
218 218
                     new SqlParameter("@F_FunctionId", SqlDbType.Int,4)
@@ -237,7 +237,7 @@ namespace CallCenterApi.DAL
237 237
         {
238 238
 
239 239
             StringBuilder strSql = new StringBuilder();
240
-            strSql.Append("select  top 1 F_FunctionId,F_FunctionCode,F_ParentId,F_ParentCode,F_Name,F_Sort,F_Layer,F_StateFlag,F_Type,F_OptUrl,F_Remark,F_SysFlag,F_ImgUrl,F_ModuleId,F_ModuleCode,F_Controller,F_Action from T_Sys_ModuleFunctions ");
240
+            strSql.Append("select  top 1 F_FunctionId,F_FunctionCode,F_ParentId,F_ParentCode,F_Name,F_Sort,F_Layer,F_StateFlag,F_Type,F_OptUrl,F_Remark,F_SysFlag,F_ImgUrl,F_ModuleId,F_ModuleCode,F_Controller,F_Action from T_Sys_ModuleFunctions   WITH(NOLOCK) ");
241 241
             strSql.Append(" where F_Controller=@controller and F_Action=@action");
242 242
             SqlParameter[] parameters = {
243 243
                     new SqlParameter("@controller", SqlDbType.VarChar,300),
@@ -264,7 +264,7 @@ namespace CallCenterApi.DAL
264 264
         {
265 265
 
266 266
             StringBuilder strSql = new StringBuilder();
267
-            strSql.Append("select  top 1 F_FunctionId,F_FunctionCode,F_ParentId,F_ParentCode,F_Name,F_Sort,F_Layer,F_StateFlag,F_Type,F_OptUrl,F_Remark,F_SysFlag,F_ImgUrl,F_ModuleId,F_ModuleCode,F_Controller,F_Action from T_Sys_ModuleFunctions ");
267
+            strSql.Append("select  top 1 F_FunctionId,F_FunctionCode,F_ParentId,F_ParentCode,F_Name,F_Sort,F_Layer,F_StateFlag,F_Type,F_OptUrl,F_Remark,F_SysFlag,F_ImgUrl,F_ModuleId,F_ModuleCode,F_Controller,F_Action from T_Sys_ModuleFunctions   WITH(NOLOCK) ");
268 268
             strSql.Append(" where F_OptUrl=@F_OptUrl");
269 269
             SqlParameter[] parameters = {
270 270
                     new SqlParameter("@F_OptUrl",url)
@@ -376,7 +376,7 @@ namespace CallCenterApi.DAL
376 376
         {
377 377
             StringBuilder strSql = new StringBuilder();
378 378
             strSql.Append("select F_FunctionId,F_FunctionCode,F_ParentId,F_ParentCode,F_Name,F_Sort,F_Layer,F_StateFlag,F_Type,F_OptUrl,F_Remark,F_SysFlag,F_ImgUrl,F_ModuleId,F_ModuleCode,F_Controller,F_Action");
379
-            strSql.Append(" FROM T_Sys_ModuleFunctions ");
379
+            strSql.Append(" FROM T_Sys_ModuleFunctions   WITH(NOLOCK) ");
380 380
             if (strWhere.Trim() != "")
381 381
             {
382 382
                 strSql.Append(" where " + strWhere);
@@ -396,7 +396,7 @@ namespace CallCenterApi.DAL
396 396
                 strSql.Append(" top " + Top.ToString());
397 397
             }
398 398
             strSql.Append(" F_FunctionId,F_FunctionCode,F_ParentId,F_ParentCode,F_Name,F_Sort,F_Layer,F_StateFlag,F_Type,F_OptUrl,F_Remark,F_SysFlag,F_ImgUrl,F_ModuleId,F_ModuleCode ,F_Controller,F_Action");
399
-            strSql.Append(" FROM T_Sys_ModuleFunctions ");
399
+            strSql.Append(" FROM T_Sys_ModuleFunctions   WITH(NOLOCK) ");
400 400
             if (strWhere.Trim() != "")
401 401
             {
402 402
                 strSql.Append(" where " + strWhere);
@@ -411,7 +411,7 @@ namespace CallCenterApi.DAL
411 411
         public int GetRecordCount(string strWhere)
412 412
         {
413 413
             StringBuilder strSql = new StringBuilder();
414
-            strSql.Append("select count(1) FROM T_Sys_ModuleFunctions ");
414
+            strSql.Append("select count(1) FROM T_Sys_ModuleFunctions   WITH(NOLOCK) ");
415 415
             if (strWhere.Trim() != "")
416 416
             {
417 417
                 strSql.Append(" where " + strWhere);

+ 5 - 5
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);

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_Patirnt.cs

@@ -136,7 +136,7 @@ namespace CallCenterApi.DAL
136 136
         {
137 137
 
138 138
             StringBuilder strSql = new StringBuilder();
139
-            strSql.Append("select  top 1 * from T_Sys_Patirnt ");
139
+            strSql.Append("select  top 1 * from T_Sys_Patirnt   WITH(NOLOCK) ");
140 140
             strSql.Append(" where PatirntID=@PatirntID");
141 141
             SqlParameter[] parameters = {
142 142
                     new SqlParameter("@PatirntID", SqlDbType.Int,4)

+ 5 - 5
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);

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

@@ -23,7 +23,7 @@ namespace CallCenterApi.DAL
23 23
         public bool Exists(int F_RoleId)
24 24
         {
25 25
             StringBuilder strSql = new StringBuilder();
26
-            strSql.Append("select count(1) from T_Sys_RoleInfo");
26
+            strSql.Append("select count(1) from T_Sys_RoleInfo  WITH(NOLOCK) ");
27 27
             strSql.Append(" where F_RoleId=@F_RoleId");
28 28
             SqlParameter[] parameters = {
29 29
                     new SqlParameter("@F_RoleId", SqlDbType.Int,4)
@@ -146,7 +146,7 @@ namespace CallCenterApi.DAL
146 146
         {
147 147
 
148 148
             StringBuilder strSql = new StringBuilder();
149
-            strSql.Append("select  top 1 F_RoleId,F_RoleName,F_RoleCode,F_Remark from T_Sys_RoleInfo ");
149
+            strSql.Append("select  top 1 F_RoleId,F_RoleName,F_RoleCode,F_Remark from T_Sys_RoleInfo   WITH(NOLOCK) ");
150 150
             strSql.Append(" where F_RoleId=@F_RoleId");
151 151
             SqlParameter[] parameters = {
152 152
                     new SqlParameter("@F_RoleId", SqlDbType.Int,4)
@@ -201,7 +201,7 @@ namespace CallCenterApi.DAL
201 201
         {
202 202
             StringBuilder strSql = new StringBuilder();
203 203
             strSql.Append("select F_RoleId,F_RoleName,F_RoleCode,F_Remark ");
204
-            strSql.Append(" FROM T_Sys_RoleInfo ");
204
+            strSql.Append(" FROM T_Sys_RoleInfo  WITH(NOLOCK)  ");
205 205
             if (strWhere.Trim() != "")
206 206
             {
207 207
                 strSql.Append(" where " + strWhere);
@@ -216,7 +216,7 @@ namespace CallCenterApi.DAL
216 216
         {
217 217
             StringBuilder strSql = new StringBuilder();
218 218
             strSql.Append("select F_RoleId,F_RoleName,F_RoleCode,F_Remark ");
219
-            strSql.Append(" FROM T_Sys_RoleInfo where F_RoleName like '%'+@name+'%' and F_RoleCode like '%'+@code+'%' ");
219
+            strSql.Append(" FROM T_Sys_RoleInfo  WITH(NOLOCK)  where F_RoleName like '%'+@name+'%' and F_RoleCode like '%'+@code+'%' ");
220 220
             SqlParameter[] paras = new SqlParameter[] {
221 221
                 new SqlParameter("@name",name),
222 222
                 new SqlParameter("@code",code)
@@ -237,7 +237,7 @@ namespace CallCenterApi.DAL
237 237
                 strSql.Append(" top " + Top.ToString());
238 238
             }
239 239
             strSql.Append(" F_RoleId,F_RoleName,F_RoleCode,F_Remark ");
240
-            strSql.Append(" FROM T_Sys_RoleInfo ");
240
+            strSql.Append(" FROM T_Sys_RoleInfo   WITH(NOLOCK) ");
241 241
             if (strWhere.Trim() != "")
242 242
             {
243 243
                 strSql.Append(" where " + strWhere);
@@ -252,7 +252,7 @@ namespace CallCenterApi.DAL
252 252
         public int GetRecordCount(string strWhere)
253 253
         {
254 254
             StringBuilder strSql = new StringBuilder();
255
-            strSql.Append("select count(1) FROM T_Sys_RoleInfo ");
255
+            strSql.Append("select count(1) FROM T_Sys_RoleInfo   WITH(NOLOCK) ");
256 256
             if (strWhere.Trim() != "")
257 257
             {
258 258
                 strSql.Append(" where " + strWhere);

+ 4 - 4
codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_SeatGroup.cs

@@ -166,7 +166,7 @@ namespace CallCenterApi.DAL
166 166
         {
167 167
 
168 168
             StringBuilder strSql = new StringBuilder();
169
-            strSql.Append("select  top 1 F_ZXZID,F_ZXZCode,F_ZXZName,F_IVRKey,F_WHBDKey,F_WHWDKey,F_ZXAtt,F_Des,F_CreateTime,F_CreateBy,F_CreateByName from T_Sys_SeatGroup ");
169
+            strSql.Append("select  top 1 F_ZXZID,F_ZXZCode,F_ZXZName,F_IVRKey,F_WHBDKey,F_WHWDKey,F_ZXAtt,F_Des,F_CreateTime,F_CreateBy,F_CreateByName from T_Sys_SeatGroup   WITH(NOLOCK) ");
170 170
             strSql.Append(" where F_ZXZID=@F_ZXZID");
171 171
             SqlParameter[] parameters = {
172 172
                     new SqlParameter("@F_ZXZID", SqlDbType.Int,4)
@@ -249,7 +249,7 @@ namespace CallCenterApi.DAL
249 249
         {
250 250
             StringBuilder strSql = new StringBuilder();
251 251
             strSql.Append("select F_ZXZID,F_ZXZCode,F_ZXZName,F_IVRKey,F_WHBDKey,F_WHWDKey,F_ZXAtt,F_Des,F_CreateTime,F_CreateBy,F_CreateByName ");
252
-            strSql.Append(" FROM T_Sys_SeatGroup ");
252
+            strSql.Append(" FROM T_Sys_SeatGroup   WITH(NOLOCK) ");
253 253
             if (strWhere.Trim() != "")
254 254
             {
255 255
                 strSql.Append(" where " + strWhere);
@@ -269,7 +269,7 @@ namespace CallCenterApi.DAL
269 269
                 strSql.Append(" top " + Top.ToString());
270 270
             }
271 271
             strSql.Append(" F_ZXZID,F_ZXZCode,F_ZXZName,F_IVRKey,F_WHBDKey,F_WHWDKey,F_ZXAtt,F_Des,F_CreateTime,F_CreateBy,F_CreateByName ");
272
-            strSql.Append(" FROM T_Sys_SeatGroup ");
272
+            strSql.Append(" FROM T_Sys_SeatGroup   WITH(NOLOCK) ");
273 273
             if (strWhere.Trim() != "")
274 274
             {
275 275
                 strSql.Append(" where " + strWhere);
@@ -284,7 +284,7 @@ namespace CallCenterApi.DAL
284 284
         public int GetRecordCount(string strWhere)
285 285
         {
286 286
             StringBuilder strSql = new StringBuilder();
287
-            strSql.Append("select count(1) FROM T_Sys_SeatGroup ");
287
+            strSql.Append("select count(1) FROM T_Sys_SeatGroup   WITH(NOLOCK) ");
288 288
             if (strWhere.Trim() != "")
289 289
             {
290 290
                 strSql.Append(" where " + strWhere);

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

@@ -29,7 +29,7 @@ namespace CallCenterApi.DAL
29 29
         public bool Exists(int F_Id)
30 30
         {
31 31
             StringBuilder strSql = new StringBuilder();
32
-            strSql.Append("select count(1) from T_Sys_SeatPermissionConfig");
32
+            strSql.Append("select count(1) from T_Sys_SeatPermissionConfig  WITH(NOLOCK) ");
33 33
             strSql.Append(" where F_Id=@F_Id");
34 34
             SqlParameter[] parameters = {
35 35
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
@@ -46,7 +46,7 @@ namespace CallCenterApi.DAL
46 46
         public bool Exists()
47 47
         {
48 48
             StringBuilder strSql = new StringBuilder();
49
-            strSql.Append("select count(1) from T_Sys_SeatPermissionConfig");
49
+            strSql.Append("select count(1) from T_Sys_SeatPermissionConfig  WITH(NOLOCK) ");
50 50
             return DbHelperSQL.Exists(strSql.ToString(), null);
51 51
         }
52 52
 
@@ -168,7 +168,7 @@ namespace CallCenterApi.DAL
168 168
         {
169 169
 
170 170
             StringBuilder strSql = new StringBuilder();
171
-            strSql.Append("select  top 1 F_Id,F_MaxSeat,F_PassHash,F_SaltValue,F_SecurityKey from T_Sys_SeatPermissionConfig ");
171
+            strSql.Append("select  top 1 F_Id,F_MaxSeat,F_PassHash,F_SaltValue,F_SecurityKey from T_Sys_SeatPermissionConfig   WITH(NOLOCK) ");
172 172
             strSql.Append(" where F_Id=@F_Id");
173 173
             SqlParameter[] parameters = {
174 174
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
@@ -194,7 +194,7 @@ namespace CallCenterApi.DAL
194 194
         {
195 195
 
196 196
             StringBuilder strSql = new StringBuilder();
197
-            strSql.Append("select  top 1 F_Id,F_MaxSeat,F_SecurityKey,F_PassHash,F_SaltValue from T_Sys_SeatPermissionConfig ");
197
+            strSql.Append("select  top 1 F_Id,F_MaxSeat,F_SecurityKey,F_PassHash,F_SaltValue from T_Sys_SeatPermissionConfig  WITH(NOLOCK)  ");
198 198
             Model.T_Sys_SeatPermissionConfig model = new Model.T_Sys_SeatPermissionConfig();
199 199
             DataSet ds = DbHelperSQL.Query(strSql.ToString());
200 200
             if (ds.Tables[0].Rows.Count > 0)
@@ -247,7 +247,7 @@ namespace CallCenterApi.DAL
247 247
         {
248 248
             StringBuilder strSql = new StringBuilder();
249 249
             strSql.Append("select F_Id,F_MaxSeat,F_PassHash,F_SaltValue,F_SecurityKey ");
250
-            strSql.Append(" FROM T_Sys_SeatPermissionConfig ");
250
+            strSql.Append(" FROM T_Sys_SeatPermissionConfig   WITH(NOLOCK) ");
251 251
             if (strWhere.Trim() != "")
252 252
             {
253 253
                 strSql.Append(" where " + strWhere);
@@ -267,7 +267,7 @@ namespace CallCenterApi.DAL
267 267
                 strSql.Append(" top " + Top.ToString());
268 268
             }
269 269
             strSql.Append(" F_Id,F_MaxSeat,F_PassHash,F_SaltValue,F_SecurityKey ");
270
-            strSql.Append(" FROM T_Sys_SeatPermissionConfig ");
270
+            strSql.Append(" FROM T_Sys_SeatPermissionConfig   WITH(NOLOCK) ");
271 271
             if (strWhere.Trim() != "")
272 272
             {
273 273
                 strSql.Append(" where " + strWhere);
@@ -282,7 +282,7 @@ namespace CallCenterApi.DAL
282 282
         public int GetRecordCount(string strWhere)
283 283
         {
284 284
             StringBuilder strSql = new StringBuilder();
285
-            strSql.Append("select count(1) FROM T_Sys_SeatPermissionConfig ");
285
+            strSql.Append("select count(1) FROM T_Sys_SeatPermissionConfig   WITH(NOLOCK) ");
286 286
             if (strWhere.Trim() != "")
287 287
             {
288 288
                 strSql.Append(" where " + strWhere);

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_SystemConfig.cs

@@ -300,7 +300,7 @@ namespace CallCenterApi.DAL
300 300
         public string GetParamValueByParamCode(string p_ParamCode)
301 301
         {
302 302
             StringBuilder strSql = new StringBuilder();
303
-            strSql.Append("select  top 1 F_ParamValue from T_Sys_SystemConfig WITH(NOLOCK)");
303
+            strSql.Append("select  top 1 F_ParamValue from T_Sys_SystemConfig WITH(NOLOCK) ");
304 304
             strSql.Append(" where F_ParamCode=@F_ParamCode");
305 305
             SqlParameter[] parameters = {
306 306
                     new SqlParameter("@F_ParamCode", SqlDbType.VarChar,50)

+ 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)
@@ -160,7 +160,7 @@ namespace CallCenterApi.DAL
160 160
         {
161 161
 
162 162
             StringBuilder strSql = new StringBuilder();
163
-            strSql.Append("select  top 1 F_Id,F_TitleName,F_KeyPhoneNum,F_DefPhoneNumLen,F_WCode from T_Sys_TelTitleData ");
163
+            strSql.Append("select  top 1 F_Id,F_TitleName,F_KeyPhoneNum,F_DefPhoneNumLen,F_WCode from T_Sys_TelTitleData  WITH(NOLOCK) ");
164 164
             strSql.Append(" where F_Id=@F_Id");
165 165
             SqlParameter[] parameters = {
166 166
                     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);

+ 4 - 4
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),
@@ -639,7 +639,7 @@ namespace CallCenterApi.DAL
639 639
         {
640 640
             StringBuilder strSql = new StringBuilder();
641 641
             strSql.Append("select * ");
642
-            strSql.Append(" FROM V_UserAccount ");
642
+            strSql.Append(" FROM V_UserAccount  WITH(NOLOCK) ");
643 643
             if (strWhere.Trim() != "")
644 644
             {
645 645
                 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);

+ 2 - 2
codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_Users.cs

@@ -20,7 +20,7 @@ namespace CallCenterApi.DAL
20 20
         public bool Exists(long F_Id)
21 21
         {
22 22
             StringBuilder strSql = new StringBuilder();
23
-            strSql.Append("select count(1) from T_Sys_Users");
23
+            strSql.Append("select count(1) from T_Sys_Users WITH(NOLOCK) ");
24 24
             strSql.Append(" where F_Id=@F_Id");
25 25
             SqlParameter[] parameters = {
26 26
                     new SqlParameter("@F_Id", SqlDbType.BigInt)
@@ -268,7 +268,7 @@ namespace CallCenterApi.DAL
268 268
         public int GetRecordCount(string strWhere)
269 269
         {
270 270
             StringBuilder strSql = new StringBuilder();
271
-            strSql.Append("select count(1) FROM T_Sys_Users ");
271
+            strSql.Append("select count(1) FROM T_Sys_Users  WITH(NOLOCK) ");
272 272
             if (strWhere.Trim() != "")
273 273
             {
274 274
                 strSql.Append(" where " + strWhere);

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

@@ -24,7 +24,7 @@ namespace CallCenterApi.DAL
24 24
         public bool Exists(DateTime F_DateId)
25 25
         {
26 26
             StringBuilder strSql = new StringBuilder();
27
-            strSql.Append("select count(1) from T_Sys_WorkCalendar");
27
+            strSql.Append("select count(1) from T_Sys_WorkCalendar WITH(NOLOCK) ");
28 28
             strSql.Append(" where F_DateId=@F_DateId ");
29 29
             SqlParameter[] parameters = {
30 30
                     new SqlParameter("@F_DateId", SqlDbType.DateTime)           };
@@ -161,7 +161,7 @@ namespace CallCenterApi.DAL
161 161
         {
162 162
 
163 163
             StringBuilder strSql = new StringBuilder();
164
-            strSql.Append("select  top 1 F_DateId,F_WorkingFlag,F_EditFlag,F_HolidayFlag,F_HolidayName,F_LunarDate,F_Remark from T_Sys_WorkCalendar ");
164
+            strSql.Append("select  top 1 F_DateId,F_WorkingFlag,F_EditFlag,F_HolidayFlag,F_HolidayName,F_LunarDate,F_Remark from T_Sys_WorkCalendar  WITH(NOLOCK) ");
165 165
             strSql.Append(" where F_DateId=@F_DateId ");
166 166
             SqlParameter[] parameters = {
167 167
                     new SqlParameter("@F_DateId", SqlDbType.DateTime)           };
@@ -241,7 +241,7 @@ namespace CallCenterApi.DAL
241 241
         {
242 242
             StringBuilder strSql = new StringBuilder();
243 243
             strSql.Append("select F_DateId,F_WorkingFlag,F_EditFlag,F_HolidayFlag,F_HolidayName,F_LunarDate,F_Remark ");
244
-            strSql.Append(" FROM T_Sys_WorkCalendar ");
244
+            strSql.Append(" FROM T_Sys_WorkCalendar  WITH(NOLOCK) ");
245 245
             if (strWhere.Trim() != "")
246 246
             {
247 247
                 strSql.Append(" where " + strWhere);
@@ -261,7 +261,7 @@ namespace CallCenterApi.DAL
261 261
                 strSql.Append(" top " + Top.ToString());
262 262
             }
263 263
             strSql.Append(" F_DateId,F_WorkingFlag,F_EditFlag,F_HolidayFlag,F_HolidayName,F_LunarDate,F_Remark ");
264
-            strSql.Append(" FROM T_Sys_WorkCalendar ");
264
+            strSql.Append(" FROM T_Sys_WorkCalendar  WITH(NOLOCK) ");
265 265
             if (strWhere.Trim() != "")
266 266
             {
267 267
                 strSql.Append(" where " + strWhere);
@@ -276,7 +276,7 @@ namespace CallCenterApi.DAL
276 276
         public int GetRecordCount(string strWhere)
277 277
         {
278 278
             StringBuilder strSql = new StringBuilder();
279
-            strSql.Append("select count(1) FROM T_Sys_WorkCalendar ");
279
+            strSql.Append("select count(1) FROM T_Sys_WorkCalendar  WITH(NOLOCK) ");
280 280
             if (strWhere.Trim() != "")
281 281
             {
282 282
                 strSql.Append(" where " + strWhere);

+ 4 - 4
codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_WorkOFFDays.cs

@@ -161,7 +161,7 @@ namespace CallCenterApi.DAL
161 161
         {
162 162
 
163 163
             StringBuilder strSql = new StringBuilder();
164
-            strSql.Append("select  top 1 F_OffID,F_OffDate,F_OffState,F_remark,F_CreateBy,F_CreateOn from T_Sys_WorkOFFDays ");
164
+            strSql.Append("select  top 1 F_OffID,F_OffDate,F_OffState,F_remark,F_CreateBy,F_CreateOn from T_Sys_WorkOFFDays  WITH(NOLOCK) ");
165 165
             strSql.Append(" where F_OffID=@F_OffID");
166 166
             SqlParameter[] parameters = {
167 167
                     new SqlParameter("@F_OffID", SqlDbType.Int,4)
@@ -224,7 +224,7 @@ namespace CallCenterApi.DAL
224 224
         {
225 225
             StringBuilder strSql = new StringBuilder();
226 226
             strSql.Append("select F_OffID,F_OffDate,F_OffState,F_remark,F_CreateBy,F_CreateOn ");
227
-            strSql.Append(" FROM T_Sys_WorkOFFDays ");
227
+            strSql.Append(" FROM T_Sys_WorkOFFDays  WITH(NOLOCK) ");
228 228
             if (strWhere.Trim() != "")
229 229
             {
230 230
                 strSql.Append(" where " + strWhere);
@@ -244,7 +244,7 @@ namespace CallCenterApi.DAL
244 244
                 strSql.Append(" top " + Top.ToString());
245 245
             }
246 246
             strSql.Append(" F_OffID,F_OffDate,F_OffState,F_remark,F_CreateBy,F_CreateOn ");
247
-            strSql.Append(" FROM T_Sys_WorkOFFDays ");
247
+            strSql.Append(" FROM T_Sys_WorkOFFDays  WITH(NOLOCK) ");
248 248
             if (strWhere.Trim() != "")
249 249
             {
250 250
                 strSql.Append(" where " + strWhere);
@@ -259,7 +259,7 @@ namespace CallCenterApi.DAL
259 259
         public int GetRecordCount(string strWhere)
260 260
         {
261 261
             StringBuilder strSql = new StringBuilder();
262
-            strSql.Append("select count(1) FROM T_Sys_WorkOFFDays ");
262
+            strSql.Append("select count(1) FROM T_Sys_WorkOFFDays  WITH(NOLOCK) ");
263 263
             if (strWhere.Trim() != "")
264 264
             {
265 265
                 strSql.Append(" where " + strWhere);

+ 5 - 5
codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_WorkTimes.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_WorkTimes");
23
+            strSql.Append("select count(1) from T_Sys_WorkTimes WITH(NOLOCK) ");
24 24
             strSql.Append(" where F_ID=@F_ID");
25 25
             SqlParameter[] parameters = {
26 26
                     new SqlParameter("@F_ID", SqlDbType.Int,4)
@@ -168,7 +168,7 @@ namespace CallCenterApi.DAL
168 168
         {
169 169
 
170 170
             StringBuilder strSql = new StringBuilder();
171
-            strSql.Append("select  top 1 F_ID,F_WorkStartTimes,F_WorkEndTimes,F_TimeName,F_Remark,F_UserID,F_UserCode,F_UserName,F_CreateOn from T_Sys_WorkTimes ");
171
+            strSql.Append("select  top 1 F_ID,F_WorkStartTimes,F_WorkEndTimes,F_TimeName,F_Remark,F_UserID,F_UserCode,F_UserName,F_CreateOn from T_Sys_WorkTimes  WITH(NOLOCK) ");
172 172
             strSql.Append(" where F_ID=@F_ID");
173 173
             SqlParameter[] parameters = {
174 174
                     new SqlParameter("@F_ID", SqlDbType.Int,4)
@@ -243,7 +243,7 @@ namespace CallCenterApi.DAL
243 243
         {
244 244
             StringBuilder strSql = new StringBuilder();
245 245
             strSql.Append("select F_ID,F_WorkStartTimes,F_WorkEndTimes,F_TimeName,F_Remark,F_UserID,F_UserCode,F_UserName,F_CreateOn ");
246
-            strSql.Append(" FROM T_Sys_WorkTimes ");
246
+            strSql.Append(" FROM T_Sys_WorkTimes  WITH(NOLOCK) ");
247 247
             if (strWhere.Trim() != "")
248 248
             {
249 249
                 strSql.Append(" where " + strWhere);
@@ -263,7 +263,7 @@ namespace CallCenterApi.DAL
263 263
                 strSql.Append(" top " + Top.ToString());
264 264
             }
265 265
             strSql.Append(" F_ID,F_WorkStartTimes,F_WorkEndTimes,F_TimeName,F_Remark,F_UserID,F_UserCode,F_UserName,F_CreateOn ");
266
-            strSql.Append(" FROM T_Sys_WorkTimes ");
266
+            strSql.Append(" FROM T_Sys_WorkTimes  WITH(NOLOCK) ");
267 267
             if (strWhere.Trim() != "")
268 268
             {
269 269
                 strSql.Append(" where " + strWhere);
@@ -278,7 +278,7 @@ namespace CallCenterApi.DAL
278 278
         public int GetRecordCount(string strWhere)
279 279
         {
280 280
             StringBuilder strSql = new StringBuilder();
281
-            strSql.Append("select count(1) FROM T_Sys_WorkTimes ");
281
+            strSql.Append("select count(1) FROM T_Sys_WorkTimes  WITH(NOLOCK) ");
282 282
             if (strWhere.Trim() != "")
283 283
             {
284 284
                 strSql.Append(" where " + strWhere);

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


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


+ 4 - 4
codegit/CallCenterApi/CallCenterApi.DAL/T_Vis_DXTelRecords.cs

@@ -205,7 +205,7 @@ namespace CallCenterApi.DAL
205 205
         {
206 206
 
207 207
             StringBuilder strSql = new StringBuilder();
208
-            strSql.Append("select  top 1 F_DXTRID,F_HFID,F_HFType,F_HFTelphone,F_HFState,F_HFInfo,F_HFRemark,F_HFUserId,F_HFUserCode,F_HFUserName,F_HFTime,F_CallUserID,F_CallUserName,F_CallDate,F_ISCall,F_CallResID,F_CallRes,F_ISCallRes,F_CallCode from T_Vis_DXTelRecords ");
208
+            strSql.Append("select  top 1 F_DXTRID,F_HFID,F_HFType,F_HFTelphone,F_HFState,F_HFInfo,F_HFRemark,F_HFUserId,F_HFUserCode,F_HFUserName,F_HFTime,F_CallUserID,F_CallUserName,F_CallDate,F_ISCall,F_CallResID,F_CallRes,F_ISCallRes,F_CallCode from T_Vis_DXTelRecords  WITH(NOLOCK) ");
209 209
             strSql.Append(" where F_DXTRID=@F_DXTRID");
210 210
             SqlParameter[] parameters = {
211 211
                     new SqlParameter("@F_DXTRID", SqlDbType.Int,4)
@@ -334,7 +334,7 @@ namespace CallCenterApi.DAL
334 334
         {
335 335
             StringBuilder strSql = new StringBuilder();
336 336
             strSql.Append("select F_DXTRID,F_HFID,F_HFType,F_HFTelphone,F_HFState,F_HFInfo,F_HFRemark,F_HFUserId,F_HFUserCode,F_HFUserName,F_HFTime,F_CallUserID,F_CallUserName,F_CallDate,F_ISCall,F_CallResID,F_CallRes,F_ISCallRes,F_CallCode ");
337
-            strSql.Append(" FROM T_Vis_DXTelRecords ");
337
+            strSql.Append(" FROM T_Vis_DXTelRecords  WITH(NOLOCK) ");
338 338
             if (strWhere.Trim() != "")
339 339
             {
340 340
                 strSql.Append(" where " + strWhere);
@@ -354,7 +354,7 @@ namespace CallCenterApi.DAL
354 354
                 strSql.Append(" top " + Top.ToString());
355 355
             }
356 356
             strSql.Append(" F_DXTRID,F_HFID,F_HFType,F_HFTelphone,F_HFState,F_HFInfo,F_HFRemark,F_HFUserId,F_HFUserCode,F_HFUserName,F_HFTime,F_CallUserID,F_CallUserName,F_CallDate,F_ISCall,F_CallResID,F_CallRes,F_ISCallRes,F_CallCode ");
357
-            strSql.Append(" FROM T_Vis_DXTelRecords ");
357
+            strSql.Append(" FROM T_Vis_DXTelRecords  WITH(NOLOCK) ");
358 358
             if (strWhere.Trim() != "")
359 359
             {
360 360
                 strSql.Append(" where " + strWhere);
@@ -369,7 +369,7 @@ namespace CallCenterApi.DAL
369 369
         public int GetRecordCount(string strWhere)
370 370
         {
371 371
             StringBuilder strSql = new StringBuilder();
372
-            strSql.Append("select count(1) FROM T_Vis_DXTelRecords ");
372
+            strSql.Append("select count(1) FROM T_Vis_DXTelRecords  WITH(NOLOCK) ");
373 373
             if (strWhere.Trim() != "")
374 374
             {
375 375
                 strSql.Append(" where " + strWhere);

+ 4 - 4
codegit/CallCenterApi/CallCenterApi.DAL/T_Vis_Files.cs

@@ -112,7 +112,7 @@ namespace CallCenterApi.DAL
112 112
         {
113 113
 
114 114
             StringBuilder strSql = new StringBuilder();
115
-            strSql.Append("select  top 1 F_FileID,F_TypeGroup,F_FileOldName,F_FileNewName,F_FilePath,F_FileFix,F_FileType,F_FileSize,F_InputUserCode,F_InputUserID,F_InputDate from T_Vis_Files ");
115
+            strSql.Append("select  top 1 F_FileID,F_TypeGroup,F_FileOldName,F_FileNewName,F_FilePath,F_FileFix,F_FileType,F_FileSize,F_InputUserCode,F_InputUserID,F_InputDate from T_Vis_Files  WITH(NOLOCK) ");
116 116
             strSql.Append(" where F_FileID=@F_FileID");
117 117
             SqlParameter[] parameters = {
118 118
                     new SqlParameter("@F_FileID", SqlDbType.Int,4)
@@ -195,7 +195,7 @@ namespace CallCenterApi.DAL
195 195
         {
196 196
             StringBuilder strSql = new StringBuilder();
197 197
             strSql.Append("select F_FileID,F_TypeGroup,F_FileOldName,F_FileNewName,F_FilePath,F_FileFix,F_FileType,F_FileSize,F_InputUserCode,F_InputUserID,F_InputDate ");
198
-            strSql.Append(" FROM T_Vis_Files ");
198
+            strSql.Append(" FROM T_Vis_Files  WITH(NOLOCK) ");
199 199
             if (strWhere.Trim() != "")
200 200
             {
201 201
                 strSql.Append(" where " + strWhere);
@@ -215,7 +215,7 @@ namespace CallCenterApi.DAL
215 215
                 strSql.Append(" top " + Top.ToString());
216 216
             }
217 217
             strSql.Append(" F_FileID,F_TypeGroup,F_FileOldName,F_FileNewName,F_FilePath,F_FileFix,F_FileType,F_FileSize,F_InputUserCode,F_InputUserID,F_InputDate ");
218
-            strSql.Append(" FROM T_Vis_Files ");
218
+            strSql.Append(" FROM T_Vis_Files  WITH(NOLOCK) ");
219 219
             if (strWhere.Trim() != "")
220 220
             {
221 221
                 strSql.Append(" where " + strWhere);
@@ -230,7 +230,7 @@ namespace CallCenterApi.DAL
230 230
         public int GetRecordCount(string strWhere)
231 231
         {
232 232
             StringBuilder strSql = new StringBuilder();
233
-            strSql.Append("select count(1) FROM T_Vis_Files ");
233
+            strSql.Append("select count(1) FROM T_Vis_Files  WITH(NOLOCK) ");
234 234
             if (strWhere.Trim() != "")
235 235
             {
236 236
                 strSql.Append(" where " + strWhere);

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

@@ -23,7 +23,7 @@ namespace CallCenterApi.DAL
23 23
         public bool Exists(int F_AllotID)
24 24
         {
25 25
             StringBuilder strSql = new StringBuilder();
26
-            strSql.Append("select count(1) from T_Vis_TelAllot");
26
+            strSql.Append("select count(1) from T_Vis_TelAllot WITH(NOLOCK) ");
27 27
             strSql.Append(" where F_AllotID=@F_AllotID");
28 28
             SqlParameter[] parameters = {
29 29
                     new SqlParameter("@F_AllotID", SqlDbType.Int,4)
@@ -176,7 +176,7 @@ namespace CallCenterApi.DAL
176 176
         {
177 177
 
178 178
             StringBuilder strSql = new StringBuilder();
179
-            strSql.Append("select  top 1 F_AllotID,F_AllotUserID,F_AllotUserName,F_AllotZXID,F_AllotZXName,F_HFTelID,F_state,F_CreateUserID,F_CreateUserName,F_CreateDate from T_Vis_TelAllot ");
179
+            strSql.Append("select  top 1 F_AllotID,F_AllotUserID,F_AllotUserName,F_AllotZXID,F_AllotZXName,F_HFTelID,F_state,F_CreateUserID,F_CreateUserName,F_CreateDate from T_Vis_TelAllot  WITH(NOLOCK) ");
180 180
             strSql.Append(" where F_AllotID=@F_AllotID");
181 181
             SqlParameter[] parameters = {
182 182
                     new SqlParameter("@F_AllotID", SqlDbType.Int,4)
@@ -255,7 +255,7 @@ namespace CallCenterApi.DAL
255 255
         {
256 256
             StringBuilder strSql = new StringBuilder();
257 257
             strSql.Append("select F_AllotID,F_AllotUserID,F_AllotUserName,F_AllotZXID,F_AllotZXName,F_HFTelID,F_state,F_CreateUserID,F_CreateUserName,F_CreateDate ");
258
-            strSql.Append(" FROM T_Vis_TelAllot ");
258
+            strSql.Append(" FROM T_Vis_TelAllot  WITH(NOLOCK) ");
259 259
             if (strWhere.Trim() != "")
260 260
             {
261 261
                 strSql.Append(" where " + strWhere);
@@ -275,7 +275,7 @@ namespace CallCenterApi.DAL
275 275
                 strSql.Append(" top " + Top.ToString());
276 276
             }
277 277
             strSql.Append(" F_AllotID,F_AllotUserID,F_AllotUserName,F_AllotZXID,F_AllotZXName,F_HFTelID,F_state,F_CreateUserID,F_CreateUserName,F_CreateDate ");
278
-            strSql.Append(" FROM T_Vis_TelAllot ");
278
+            strSql.Append(" FROM T_Vis_TelAllot  WITH(NOLOCK) ");
279 279
             if (strWhere.Trim() != "")
280 280
             {
281 281
                 strSql.Append(" where " + strWhere);
@@ -290,7 +290,7 @@ namespace CallCenterApi.DAL
290 290
         public int GetRecordCount(string strWhere)
291 291
         {
292 292
             StringBuilder strSql = new StringBuilder();
293
-            strSql.Append("select count(1) FROM T_Vis_TelAllot ");
293
+            strSql.Append("select count(1) FROM T_Vis_TelAllot  WITH(NOLOCK) ");
294 294
             if (strWhere.Trim() != "")
295 295
             {
296 296
                 strSql.Append(" where " + strWhere);

+ 3 - 3
codegit/CallCenterApi/CallCenterApi.DAL/T_Vis_TelBZ.cs

@@ -58,7 +58,7 @@ namespace CallCenterApi.DAL
58 58
         {
59 59
             StringBuilder strSql = new StringBuilder();
60 60
             strSql.Append("select F_ID,F_Sheng,F_Store,F_Leader,F_Score,F_Telid ");
61
-            strSql.Append(" FROM T_Vis_TelBZ ");
61
+            strSql.Append(" FROM T_Vis_TelBZ  WITH(NOLOCK) ");
62 62
             if (strWhere.Trim() != "")
63 63
             {
64 64
                 strSql.Append(" where " + strWhere);
@@ -113,7 +113,7 @@ namespace CallCenterApi.DAL
113 113
                 strSql.Append(" top " + Top.ToString());
114 114
             }
115 115
             strSql.Append(" F_ID,F_Sheng,F_Store,F_Leader,F_Score,F_Telid ");
116
-            strSql.Append(" FROM T_Vis_TelBZ ");
116
+            strSql.Append(" FROM T_Vis_TelBZ  WITH(NOLOCK) ");
117 117
             if (strWhere.Trim() != "")
118 118
             {
119 119
                 strSql.Append(" where " + strWhere);
@@ -128,7 +128,7 @@ namespace CallCenterApi.DAL
128 128
         public int GetRecordCount(string strWhere)
129 129
         {
130 130
             StringBuilder strSql = new StringBuilder();
131
-            strSql.Append("select count(1) FROM T_Vis_TelBZ ");
131
+            strSql.Append("select count(1) FROM T_Vis_TelBZ  WITH(NOLOCK) ");
132 132
             if (strWhere.Trim() != "")
133 133
             {
134 134
                 strSql.Append(" where " + strWhere);

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

@@ -23,7 +23,7 @@ namespace CallCenterApi.DAL
23 23
         public bool Exists(int F_TRID)
24 24
         {
25 25
             StringBuilder strSql = new StringBuilder();
26
-            strSql.Append("select count(1) from T_Vis_TelRecords");
26
+            strSql.Append("select count(1) from T_Vis_TelRecords WITH(NOLOCK) ");
27 27
             strSql.Append(" where F_TRID=@F_TRID");
28 28
             SqlParameter[] parameters = {
29 29
                     new SqlParameter("@F_TRID", SqlDbType.Int,4)
@@ -211,7 +211,7 @@ namespace CallCenterApi.DAL
211 211
         {
212 212
 
213 213
             StringBuilder strSql = new StringBuilder();
214
-            strSql.Append("select  top 1 F_TRID,F_HFID,F_HFTelphone,F_HFState,F_HFInfo,F_HFRemark,F_HFUserId,F_HFUserCode,F_HFUserName,F_HFTime,F_CallUserID,F_CallUserName,F_CallDate,F_ISCall,F_CallResID,F_CallRes,F_ISCallRes from T_Vis_TelRecords ");
214
+            strSql.Append("select  top 1 F_TRID,F_HFID,F_HFTelphone,F_HFState,F_HFInfo,F_HFRemark,F_HFUserId,F_HFUserCode,F_HFUserName,F_HFTime,F_CallUserID,F_CallUserName,F_CallDate,F_ISCall,F_CallResID,F_CallRes,F_ISCallRes from T_Vis_TelRecords  WITH(NOLOCK) ");
215 215
             strSql.Append(" where F_TRID=@F_TRID");
216 216
             SqlParameter[] parameters = {
217 217
                     new SqlParameter("@F_TRID", SqlDbType.Int,4)
@@ -332,7 +332,7 @@ namespace CallCenterApi.DAL
332 332
         {
333 333
             StringBuilder strSql = new StringBuilder();
334 334
             strSql.Append("select F_TRID,F_HFID,F_HFTelphone,F_HFState,F_HFInfo,F_HFRemark,F_HFUserId,F_HFUserCode,F_HFUserName,F_HFTime,F_CallUserID,F_CallUserName,F_CallDate,F_ISCall,F_CallResID,F_CallRes,F_ISCallRes ");
335
-            strSql.Append(" FROM T_Vis_TelRecords ");
335
+            strSql.Append(" FROM T_Vis_TelRecords  WITH(NOLOCK) ");
336 336
             if (strWhere.Trim() != "")
337 337
             {
338 338
                 strSql.Append(" where " + strWhere);
@@ -352,7 +352,7 @@ namespace CallCenterApi.DAL
352 352
                 strSql.Append(" top " + Top.ToString());
353 353
             }
354 354
             strSql.Append(" F_TRID,F_HFID,F_HFTelphone,F_HFState,F_HFInfo,F_HFRemark,F_HFUserId,F_HFUserCode,F_HFUserName,F_HFTime,F_CallUserID,F_CallUserName,F_CallDate,F_ISCall,F_CallResID,F_CallRes,F_ISCallRes ");
355
-            strSql.Append(" FROM T_Vis_TelRecords ");
355
+            strSql.Append(" FROM T_Vis_TelRecords  WITH(NOLOCK) ");
356 356
             if (strWhere.Trim() != "")
357 357
             {
358 358
                 strSql.Append(" where " + strWhere);
@@ -367,7 +367,7 @@ namespace CallCenterApi.DAL
367 367
         public int GetRecordCount(string strWhere)
368 368
         {
369 369
             StringBuilder strSql = new StringBuilder();
370
-            strSql.Append("select count(1) FROM T_Vis_TelRecords ");
370
+            strSql.Append("select count(1) FROM T_Vis_TelRecords  WITH(NOLOCK) ");
371 371
             if (strWhere.Trim() != "")
372 372
             {
373 373
                 strSql.Append(" where " + strWhere);

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


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

@@ -20,7 +20,7 @@ namespace CallCenterApi.DAL
20 20
         public bool Exists(long F_Id)
21 21
         {
22 22
             StringBuilder strSql = new StringBuilder();
23
-            strSql.Append("select count(1) from T_WO_UserWorkOrder");
23
+            strSql.Append("select count(1) from T_WO_UserWorkOrder WITH(NOLOCK) ");
24 24
             strSql.Append(" where F_Id=@F_Id");
25 25
             SqlParameter[] parameters = {
26 26
                     new SqlParameter("@F_Id", SqlDbType.BigInt)
@@ -138,7 +138,7 @@ namespace CallCenterApi.DAL
138 138
         {
139 139
 
140 140
             StringBuilder strSql = new StringBuilder();
141
-            strSql.Append("select  top 1 F_Id,F_UserId,F_WorkOrderId from T_WO_UserWorkOrder ");
141
+            strSql.Append("select  top 1 F_Id,F_UserId,F_WorkOrderId from T_WO_UserWorkOrder  WITH(NOLOCK) ");
142 142
             strSql.Append(" where F_Id=@F_Id");
143 143
             SqlParameter[] parameters = {
144 144
                     new SqlParameter("@F_Id", SqlDbType.BigInt)
@@ -189,7 +189,7 @@ namespace CallCenterApi.DAL
189 189
         {
190 190
             StringBuilder strSql = new StringBuilder();
191 191
             strSql.Append("select F_Id,F_UserId,F_WorkOrderId ");
192
-            strSql.Append(" FROM T_WO_UserWorkOrder ");
192
+            strSql.Append(" FROM T_WO_UserWorkOrder  WITH(NOLOCK) ");
193 193
             if (strWhere.Trim() != "")
194 194
             {
195 195
                 strSql.Append(" where " + strWhere);
@@ -209,7 +209,7 @@ namespace CallCenterApi.DAL
209 209
                 strSql.Append(" top " + Top.ToString());
210 210
             }
211 211
             strSql.Append(" F_Id,F_UserId,F_WorkOrderId ");
212
-            strSql.Append(" FROM T_WO_UserWorkOrder ");
212
+            strSql.Append(" FROM T_WO_UserWorkOrder  WITH(NOLOCK) ");
213 213
             if (strWhere.Trim() != "")
214 214
             {
215 215
                 strSql.Append(" where " + strWhere);
@@ -224,7 +224,7 @@ namespace CallCenterApi.DAL
224 224
         public int GetRecordCount(string strWhere)
225 225
         {
226 226
             StringBuilder strSql = new StringBuilder();
227
-            strSql.Append("select count(1) FROM T_WO_UserWorkOrder ");
227
+            strSql.Append("select count(1) FROM T_WO_UserWorkOrder  WITH(NOLOCK) ");
228 228
             if (strWhere.Trim() != "")
229 229
             {
230 230
                 strSql.Append(" where " + strWhere);

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

@@ -23,7 +23,7 @@ namespace CallCenterApi.DAL
23 23
         public bool Exists(int F_ID)
24 24
         {
25 25
             StringBuilder strSql = new StringBuilder();
26
-            strSql.Append("select count(1) from T_Wo_Bill");
26
+            strSql.Append("select count(1) from T_Wo_Bill WITH(NOLOCK) ");
27 27
             strSql.Append(" where F_ID=@F_ID");
28 28
             SqlParameter[] parameters = {
29 29
                     new SqlParameter("@F_ID", SqlDbType.Int,4)
@@ -283,7 +283,7 @@ namespace CallCenterApi.DAL
283 283
         {
284 284
 
285 285
             StringBuilder strSql = new StringBuilder();
286
-            strSql.Append("select  top 1 * from T_Wo_Bill ");
286
+            strSql.Append("select  top 1 * from T_Wo_Bill  WITH(NOLOCK) ");
287 287
             strSql.Append(" where F_ID=@F_ID");
288 288
             SqlParameter[] parameters = {
289 289
                     new SqlParameter("@F_ID", SqlDbType.Int,4)
@@ -455,7 +455,7 @@ namespace CallCenterApi.DAL
455 455
         {
456 456
             StringBuilder strSql = new StringBuilder();
457 457
             strSql.Append("select * ");
458
-            strSql.Append(" FROM T_Wo_Bill ");
458
+            strSql.Append(" FROM T_Wo_Bill  WITH(NOLOCK) ");
459 459
             if (strWhere.Trim() != "")
460 460
             {
461 461
                 strSql.Append(" where " + strWhere);
@@ -475,7 +475,7 @@ namespace CallCenterApi.DAL
475 475
                 strSql.Append(" top " + Top.ToString());
476 476
             }
477 477
             strSql.Append(" * ");
478
-            strSql.Append(" FROM T_Wo_Bill ");
478
+            strSql.Append(" FROM T_Wo_Bill  WITH(NOLOCK) ");
479 479
             if (strWhere.Trim() != "")
480 480
             {
481 481
                 strSql.Append(" where " + strWhere);
@@ -490,7 +490,7 @@ namespace CallCenterApi.DAL
490 490
         public int GetRecordCount(string strWhere)
491 491
         {
492 492
             StringBuilder strSql = new StringBuilder();
493
-            strSql.Append("select count(1) FROM T_Wo_Bill ");
493
+            strSql.Append("select count(1) FROM T_Wo_Bill  WITH(NOLOCK) ");
494 494
             if (strWhere.Trim() != "")
495 495
             {
496 496
                 strSql.Append(" where " + strWhere);

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

@@ -23,7 +23,7 @@ namespace CallCenterApi.DAL
23 23
         public bool Exists(int F_Id)
24 24
         {
25 25
             StringBuilder strSql = new StringBuilder();
26
-            strSql.Append("select count(1) from T_Wo_BusinessManage");
26
+            strSql.Append("select count(1) from T_Wo_BusinessManage WITH(NOLOCK) ");
27 27
             strSql.Append(" where F_Id=@F_Id");
28 28
             SqlParameter[] parameters = {
29 29
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
@@ -168,7 +168,7 @@ namespace CallCenterApi.DAL
168 168
         {
169 169
 
170 170
             StringBuilder strSql = new StringBuilder();
171
-            strSql.Append("select  top 1 * from T_Wo_BusinessManage ");
171
+            strSql.Append("select  top 1 * from T_Wo_BusinessManage  WITH(NOLOCK) ");
172 172
             strSql.Append(" where F_Id=@F_Id");
173 173
             SqlParameter[] parameters = {
174 174
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
@@ -239,7 +239,7 @@ namespace CallCenterApi.DAL
239 239
         {
240 240
             StringBuilder strSql = new StringBuilder();
241 241
             strSql.Append("select * ");
242
-            strSql.Append(" FROM T_Wo_BusinessManage ");
242
+            strSql.Append(" FROM T_Wo_BusinessManage  WITH(NOLOCK) ");
243 243
             if (strWhere.Trim() != "")
244 244
             {
245 245
                 strSql.Append(" where " + strWhere);
@@ -259,7 +259,7 @@ namespace CallCenterApi.DAL
259 259
                 strSql.Append(" top " + Top.ToString());
260 260
             }
261 261
             strSql.Append(" * ");
262
-            strSql.Append(" FROM T_Wo_BusinessManage ");
262
+            strSql.Append(" FROM T_Wo_BusinessManage WITH(NOLOCK) ");
263 263
             if (strWhere.Trim() != "")
264 264
             {
265 265
                 strSql.Append(" where " + strWhere);
@@ -274,7 +274,7 @@ namespace CallCenterApi.DAL
274 274
         public int GetRecordCount(string strWhere)
275 275
         {
276 276
             StringBuilder strSql = new StringBuilder();
277
-            strSql.Append("select count(1) FROM T_Wo_BusinessManage ");
277
+            strSql.Append("select count(1) FROM T_Wo_BusinessManage  WITH(NOLOCK) ");
278 278
             if (strWhere.Trim() != "")
279 279
             {
280 280
                 strSql.Append(" where " + strWhere);

+ 3 - 3
codegit/CallCenterApi/CallCenterApi.DAL/T_Wo_WorkOrder.cs

@@ -20,7 +20,7 @@ namespace CallCenterApi.DAL
20 20
         public bool Exists(long ID)
21 21
         {
22 22
             StringBuilder strSql = new StringBuilder();
23
-            strSql.Append("select count(1) from T_Wo_WorkOrder");
23
+            strSql.Append("select count(1) from T_Wo_WorkOrder WITH(NOLOCK) ");
24 24
             strSql.Append(" where ID=@ID");
25 25
             SqlParameter[] parameters = {
26 26
                     new SqlParameter("@ID", SqlDbType.BigInt)
@@ -36,7 +36,7 @@ namespace CallCenterApi.DAL
36 36
         public bool Exists(string OrderID)
37 37
         {
38 38
             StringBuilder strSql = new StringBuilder();
39
-            strSql.Append("select count(1) from T_Wo_WorkOrder");
39
+            strSql.Append("select count(1) from T_Wo_WorkOrder WITH(NOLOCK) ");
40 40
             strSql.Append(" where WorkOrderID=@ID");
41 41
             SqlParameter[] parameters = {
42 42
                     new SqlParameter("@ID", SqlDbType.BigInt)
@@ -664,7 +664,7 @@ namespace CallCenterApi.DAL
664 664
         public int GetRecordCount(string strWhere)
665 665
         {
666 666
             StringBuilder strSql = new StringBuilder();
667
-            strSql.Append("select count(1) FROM T_Wo_WorkOrder ");
667
+            strSql.Append("select count(1) FROM T_Wo_WorkOrder  WITH(NOLOCK) ");
668 668
             if (strWhere.Trim() != "")
669 669
             {
670 670
                 strSql.Append(" where " + strWhere);

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.DAL/T_Wo_WorkOrderBase.cs

@@ -880,7 +880,7 @@ namespace CallCenterApi.DAL
880 880
         public int GetRecordCount(string strWhere)
881 881
         {
882 882
             StringBuilder strSql = new StringBuilder();
883
-            strSql.Append("select count(1) FROM T_Wo_WorkOrderBase ");
883
+            strSql.Append("select count(1) FROM T_Wo_WorkOrderBase  WITH(NOLOCK) ");
884 884
             if (strWhere.Trim() != "")
885 885
             {
886 886
                 strSql.Append(" where " + strWhere);

+ 2 - 2
codegit/CallCenterApi/CallCenterApi.DAL/T_Wo_WorkOrderItem.cs

@@ -20,7 +20,7 @@ namespace CallCenterApi.DAL
20 20
         public bool Exists(long ID)
21 21
         {
22 22
             StringBuilder strSql = new StringBuilder();
23
-            strSql.Append("select count(1) from T_Wo_WorkOrderItem");
23
+            strSql.Append("select count(1) from T_Wo_WorkOrderItem WITH(NOLOCK) ");
24 24
             strSql.Append(" where ID=@ID");
25 25
             SqlParameter[] parameters = {
26 26
                     new SqlParameter("@ID", SqlDbType.BigInt)
@@ -415,7 +415,7 @@ namespace CallCenterApi.DAL
415 415
         public int GetRecordCount(string strWhere)
416 416
         {
417 417
             StringBuilder strSql = new StringBuilder();
418
-            strSql.Append("select count(1) FROM T_Wo_WorkOrderItem ");
418
+            strSql.Append("select count(1) FROM T_Wo_WorkOrderItem  WITH(NOLOCK) ");
419 419
             if (strWhere.Trim() != "")
420 420
             {
421 421
                 strSql.Append(" where " + strWhere);

+ 5 - 5
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);

+ 4 - 4
codegit/CallCenterApi/CallCenterApi.DAL/T_Wo_WorkOrderNew.cs

@@ -294,7 +294,7 @@ namespace CallCenterApi.DAL
294 294
         {
295 295
             //该表无主键信息,请自定义主键/条件字段
296 296
             StringBuilder strSql = new StringBuilder();
297
-            strSql.Append("select  top 1 ID,WorkOrderID,CustomerName,CustomerTel,Gender,Location,Reservation,IDnumber,Department,Expert,AppointmentTime,IsMedical,Project,TranDepartment,DriveoutTime,AboutcarMan,CarTel,Condition,IsCar,TreatmentAddress,ComplaintDepartment,ComplaintTarget,IsRelevant,Remarks,Problem,IsOver,DealContents,DealTime,F_State,Files,CreateTime,Createby,CallID,IsDelete,DelTime,TypeClass,DealBy from T_Wo_WorkOrderNew ");
297
+            strSql.Append("select  top 1 ID,WorkOrderID,CustomerName,CustomerTel,Gender,Location,Reservation,IDnumber,Department,Expert,AppointmentTime,IsMedical,Project,TranDepartment,DriveoutTime,AboutcarMan,CarTel,Condition,IsCar,TreatmentAddress,ComplaintDepartment,ComplaintTarget,IsRelevant,Remarks,Problem,IsOver,DealContents,DealTime,F_State,Files,CreateTime,Createby,CallID,IsDelete,DelTime,TypeClass,DealBy from T_Wo_WorkOrderNew  WITH(NOLOCK) ");
298 298
             strSql.Append(" where ID=@ID");
299 299
             SqlParameter[] parameters = {
300 300
                  new SqlParameter("@ID", SqlDbType.BigInt)
@@ -480,7 +480,7 @@ namespace CallCenterApi.DAL
480 480
         {
481 481
             StringBuilder strSql = new StringBuilder();
482 482
             strSql.Append("select ID,WorkOrderID,CustomerName,CustomerTel,Gender,Location,Reservation,IDnumber,Department,Expert,AppointmentTime,IsMedical,Project,TranDepartment,DriveoutTime,AboutcarMan,CarTel,Condition,IsCar,TreatmentAddress,ComplaintDepartment,ComplaintTarget,IsRelevant,Remarks,Problem,IsOver,DealContents,DealTime,F_State,Files,CreateTime,Createby,CallID,IsDelete,DelTime,DealBy,TypeClass ");
483
-            strSql.Append(" FROM T_Wo_WorkOrderNew ");
483
+            strSql.Append(" FROM T_Wo_WorkOrderNew  WITH(NOLOCK) ");
484 484
             if (strWhere.Trim() != "")
485 485
             {
486 486
                 strSql.Append(" where " + strWhere);
@@ -500,7 +500,7 @@ namespace CallCenterApi.DAL
500 500
                 strSql.Append(" top " + Top.ToString());
501 501
             }
502 502
             strSql.Append(" ID,WorkOrderID,CustomerName,CustomerTel,Gender,Location,Reservation,IDnumber,Department,Expert,AppointmentTime,IsMedical,Project,TranDepartment,DriveoutTime,AboutcarMan,CarTel,Condition,IsCar,TreatmentAddress,ComplaintDepartment,ComplaintTarget,IsRelevant,Remarks,Problem,IsOver,DealContents,DealTime,F_State,Files,CreateTime,Createby,CallID,IsDelete,DelTime,TypeClass ");
503
-            strSql.Append(" FROM T_Wo_WorkOrderNew ");
503
+            strSql.Append(" FROM T_Wo_WorkOrderNew WITH(NOLOCK)  ");
504 504
             if (strWhere.Trim() != "")
505 505
             {
506 506
                 strSql.Append(" where " + strWhere);
@@ -515,7 +515,7 @@ namespace CallCenterApi.DAL
515 515
         public int GetRecordCount(string strWhere)
516 516
         {
517 517
             StringBuilder strSql = new StringBuilder();
518
-            strSql.Append("select count(1) FROM T_Wo_WorkOrderNew ");
518
+            strSql.Append("select count(1) FROM T_Wo_WorkOrderNew  WITH(NOLOCK) ");
519 519
             if (strWhere.Trim() != "")
520 520
             {
521 521
                 strSql.Append(" where " + strWhere);

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

@@ -20,7 +20,7 @@ namespace CallCenterApi.DAL
20 20
         public bool Exists(int ID)
21 21
         {
22 22
             StringBuilder strSql = new StringBuilder();
23
-            strSql.Append("select count(1) from T_Wo_WorkOrderTimeOut");
23
+            strSql.Append("select count(1) from T_Wo_WorkOrderTimeOut WITH(NOLOCK) ");
24 24
             strSql.Append(" where ID=@ID");
25 25
             SqlParameter[] parameters = {
26 26
                     new SqlParameter("@ID", SqlDbType.Int,4)
@@ -163,7 +163,7 @@ namespace CallCenterApi.DAL
163 163
         {
164 164
 
165 165
             StringBuilder strSql = new StringBuilder();
166
-            strSql.Append("select  top 1 ID,Type,MainTime,ItemTime,State,Remark,CreateUser,CreateTime from T_Wo_WorkOrderTimeOut ");
166
+            strSql.Append("select  top 1 ID,Type,MainTime,ItemTime,State,Remark,CreateUser,CreateTime from T_Wo_WorkOrderTimeOut  WITH(NOLOCK) ");
167 167
             strSql.Append(" where ID=@ID");
168 168
             SqlParameter[] parameters = {
169 169
                     new SqlParameter("@ID", SqlDbType.Int,4)
@@ -234,7 +234,7 @@ namespace CallCenterApi.DAL
234 234
         {
235 235
             StringBuilder strSql = new StringBuilder();
236 236
             strSql.Append("select ID,Type,MainTime,ItemTime,State,Remark,CreateUser,CreateTime ");
237
-            strSql.Append(" FROM T_Wo_WorkOrderTimeOut ");
237
+            strSql.Append(" FROM T_Wo_WorkOrderTimeOut  WITH(NOLOCK) ");
238 238
             if (strWhere.Trim() != "")
239 239
             {
240 240
                 strSql.Append(" where " + strWhere);
@@ -254,7 +254,7 @@ namespace CallCenterApi.DAL
254 254
                 strSql.Append(" top " + Top.ToString());
255 255
             }
256 256
             strSql.Append(" ID,Type,MainTime,ItemTime,State,Remark,CreateUser,CreateTime ");
257
-            strSql.Append(" FROM T_Wo_WorkOrderTimeOut ");
257
+            strSql.Append(" FROM T_Wo_WorkOrderTimeOut  WITH(NOLOCK) ");
258 258
             if (strWhere.Trim() != "")
259 259
             {
260 260
                 strSql.Append(" where " + strWhere);
@@ -269,7 +269,7 @@ namespace CallCenterApi.DAL
269 269
         public int GetRecordCount(string strWhere)
270 270
         {
271 271
             StringBuilder strSql = new StringBuilder();
272
-            strSql.Append("select count(1) FROM T_Wo_WorkOrderTimeOut ");
272
+            strSql.Append("select count(1) FROM T_Wo_WorkOrderTimeOut  WITH(NOLOCK) ");
273 273
             if (strWhere.Trim() != "")
274 274
             {
275 275
                 strSql.Append(" where " + strWhere);

+ 2 - 2
codegit/CallCenterApi/CallCenterApi.DAL/T_Wo_WorkOrder_Logs.cs

@@ -24,7 +24,7 @@ namespace CallCenterApi.DAL
24 24
         public bool Exists(long Id)
25 25
         {
26 26
             StringBuilder strSql = new StringBuilder();
27
-            strSql.Append("select count(1) from T_Wo_WorkOrder_Logs");
27
+            strSql.Append("select count(1) from T_Wo_WorkOrder_Logs WITH(NOLOCK) ");
28 28
             strSql.Append(" where Id=@Id");
29 29
             SqlParameter[] parameters = {
30 30
                     new SqlParameter("@Id", SqlDbType.BigInt)
@@ -318,7 +318,7 @@ namespace CallCenterApi.DAL
318 318
         public int GetRecordCount(string strWhere)
319 319
         {
320 320
             StringBuilder strSql = new StringBuilder();
321
-            strSql.Append("select count(1) FROM T_Wo_WorkOrder_Logs ");
321
+            strSql.Append("select count(1) FROM T_Wo_WorkOrder_Logs  WITH(NOLOCK) ");
322 322
             if (strWhere.Trim() != "")
323 323
             {
324 324
                 strSql.Append(" where " + strWhere);

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

@@ -24,7 +24,7 @@ namespace CallCenterApi.DAL
24 24
         public bool Exists(long Id)
25 25
         {
26 26
             StringBuilder strSql = new StringBuilder();
27
-            strSql.Append("select count(1) from T_Wo_WorkOrder_Que_Map");
27
+            strSql.Append("select count(1) from T_Wo_WorkOrder_Que_Map WITH(NOLOCK) ");
28 28
             strSql.Append(" where Id=@Id");
29 29
             SqlParameter[] parameters = {
30 30
                     new SqlParameter("@Id", SqlDbType.BigInt)
@@ -167,7 +167,7 @@ namespace CallCenterApi.DAL
167 167
         {
168 168
 
169 169
             StringBuilder strSql = new StringBuilder();
170
-            strSql.Append("select  top 1 Id,WorkOrderId,IsVisit,IsDelete,CallResultId,CreateBy,CreateTime,Remark from T_Wo_WorkOrder_Que_Map ");
170
+            strSql.Append("select  top 1 Id,WorkOrderId,IsVisit,IsDelete,CallResultId,CreateBy,CreateTime,Remark from T_Wo_WorkOrder_Que_Map  WITH(NOLOCK) ");
171 171
             strSql.Append(" where Id=@Id");
172 172
             SqlParameter[] parameters = {
173 173
                     new SqlParameter("@Id", SqlDbType.BigInt)
@@ -238,7 +238,7 @@ namespace CallCenterApi.DAL
238 238
         {
239 239
             StringBuilder strSql = new StringBuilder();
240 240
             strSql.Append("select Id,WorkOrderId,IsVisit,IsDelete,CallResultId,CreateBy,CreateTime,Remark ");
241
-            strSql.Append(" FROM T_Wo_WorkOrder_Que_Map ");
241
+            strSql.Append(" FROM T_Wo_WorkOrder_Que_Map  WITH(NOLOCK) ");
242 242
             if (strWhere.Trim() != "")
243 243
             {
244 244
                 strSql.Append(" where " + strWhere);
@@ -258,7 +258,7 @@ namespace CallCenterApi.DAL
258 258
                 strSql.Append(" top " + Top.ToString());
259 259
             }
260 260
             strSql.Append(" Id,WorkOrderId,IsVisit,IsDelete,CallResultId,CreateBy,CreateTime,Remark ");
261
-            strSql.Append(" FROM T_Wo_WorkOrder_Que_Map ");
261
+            strSql.Append(" FROM T_Wo_WorkOrder_Que_Map  WITH(NOLOCK) ");
262 262
             if (strWhere.Trim() != "")
263 263
             {
264 264
                 strSql.Append(" where " + strWhere);
@@ -273,7 +273,7 @@ namespace CallCenterApi.DAL
273 273
         public int GetRecordCount(string strWhere)
274 274
         {
275 275
             StringBuilder strSql = new StringBuilder();
276
-            strSql.Append("select count(1) FROM T_Wo_WorkOrder_Que_Map ");
276
+            strSql.Append("select count(1) FROM T_Wo_WorkOrder_Que_Map  WITH(NOLOCK) ");
277 277
             if (strWhere.Trim() != "")
278 278
             {
279 279
                 strSql.Append(" where " + strWhere);

+ 4 - 4
codegit/CallCenterApi/CallCenterApi.DAL/UserAccount.cs

@@ -239,7 +239,7 @@ namespace CallCenterApi.DAL
239 239
         {
240 240
             //该表无主键信息,请自定义主键/条件字段
241 241
             StringBuilder strSql = new StringBuilder();
242
-            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_RoleName,F_DeptName from UserAccount ");
242
+            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_RoleName,F_DeptName from UserAccount WITH(NOLOCK)  ");
243 243
             strSql.Append(" where ");
244 244
             SqlParameter[] parameters = {
245 245
 };
@@ -400,7 +400,7 @@ namespace CallCenterApi.DAL
400 400
         {
401 401
             StringBuilder strSql = new StringBuilder();
402 402
             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_RoleName,F_DeptName ");
403
-            strSql.Append(" FROM UserAccount ");
403
+            strSql.Append(" FROM UserAccount  WITH(NOLOCK) ");
404 404
             if (strWhere.Trim() != "")
405 405
             {
406 406
                 strSql.Append(" where " + strWhere);
@@ -420,7 +420,7 @@ namespace CallCenterApi.DAL
420 420
                 strSql.Append(" top " + Top.ToString());
421 421
             }
422 422
             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_RoleName,F_DeptName ");
423
-            strSql.Append(" FROM UserAccount ");
423
+            strSql.Append(" FROM UserAccount  WITH(NOLOCK) ");
424 424
             if (strWhere.Trim() != "")
425 425
             {
426 426
                 strSql.Append(" where " + strWhere);
@@ -435,7 +435,7 @@ namespace CallCenterApi.DAL
435 435
         public int GetRecordCount(string strWhere)
436 436
         {
437 437
             StringBuilder strSql = new StringBuilder();
438
-            strSql.Append("select count(1) FROM UserAccount ");
438
+            strSql.Append("select count(1) FROM UserAccount  WITH(NOLOCK) ");
439 439
             if (strWhere.Trim() != "")
440 440
             {
441 441
                 strSql.Append(" where " + strWhere);

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

@@ -25,7 +25,7 @@ namespace CallCenterApi.DAL
25 25
         public bool Exists(int article_id)
26 26
         {
27 27
             StringBuilder strSql = new StringBuilder();
28
-            strSql.Append("select count(1) from " + databaseprefix + "channel_article_goods");
28
+            strSql.Append("select count(1) from " + databaseprefix + "channel_article_goods WITH(NOLOCK)");
29 29
             strSql.Append(" where id=@article_id");
30 30
             SqlParameter[] parameters = {
31 31
                     new SqlParameter("@article_id", SqlDbType.Int,4)};
@@ -39,7 +39,7 @@ namespace CallCenterApi.DAL
39 39
         public bool Exists(string call_index)
40 40
         {
41 41
             StringBuilder strSql = new StringBuilder();
42
-            strSql.Append("select count(1) from " + databaseprefix + "channel_article_goods");
42
+            strSql.Append("select count(1) from " + databaseprefix + "channel_article_goods WITH(NOLOCK)");
43 43
             strSql.Append(" where call_index=@call_index");
44 44
             SqlParameter[] parameters = {
45 45
                     new SqlParameter("@call_index", SqlDbType.NVarChar,50)};
@@ -428,7 +428,7 @@ namespace CallCenterApi.DAL
428 428
                 strSql.Append(" top " + Top.ToString());
429 429
             }
430 430
             strSql.Append(" * ");
431
-            strSql.Append(" FROM " + databaseprefix + "channel_article_goods");
431
+            strSql.Append(" FROM " + databaseprefix + "channel_article_goods WITH(NOLOCK)");
432 432
             if (strWhere.Trim() != "")
433 433
             {
434 434
                 strSql.Append(" where " + strWhere);
@@ -492,7 +492,7 @@ namespace CallCenterApi.DAL
492 492
         public bool ExistsTitle(string title)
493 493
         {
494 494
             StringBuilder strSql = new StringBuilder();
495
-            strSql.Append("select count(1) from " + databaseprefix + "channel_article_goods");
495
+            strSql.Append("select count(1) from " + databaseprefix + "channel_article_goods WITH(NOLOCK) ");
496 496
             strSql.Append(" where title=@title");
497 497
             SqlParameter[] parameters = {
498 498
                     new SqlParameter("@title", SqlDbType.VarChar,200)};
@@ -507,7 +507,7 @@ namespace CallCenterApi.DAL
507 507
         public bool ExistsTitle(int category_id, string title)
508 508
         {
509 509
             StringBuilder strSql = new StringBuilder();
510
-            strSql.Append("select count(1) from " + databaseprefix + "channel_article_goods");
510
+            strSql.Append("select count(1) from " + databaseprefix + "channel_article_goods WITH(NOLOCK) ");
511 511
             strSql.Append(" where category_id=@category_id and title=@title");
512 512
             SqlParameter[] parameters = {
513 513
                     new SqlParameter("@category_id", SqlDbType.Int,4),
@@ -524,7 +524,7 @@ namespace CallCenterApi.DAL
524 524
         public string GetTitle(int article_id)
525 525
         {
526 526
             StringBuilder strSql = new StringBuilder();
527
-            strSql.Append("select top 1 title from " + databaseprefix + "channel_article_goods");
527
+            strSql.Append("select top 1 title from " + databaseprefix + "channel_article_goods WITH(NOLOCK)");
528 528
             strSql.Append(" where id=" + article_id);
529 529
             string title = Convert.ToString(DbHelperSQL.GetSingle(strSql.ToString()));
530 530
             if (string.IsNullOrEmpty(title))
@@ -540,7 +540,7 @@ namespace CallCenterApi.DAL
540 540
         public string GetContent(int article_id)
541 541
         {
542 542
             StringBuilder strSql = new StringBuilder();
543
-            strSql.Append("select top 1 content from " + databaseprefix + "channel_article_goods");
543
+            strSql.Append("select top 1 content from " + databaseprefix + "channel_article_goods WITH(NOLOCK) ");
544 544
             strSql.Append(" where id=" + article_id);
545 545
             string content = Convert.ToString(DbHelperSQL.GetSingle(strSql.ToString()));
546 546
             if (string.IsNullOrEmpty(content))
@@ -556,7 +556,7 @@ namespace CallCenterApi.DAL
556 556
         public string GetContent(string call_index)
557 557
         {
558 558
             StringBuilder strSql = new StringBuilder();
559
-            strSql.Append("select top 1 content from " + databaseprefix + "channel_article_goods");
559
+            strSql.Append("select top 1 content from " + databaseprefix + "channel_article_goods WITH(NOLOCK) ");
560 560
             strSql.Append(" where call_index=@call_index");
561 561
             SqlParameter[] parameters = {
562 562
                     new SqlParameter("@call_index", SqlDbType.NVarChar,50)};
@@ -575,7 +575,7 @@ namespace CallCenterApi.DAL
575 575
         public string GetImgUrl(int article_id)
576 576
         {
577 577
             StringBuilder strSql = new StringBuilder();
578
-            strSql.Append("select top 1 img_url from " + databaseprefix + "channel_article_goods");
578
+            strSql.Append("select top 1 img_url from " + databaseprefix + "channel_article_goods WITH(NOLOCK) ");
579 579
             strSql.Append(" where id=" + article_id);
580 580
             string imgsrc = Convert.ToString(DbHelperSQL.GetSingle(strSql.ToString()));
581 581
             if (string.IsNullOrEmpty(imgsrc))
@@ -591,7 +591,7 @@ namespace CallCenterApi.DAL
591 591
         public int GetClick(int article_id)
592 592
         {
593 593
             StringBuilder strSql = new StringBuilder();
594
-            strSql.Append("select top 1 click from " + databaseprefix + "channel_article_goods");
594
+            strSql.Append("select top 1 click from " + databaseprefix + "channel_article_goods WITH(NOLOCK) ");
595 595
             strSql.Append(" where id=" + article_id);
596 596
             string str = Convert.ToString(DbHelperSQL.GetSingle(strSql.ToString()));
597 597
             if (string.IsNullOrEmpty(str))
@@ -608,7 +608,7 @@ namespace CallCenterApi.DAL
608 608
         {
609 609
             StringBuilder strSql = new StringBuilder();
610 610
             strSql.Append("select count(*) as H ");
611
-            strSql.Append(" from " + databaseprefix + "channel_article_goods");
611
+            strSql.Append(" from " + databaseprefix + "channel_article_goods WITH(NOLOCK) ");
612 612
             if (strWhere.Trim() != "")
613 613
             {
614 614
                 strSql.Append(" where " + strWhere);
@@ -623,7 +623,7 @@ namespace CallCenterApi.DAL
623 623
         {
624 624
             StringBuilder strSql = new StringBuilder();
625 625
             strSql.Append("select top 1 stock_quantity ");
626
-            strSql.Append(" from " + databaseprefix + "channel_article_goods");
626
+            strSql.Append(" from " + databaseprefix + "channel_article_goods WITH(NOLOCK) ");
627 627
             strSql.Append(" where id=" + article_id);
628 628
             return Convert.ToInt32(DbHelperSQL.GetSingle(strSql.ToString()));
629 629
         }

+ 8 - 8
codegit/CallCenterApi/CallCenterApi.DAL/article_category.cs

@@ -26,7 +26,7 @@ namespace CallCenterApi.DAL
26 26
         public bool Exists(int id)
27 27
         {
28 28
             StringBuilder strSql = new StringBuilder();
29
-            strSql.Append("select count(1) from  " + databaseprefix + "article_category");
29
+            strSql.Append("select count(1) from  " + databaseprefix + "article_category WITH(NOLOCK) ");
30 30
             strSql.Append(" where id=@id");
31 31
             SqlParameter[] parameters = {
32 32
                     new SqlParameter("@id", SqlDbType.Int,4)};
@@ -263,7 +263,7 @@ namespace CallCenterApi.DAL
263 263
         public DataTable GetList(int parent_id)
264 264
         {
265 265
             StringBuilder strSql = new StringBuilder();
266
-            strSql.Append("select * from " + databaseprefix + "article_category");
266
+            strSql.Append("select * from " + databaseprefix + "article_category WITH(NOLOCK) ");
267 267
             strSql.Append("   order by sort asc,id desc");
268 268
             DataSet ds = DbHelperSQL.Query(strSql.ToString());
269 269
             DataTable oldData = ds.Tables[0] as DataTable;
@@ -298,7 +298,7 @@ namespace CallCenterApi.DAL
298 298
                 strSql.Append(" top " + top.ToString());
299 299
             }
300 300
             strSql.Append(" * ");
301
-            strSql.Append(" from " + databaseprefix + "article_category");
301
+            strSql.Append(" from " + databaseprefix + "article_category WITH(NOLOCK) ");
302 302
             strSql.Append(" where  parent_id=" + parent_id + " order by sort_id asc,id desc");
303 303
             DataSet ds = DbHelperSQL.Query(strSql.ToString());
304 304
             return ds.Tables[0];
@@ -310,7 +310,7 @@ namespace CallCenterApi.DAL
310 310
         public string GetTitle(int id)
311 311
         {
312 312
             StringBuilder strSql = new StringBuilder();
313
-            strSql.Append("select top 1 title from " + databaseprefix + "article_category");
313
+            strSql.Append("select top 1 title from " + databaseprefix + "article_category WITH(NOLOCK) ");
314 314
             strSql.Append(" where id=" + id);
315 315
             string title = Convert.ToString(DbHelperSQL.GetSingle(strSql.ToString()));
316 316
             if (string.IsNullOrEmpty(title))
@@ -326,7 +326,7 @@ namespace CallCenterApi.DAL
326 326
         public int GetParentId(int id)
327 327
         {
328 328
             StringBuilder strSql = new StringBuilder();
329
-            strSql.Append("select top 1 parent_id from " + databaseprefix + "article_category");
329
+            strSql.Append("select top 1 parent_id from " + databaseprefix + "article_category WITH(NOLOCK) ");
330 330
             strSql.Append(" where id=" + id);
331 331
             return Convert.ToInt32(DbHelperSQL.GetSingle(strSql.ToString()));
332 332
         }
@@ -361,7 +361,7 @@ namespace CallCenterApi.DAL
361 361
                 }
362 362
             }
363 363
             strSql.Append("select top 1 " + str1.ToString().Trim(','));
364
-            strSql.Append(" from " + databaseprefix + "article_category");
364
+            strSql.Append(" from " + databaseprefix + "article_category WITH(NOLOCK) ");
365 365
             strSql.Append(" where id=@id");
366 366
             SqlParameter[] parameters = {
367 367
                     new SqlParameter("@id", SqlDbType.Int,4)};
@@ -432,7 +432,7 @@ namespace CallCenterApi.DAL
432 432
             if (model != null)
433 433
             {
434 434
                 //查找子节点
435
-                string strSql = "select id from " + databaseprefix + "article_category where parentid=" + parent_id;
435
+                string strSql = "select id from " + databaseprefix + "article_category  WITH(NOLOCK) where parentid=" + parent_id;
436 436
                 DataSet ds = DbHelperSQL.Query(conn, trans, strSql);//带事务
437 437
                 foreach (DataRow dr in ds.Tables[0].Rows)
438 438
                 {
@@ -457,7 +457,7 @@ namespace CallCenterApi.DAL
457 457
         private bool IsContainNode(int id, int parent_id)
458 458
         {
459 459
             StringBuilder strSql = new StringBuilder();
460
-            strSql.Append("select count(1) from " + databaseprefix + "article_category ");
460
+            strSql.Append("select count(1) from " + databaseprefix + "article_category  WITH(NOLOCK) ");
461 461
             strSql.Append(" where class_list like '%," + id + ",%' and id=" + parent_id);
462 462
             return DbHelperSQL.Exists(strSql.ToString());
463 463
         }

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

@@ -26,7 +26,7 @@ namespace CallCenterApi.DAL
26 26
         public bool Exists(int id)
27 27
         {
28 28
             StringBuilder strSql = new StringBuilder();
29
-            strSql.Append("select count(1) from  " + databaseprefix + "orders");
29
+            strSql.Append("select count(1) from  " + databaseprefix + "orders WITH(NOLOCK) ");
30 30
             strSql.Append(" where id=@id");
31 31
             SqlParameter[] parameters = {
32 32
                     new SqlParameter("@id", SqlDbType.Int,4)};
@@ -223,7 +223,7 @@ namespace CallCenterApi.DAL
223 223
                 }
224 224
             }
225 225
             strSql.Append("select top 1 " + str1.ToString().Trim(','));
226
-            strSql.Append(" from " + databaseprefix + "orders");
226
+            strSql.Append(" from " + databaseprefix + "orders WITH(NOLOCK) ");
227 227
             strSql.Append(" where id=@id");
228 228
             SqlParameter[] parameters = {
229 229
                     new SqlParameter("@id", SqlDbType.Int,4)};
@@ -252,7 +252,7 @@ namespace CallCenterApi.DAL
252 252
                 strSql.Append(" top " + Top.ToString());
253 253
             }
254 254
             strSql.Append(" * ");
255
-            strSql.Append(" FROM  " + databaseprefix + "orders ");
255
+            strSql.Append(" FROM  " + databaseprefix + "orders  WITH(NOLOCK) ");
256 256
             if (strWhere.Trim() != "")
257 257
             {
258 258
                 strSql.Append(" where " + strWhere);
@@ -284,7 +284,7 @@ namespace CallCenterApi.DAL
284 284
         public bool Exists(string order_no)
285 285
         {
286 286
             StringBuilder strSql = new StringBuilder();
287
-            strSql.Append("select count(1) from " + databaseprefix + "orders");
287
+            strSql.Append("select count(1) from " + databaseprefix + "orders WITH(NOLOCK) ");
288 288
             strSql.Append(" where order_no=@order_no");
289 289
             SqlParameter[] parameters = {
290 290
                     new SqlParameter("@order_no", SqlDbType.NVarChar,100)};
@@ -311,7 +311,7 @@ namespace CallCenterApi.DAL
311 311
                     str1.Append(p.Name + ",");//拼接字段
312 312
                 }
313 313
             }
314
-            strSql.Append("select top 1 " + str1.ToString().Trim(',') + " from " + databaseprefix + "orders");
314
+            strSql.Append("select top 1 " + str1.ToString().Trim(',') + " from " + databaseprefix + "orders WITH(NOLOCK) ");
315 315
             strSql.Append(" where order_no=@order_no");
316 316
             SqlParameter[] parameters = {
317 317
                     new SqlParameter("@order_no", SqlDbType.NVarChar,100)};
@@ -334,7 +334,7 @@ namespace CallCenterApi.DAL
334 334
         public int GetPaymentId(string order_no)
335 335
         {
336 336
             StringBuilder strSql = new StringBuilder();
337
-            strSql.Append("select top 1 payment_id from " + databaseprefix + "orders");
337
+            strSql.Append("select top 1 payment_id from " + databaseprefix + "orders WITH(NOLOCK) ");
338 338
             strSql.Append(" where order_no=@order_no");
339 339
             SqlParameter[] parameters = {
340 340
                     new SqlParameter("@order_no", SqlDbType.NVarChar,100)};
@@ -353,7 +353,7 @@ namespace CallCenterApi.DAL
353 353
         public int GetCount(string strWhere)
354 354
         {
355 355
             StringBuilder strSql = new StringBuilder();
356
-            strSql.Append("select count(*) as H from " + databaseprefix + "orders ");
356
+            strSql.Append("select count(*) as H from " + databaseprefix + "orders  WITH(NOLOCK) ");
357 357
             if (strWhere.Trim() != "")
358 358
             {
359 359
                 strSql.Append(" where " + strWhere);

+ 3 - 3
codegit/CallCenterApi/CallCenterApi.DAL/telloc_users.cs

@@ -15,7 +15,7 @@ namespace CallCenterApi.DAL
15 15
         public Model.telloc_users GetModel(int id)
16 16
         {
17 17
             StringBuilder strSql = new StringBuilder();
18
-            strSql.Append("select  top 1 * from telloc_users ");
18
+            strSql.Append("select  top 1 * from telloc_users  WITH(NOLOCK) ");
19 19
             strSql.Append(" where id=@id");
20 20
             SqlParameter[] parameters = {
21 21
                     new SqlParameter("@id", SqlDbType.Int,4)
@@ -37,7 +37,7 @@ namespace CallCenterApi.DAL
37 37
         public Model.telloc_users GetModel(int userid, int telid)
38 38
         {
39 39
             StringBuilder strSql = new StringBuilder();
40
-            strSql.Append("select  top 1 * from telloc_users ");
40
+            strSql.Append("select  top 1 * from telloc_users  WITH(NOLOCK) ");
41 41
             strSql.Append(" where tellocid=@tellocid and userid=@userid and isdelete=0");
42 42
             SqlParameter[] parameters = {
43 43
                     new SqlParameter("@tellocid", SqlDbType.Int,4),
@@ -62,7 +62,7 @@ namespace CallCenterApi.DAL
62 62
         {
63 63
             StringBuilder strSql = new StringBuilder();
64 64
             strSql.Append("select * ");
65
-            strSql.Append(" FROM telloc_users ");
65
+            strSql.Append(" FROM telloc_users WITH(NOLOCK)  ");
66 66
             if (strWhere.Trim() != "")
67 67
             {
68 68
                 strSql.Append(" where " + strWhere);

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/SMSController.cs

@@ -851,7 +851,7 @@ namespace CallCenterApi.Interface.Controllers
851 851
                 {
852 852
 
853 853
                     dt = BLL.PagerBLL.GetListPager(
854
-                        "T_SMS_List",
854
+                        "T_SMS_List  WITH(NOLOCK) ",
855 855
                         "T_SMS_List.ID",
856 856
                         "*",
857 857
                         sql,

+ 5 - 5
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/callout/CallOutPlanController.cs

@@ -38,7 +38,7 @@ namespace CallCenterApi.Interface.Controllers.callout
38 38
 
39 39
             var recordCount = 0;
40 40
             var dt = BLL.PagerBLL.GetListPager(
41
-                    "T_Call_OutTask",
41
+                    "T_Call_OutTask   WITH(NOLOCK) ",
42 42
                     "F_TaskID",
43 43
                     "*",
44 44
                     " and F_DeleteFlag=0 " + sb.ToString(),
@@ -428,7 +428,7 @@ namespace CallCenterApi.Interface.Controllers.callout
428 428
             int recordCount = 0;
429 429
 
430 430
             dt = BLL.PagerBLL.GetListPager(
431
-                "T_Call_OutTaskTelNum",
431
+                "T_Call_OutTaskTelNum   WITH(NOLOCK) ",
432 432
                 "F_Id",
433 433
                 "*",
434 434
                 " " + sql,
@@ -641,7 +641,7 @@ namespace CallCenterApi.Interface.Controllers.callout
641 641
 
642 642
             var recordCount = 0;
643 643
             var dt = BLL.PagerBLL.GetListPager(
644
-                    "T_Call_OutTaskTelNum",
644
+                    "T_Call_OutTaskTelNum   WITH(NOLOCK) ",
645 645
                     "F_Id",
646 646
                     "*",
647 647
                      sb.ToString(),
@@ -668,7 +668,7 @@ namespace CallCenterApi.Interface.Controllers.callout
668 668
             int deptid = CurrentUser.F_DeptId;
669 669
             int recordCount = 0;
670 670
             dt = BLL.PagerBLL.GetListPager(
671
-                                    "T_Sys_UserAccount",
671
+                                    "T_Sys_UserAccount   WITH(NOLOCK) ",
672 672
                                     "F_UserId",
673 673
                                     "*",
674 674
                                     sql,
@@ -1265,7 +1265,7 @@ namespace CallCenterApi.Interface.Controllers.callout
1265 1265
             int recordCount = 0;
1266 1266
 
1267 1267
             dt = BLL.PagerBLL.GetListPager(
1268
-               "T_Call_CallRecords",
1268
+               "T_Call_CallRecords   WITH(NOLOCK) ",
1269 1269
                 "CallRecordsId",
1270 1270
                 "*",
1271 1271
                 sql,

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/callout/CallPlanController.cs

@@ -46,7 +46,7 @@ namespace CallCenterApi.Interface.Controllers.callout
46 46
             Model.PageData<Model.T_CTI_Task> pageModel = new Model.PageData<Model.T_CTI_Task>();
47 47
             var recordCount = 0;
48 48
             var dt = BLL.PagerBLL.GetListPager(
49
-                             "T_CTI_Task",
49
+                             "T_CTI_Task WITH(NOLOCK) ",
50 50
                              "TaskID",
51 51
                              "*",
52 52
                              sql,

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/knowledge/KnowledgeController.cs

@@ -52,7 +52,7 @@ namespace CallCenterApi.Interface.Controllers.knowledge
52 52
             }
53 53
             int recordCount = 0;
54 54
             dt = BLL.PagerBLL.GetListPager(
55
-                "T_RepositoryInformation",
55
+                "T_RepositoryInformation WITH(NOLOCK) ",
56 56
                 "F_RepositoryId",
57 57
                 "*",
58 58
                 sql,

Разница между файлами не показана из-за своего большого размера
+ 4 - 4
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs