浏览代码

dal ,controller添加 WITH(NOLOCK)

liyuanyuan 4 年之前
父节点
当前提交
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
         public bool Exists(int F_PagerId)
22
         public bool Exists(int F_PagerId)
23
         {
23
         {
24
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_PagerId=@F_PagerId");
26
             strSql.Append(" where F_PagerId=@F_PagerId");
27
             SqlParameter[] parameters = {
27
             SqlParameter[] parameters = {
28
                     new SqlParameter("@F_PagerId", SqlDbType.Int,4)
28
                     new SqlParameter("@F_PagerId", SqlDbType.Int,4)
195
         {
195
         {
196
 
196
 
197
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_PagerId=@F_PagerId");
199
             strSql.Append(" where F_PagerId=@F_PagerId");
200
             SqlParameter[] parameters = {
200
             SqlParameter[] parameters = {
201
                     new SqlParameter("@F_PagerId", SqlDbType.Int,4)
201
                     new SqlParameter("@F_PagerId", SqlDbType.Int,4)
277
         {
277
         {
278
             StringBuilder strSql = new StringBuilder();
278
             StringBuilder strSql = new StringBuilder();
279
             strSql.Append("select * ");
279
             strSql.Append("select * ");
280
-            strSql.Append(" FROM T_Ask_PagerInfo ");
280
+            strSql.Append(" FROM T_Ask_PagerInfo  WITH(NOLOCK) ");
281
             if (strWhere.Trim() != "")
281
             if (strWhere.Trim() != "")
282
             {
282
             {
283
                 strSql.Append(" where " + strWhere);
283
                 strSql.Append(" where " + strWhere);
297
                 strSql.Append(" top " + Top.ToString());
297
                 strSql.Append(" top " + Top.ToString());
298
             }
298
             }
299
             strSql.Append(" * ");
299
             strSql.Append(" * ");
300
-            strSql.Append(" FROM T_Ask_PagerInfo ");
300
+            strSql.Append(" FROM T_Ask_PagerInfo  WITH(NOLOCK) ");
301
             if (strWhere.Trim() != "")
301
             if (strWhere.Trim() != "")
302
             {
302
             {
303
                 strSql.Append(" where " + strWhere);
303
                 strSql.Append(" where " + strWhere);
312
         public int GetRecordCount(string strWhere)
312
         public int GetRecordCount(string strWhere)
313
         {
313
         {
314
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
316
             if (strWhere.Trim() != "")
317
             {
317
             {
318
                 strSql.Append(" where " + strWhere);
318
                 strSql.Append(" where " + strWhere);

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

22
         public bool Exists(int F_ItemId)
22
         public bool Exists(int F_ItemId)
23
         {
23
         {
24
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_ItemId=@F_ItemId");
26
             strSql.Append(" where F_ItemId=@F_ItemId");
27
             SqlParameter[] parameters = {
27
             SqlParameter[] parameters = {
28
                     new SqlParameter("@F_ItemId", SqlDbType.Int,4)
28
                     new SqlParameter("@F_ItemId", SqlDbType.Int,4)
180
         {
180
         {
181
 
181
 
182
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_ItemId=@F_ItemId");
184
             strSql.Append(" where F_ItemId=@F_ItemId");
185
             SqlParameter[] parameters = {
185
             SqlParameter[] parameters = {
186
                     new SqlParameter("@F_ItemId", SqlDbType.Int,4)
186
                     new SqlParameter("@F_ItemId", SqlDbType.Int,4)
229
         public DataSet GetList(string strWhere)
229
         public DataSet GetList(string strWhere)
230
         {
230
         {
231
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" FROM T_Ask_PagerItems ");
233
             strSql.Append(" FROM T_Ask_PagerItems ");
234
             if (strWhere.Trim() != "")
234
             if (strWhere.Trim() != "")
235
             {
235
             {
250
                 strSql.Append(" top " + Top.ToString());
250
                 strSql.Append(" top " + Top.ToString());
251
             }
251
             }
252
             strSql.Append(" F_ItemId,F_PagerId,F_QuestionId,F_Remark,F_Sort,F_Score ");
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
             if (strWhere.Trim() != "")
254
             if (strWhere.Trim() != "")
255
             {
255
             {
256
                 strSql.Append(" where " + strWhere);
256
                 strSql.Append(" where " + strWhere);
265
         public int GetRecordCount(string strWhere)
265
         public int GetRecordCount(string strWhere)
266
         {
266
         {
267
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
269
             if (strWhere.Trim() != "")
270
             {
270
             {
271
                 strSql.Append(" where " + strWhere);
271
                 strSql.Append(" where " + strWhere);

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

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

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

22
         public bool Exists(int F_CategoryId)
22
         public bool Exists(int F_CategoryId)
23
         {
23
         {
24
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_CategoryId=@F_CategoryId");
26
             strSql.Append(" where F_CategoryId=@F_CategoryId");
27
             SqlParameter[] parameters = {
27
             SqlParameter[] parameters = {
28
                     new SqlParameter("@F_CategoryId", SqlDbType.Int,4)
28
                     new SqlParameter("@F_CategoryId", SqlDbType.Int,4)
200
         {
200
         {
201
 
201
 
202
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_CategoryId=@F_CategoryId");
204
             strSql.Append(" where F_CategoryId=@F_CategoryId");
205
             SqlParameter[] parameters = {
205
             SqlParameter[] parameters = {
206
                     new SqlParameter("@F_CategoryId", SqlDbType.Int,4)
206
                     new SqlParameter("@F_CategoryId", SqlDbType.Int,4)
286
         {
286
         {
287
             StringBuilder strSql = new StringBuilder();
287
             StringBuilder strSql = new StringBuilder();
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 ");
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
             if (strWhere.Trim() != "")
290
             if (strWhere.Trim() != "")
291
             {
291
             {
292
                 strSql.Append(" where " + strWhere);
292
                 strSql.Append(" where " + strWhere);
306
                 strSql.Append(" top " + Top.ToString());
306
                 strSql.Append(" top " + Top.ToString());
307
             }
307
             }
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 ");
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
             if (strWhere.Trim() != "")
310
             if (strWhere.Trim() != "")
311
             {
311
             {
312
                 strSql.Append(" where " + strWhere);
312
                 strSql.Append(" where " + strWhere);
321
         public int GetRecordCount(string strWhere)
321
         public int GetRecordCount(string strWhere)
322
         {
322
         {
323
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
325
             if (strWhere.Trim() != "")
326
             {
326
             {
327
                 strSql.Append(" where " + strWhere);
327
                 strSql.Append(" where " + strWhere);

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

22
         public bool Exists(int F_ItemId)
22
         public bool Exists(int F_ItemId)
23
         {
23
         {
24
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_ItemId=@F_ItemId");
26
             strSql.Append(" where F_ItemId=@F_ItemId");
27
             SqlParameter[] parameters = {
27
             SqlParameter[] parameters = {
28
 					new SqlParameter("@F_ItemId", SqlDbType.Int,4)
28
 					new SqlParameter("@F_ItemId", SqlDbType.Int,4)
186
         {
186
         {
187
 
187
 
188
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_ItemId=@F_ItemId");
190
             strSql.Append(" where F_ItemId=@F_ItemId");
191
             SqlParameter[] parameters = {
191
             SqlParameter[] parameters = {
192
 					new SqlParameter("@F_ItemId", SqlDbType.Int,4)
192
 					new SqlParameter("@F_ItemId", SqlDbType.Int,4)
240
         {
240
         {
241
             StringBuilder strSql = new StringBuilder();
241
             StringBuilder strSql = new StringBuilder();
242
             strSql.Append("select F_ItemId,F_QuestionId,F_ItemName,F_IsAnswer,F_Remark,F_Sort,F_SortModel ");
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
             if (strWhere.Trim() != "")
244
             if (strWhere.Trim() != "")
245
             {
245
             {
246
                 strSql.Append(" where " + strWhere);
246
                 strSql.Append(" where " + strWhere);
260
                 strSql.Append(" top " + Top.ToString());
260
                 strSql.Append(" top " + Top.ToString());
261
             }
261
             }
262
             strSql.Append(" F_ItemId,F_QuestionId,F_ItemName,F_IsAnswer,F_Remark,F_Sort,F_SortModel ");
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
             if (strWhere.Trim() != "")
264
             if (strWhere.Trim() != "")
265
             {
265
             {
266
                 strSql.Append(" where " + strWhere);
266
                 strSql.Append(" where " + strWhere);
275
         public int GetRecordCount(string strWhere)
275
         public int GetRecordCount(string strWhere)
276
         {
276
         {
277
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
279
             if (strWhere.Trim() != "")
280
             {
280
             {
281
                 strSql.Append(" where " + strWhere);
281
                 strSql.Append(" where " + strWhere);

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

21
         public bool Exists(long TaskID)
21
         public bool Exists(long TaskID)
22
         {
22
         {
23
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where TaskID=@TaskID");
25
             strSql.Append(" where TaskID=@TaskID");
26
             SqlParameter[] parameters = {
26
             SqlParameter[] parameters = {
27
                     new SqlParameter("@TaskID", SqlDbType.BigInt)
27
                     new SqlParameter("@TaskID", SqlDbType.BigInt)
366
         {
366
         {
367
 
367
 
368
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where State>=0 and  TaskID=@TaskID ");
370
             strSql.Append(" where State>=0 and  TaskID=@TaskID ");
371
             SqlParameter[] parameters = {
371
             SqlParameter[] parameters = {
372
                     new SqlParameter("@TaskID", SqlDbType.BigInt)
372
                     new SqlParameter("@TaskID", SqlDbType.BigInt)
538
         {
538
         {
539
             StringBuilder strSql = new StringBuilder();
539
             StringBuilder strSql = new StringBuilder();
540
             strSql.Append("select * FROM ");
540
             strSql.Append("select * FROM ");
541
-            strSql.Append(" FROM vw_CTI_TaskPager ");
541
+            strSql.Append(" FROM vw_CTI_TaskPager   WITH(NOLOCK) ");
542
 
542
 
543
             return DbHelperSQL.Query(strSql.ToString());
543
             return DbHelperSQL.Query(strSql.ToString());
544
         }
544
         }
550
         {
550
         {
551
             StringBuilder strSql = new StringBuilder();
551
             StringBuilder strSql = new StringBuilder();
552
             strSql.Append("select * ");
552
             strSql.Append("select * ");
553
-            strSql.Append(" FROM vw_CTI_TaskPager ");
553
+            strSql.Append(" FROM vw_CTI_TaskPager   WITH(NOLOCK) ");
554
             if (strWhere.Trim() != "")
554
             if (strWhere.Trim() != "")
555
             {
555
             {
556
                 strSql.Append(" where " + strWhere);
556
                 strSql.Append(" where " + strWhere);
570
                 strSql.Append(" top " + Top.ToString());
570
                 strSql.Append(" top " + Top.ToString());
571
             }
571
             }
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 ");
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
             if (strWhere.Trim() != "")
574
             if (strWhere.Trim() != "")
575
             {
575
             {
576
                 strSql.Append(" where " + strWhere);
576
                 strSql.Append(" where " + strWhere);
585
         public int GetRecordCount(string strWhere)
585
         public int GetRecordCount(string strWhere)
586
         {
586
         {
587
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
589
             if (strWhere.Trim() != "")
590
             {
590
             {
591
                 strSql.Append(" where " + strWhere);
591
                 strSql.Append(" where " + strWhere);

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

49
         {
49
         {
50
             StringBuilder strSql = new StringBuilder();
50
             StringBuilder strSql = new StringBuilder();
51
             strSql.Append("select * ");
51
             strSql.Append("select * ");
52
-            strSql.Append(" FROM T_CTI_TaskAgent ");
52
+            strSql.Append(" FROM T_CTI_TaskAgent   WITH(NOLOCK) ");
53
             if (strWhere.Trim() != "")
53
             if (strWhere.Trim() != "")
54
             {
54
             {
55
                 strSql.Append(" where " + strWhere);
55
                 strSql.Append(" where " + strWhere);
60
         public Model.T_CTI_TaskAgent GetModel(int taskId)
60
         public Model.T_CTI_TaskAgent GetModel(int taskId)
61
         {
61
         {
62
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where TaskId=@TaskId ");
64
             strSql.Append(" where TaskId=@TaskId ");
65
             SqlParameter[] parameters = {
65
             SqlParameter[] parameters = {
66
                     new SqlParameter("@TaskId",taskId)
66
                     new SqlParameter("@TaskId",taskId)

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

17
         {
17
         {
18
             StringBuilder strSql = new StringBuilder();
18
             StringBuilder strSql = new StringBuilder();
19
             strSql.Append("select [Date],TaskId,AllCount,CalledCount,connectedCount,ConnectedAgentCount,UpdateTime ");
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
             if (strWhere.Trim() != "")
21
             if (strWhere.Trim() != "")
22
             {
22
             {
23
                 strSql.Append(" where " + strWhere);
23
                 strSql.Append(" where " + strWhere);
33
         public DataSet GetList()
33
         public DataSet GetList()
34
         {
34
         {
35
             StringBuilder strSql = new StringBuilder();
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
             return DbHelperSQL.Query(strSql.ToString());
37
             return DbHelperSQL.Query(strSql.ToString());
38
         }
38
         }
39
         /// <summary>
39
         /// <summary>

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

17
         {
17
         {
18
             StringBuilder strSql = new StringBuilder();
18
             StringBuilder strSql = new StringBuilder();
19
             strSql.Append("select [Date],TaskId,PhonePart,Province,City,AllCount,CalledCount,connectedCount,ConnectedAgentCount,UpdateTime");
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
             if (strWhere.Trim() != "")
21
             if (strWhere.Trim() != "")
22
             {
22
             {
23
                 strSql.Append(" where " + strWhere);
23
                 strSql.Append(" where " + strWhere);

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

49
         {
49
         {
50
             StringBuilder strSql = new StringBuilder();
50
             StringBuilder strSql = new StringBuilder();
51
             strSql.Append("select * ");
51
             strSql.Append("select * ");
52
-            strSql.Append(" FROM T_CTI_TaskRecord ");
52
+            strSql.Append(" FROM T_CTI_TaskRecord   WITH(NOLOCK) ");
53
             if (strWhere.Trim() != "")
53
             if (strWhere.Trim() != "")
54
             {
54
             {
55
                 strSql.Append(" where " + strWhere);
55
                 strSql.Append(" where " + strWhere);
60
         public Model.T_CTI_TaskRecord GetModel(int id)
60
         public Model.T_CTI_TaskRecord GetModel(int id)
61
         {
61
         {
62
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where Id=@Id");
64
             strSql.Append(" where Id=@Id");
65
             SqlParameter[] parameters = {
65
             SqlParameter[] parameters = {
66
                     new SqlParameter("@Id",id)
66
                     new SqlParameter("@Id",id)

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

32
         public bool Exists(int F_BlackId)
32
         public bool Exists(int F_BlackId)
33
         {
33
         {
34
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_BlackId=@F_BlackId");
36
             strSql.Append(" where F_BlackId=@F_BlackId");
37
             SqlParameter[] parameters = {
37
             SqlParameter[] parameters = {
38
                     new SqlParameter("@F_BlackId", SqlDbType.Int,4)
38
                     new SqlParameter("@F_BlackId", SqlDbType.Int,4)
185
         {
185
         {
186
 
186
 
187
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_BlackId=@F_BlackId");
189
             strSql.Append(" where F_BlackId=@F_BlackId");
190
             SqlParameter[] parameters = {
190
             SqlParameter[] parameters = {
191
                     new SqlParameter("@F_BlackId", SqlDbType.Int,4)
191
                     new SqlParameter("@F_BlackId", SqlDbType.Int,4)
271
         {
271
         {
272
             StringBuilder strSql = new StringBuilder();
272
             StringBuilder strSql = new StringBuilder();
273
             strSql.Append("select F_BlackId,F_CallId,F_TelPhone,F_BlackType,F_SetTime,F_RemoveTime,F_Describe,F_UserId,F_InterceptNum,F_IsDelete ");
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
             if (strWhere.Trim() != "")
275
             if (strWhere.Trim() != "")
276
             {
276
             {
277
                 strSql.Append(" where " + strWhere);
277
                 strSql.Append(" where " + strWhere);
291
                 strSql.Append(" top " + Top.ToString());
291
                 strSql.Append(" top " + Top.ToString());
292
             }
292
             }
293
             strSql.Append(" F_BlackId,F_CallId,F_TelPhone,F_BlackType,F_SetTime,F_RemoveTime,F_Describe,F_UserId,F_InterceptNum,F_IsDelete ");
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
             if (strWhere.Trim() != "")
295
             if (strWhere.Trim() != "")
296
             {
296
             {
297
                 strSql.Append(" where " + strWhere);
297
                 strSql.Append(" where " + strWhere);
306
         public int GetRecordCount(string strWhere)
306
         public int GetRecordCount(string strWhere)
307
         {
307
         {
308
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
310
             if (strWhere.Trim() != "")
311
             {
311
             {
312
                 strSql.Append(" where " + strWhere);
312
                 strSql.Append(" where " + strWhere);

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

32
         public bool Exists(int CallRecordsId)
32
         public bool Exists(int CallRecordsId)
33
         {
33
         {
34
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where CallRecordsId=@CallRecordsId");
36
             strSql.Append(" where CallRecordsId=@CallRecordsId");
37
             SqlParameter[] parameters = {
37
             SqlParameter[] parameters = {
38
                     new SqlParameter("@CallRecordsId", SqlDbType.Int,4)
38
                     new SqlParameter("@CallRecordsId", SqlDbType.Int,4)
693
         public int GetRecordCount(string strWhere)
693
         public int GetRecordCount(string strWhere)
694
         {
694
         {
695
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
697
             if (strWhere.Trim() != "")
698
             {
698
             {
699
                 strSql.Append(" where " + strWhere);
699
                 strSql.Append(" where " + strWhere);
887
         public Model.T_Call_CallRecords GetModelByTelphone(string CallNumber)
887
         public Model.T_Call_CallRecords GetModelByTelphone(string CallNumber)
888
         {
888
         {
889
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where CallNumber=@CallNumber order by BeginTime desc");
891
             strSql.Append(" where CallNumber=@CallNumber order by BeginTime desc");
892
             SqlParameter[] parameters = {
892
             SqlParameter[] parameters = {
893
                     new SqlParameter("@CallNumber", SqlDbType.VarChar,100)
893
                     new SqlParameter("@CallNumber", SqlDbType.VarChar,100)
911
         public Model.T_Call_CallRecords GetModelByCallId(string CallId)
911
         public Model.T_Call_CallRecords GetModelByCallId(string CallId)
912
         {
912
         {
913
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where CallId=@CallId order by BeginTime desc");
915
             strSql.Append(" where CallId=@CallId order by BeginTime desc");
916
             SqlParameter[] parameters = {
916
             SqlParameter[] parameters = {
917
                     new SqlParameter("@CallId", SqlDbType.VarChar,50)
917
                     new SqlParameter("@CallId", SqlDbType.VarChar,50)
932
         public Model.T_Call_CallRecords GetModelByRecordId(string CallId)
932
         public Model.T_Call_CallRecords GetModelByRecordId(string CallId)
933
         {
933
         {
934
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where CallRecordsId=@CallRecordsId order by BeginTime desc");
936
             strSql.Append(" where CallRecordsId=@CallRecordsId order by BeginTime desc");
937
             SqlParameter[] parameters = {
937
             SqlParameter[] parameters = {
938
                     new SqlParameter("@CallRecordsId", SqlDbType.Int)
938
                     new SqlParameter("@CallRecordsId", SqlDbType.Int)

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

102
         {
102
         {
103
 
103
 
104
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_CallRLDID=@F_CallRLDID");
106
             strSql.Append(" where F_CallRLDID=@F_CallRLDID");
107
             SqlParameter[] parameters = {
107
             SqlParameter[] parameters = {
108
                     new SqlParameter("@F_CallRLDID", SqlDbType.Int,4)
108
                     new SqlParameter("@F_CallRLDID", SqlDbType.Int,4)
183
         {
183
         {
184
             StringBuilder strSql = new StringBuilder();
184
             StringBuilder strSql = new StringBuilder();
185
             strSql.Append("select F_CallRLDID,F_CallRecordsID,F_IsListen,F_IsDownload,F_OptID,F_OptBy,F_OptDate ");
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
             if (strWhere.Trim() != "")
187
             if (strWhere.Trim() != "")
188
             {
188
             {
189
                 strSql.Append(" where " + strWhere);
189
                 strSql.Append(" where " + strWhere);
203
                 strSql.Append(" top " + Top.ToString());
203
                 strSql.Append(" top " + Top.ToString());
204
             }
204
             }
205
             strSql.Append(" F_CallRLDID,F_CallRecordsID,F_IsListen,F_IsDownload,F_OptID,F_OptBy,F_OptDate ");
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
             if (strWhere.Trim() != "")
207
             if (strWhere.Trim() != "")
208
             {
208
             {
209
                 strSql.Append(" where " + strWhere);
209
                 strSql.Append(" where " + strWhere);
218
         public int GetRecordCount(string strWhere)
218
         public int GetRecordCount(string strWhere)
219
         {
219
         {
220
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
222
             if (strWhere.Trim() != "")
223
             {
223
             {
224
                 strSql.Append(" where " + strWhere);
224
                 strSql.Append(" where " + strWhere);

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

23
         public bool Exists(int CallRecordsId)
23
         public bool Exists(int CallRecordsId)
24
         {
24
         {
25
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where CallRecordsId=@CallRecordsId");
27
             strSql.Append(" where CallRecordsId=@CallRecordsId");
28
             SqlParameter[] parameters = {
28
             SqlParameter[] parameters = {
29
                     new SqlParameter("@CallRecordsId", SqlDbType.Int,4)
29
                     new SqlParameter("@CallRecordsId", SqlDbType.Int,4)
417
         {
417
         {
418
 
418
 
419
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where CallRecordsId=@CallRecordsId");
421
             strSql.Append(" where CallRecordsId=@CallRecordsId");
422
             SqlParameter[] parameters = {
422
             SqlParameter[] parameters = {
423
                     new SqlParameter("@CallRecordsId", SqlDbType.Int,4)
423
                     new SqlParameter("@CallRecordsId", SqlDbType.Int,4)
642
         {
642
         {
643
             StringBuilder strSql = new StringBuilder();
643
             StringBuilder strSql = new StringBuilder();
644
             strSql.Append("select * ");
644
             strSql.Append("select * ");
645
-            strSql.Append(" FROM T_Call_CallRecords ");
645
+            strSql.Append(" FROM T_Call_CallRecords   WITH(NOLOCK) ");
646
             if (strWhere.Trim() != "")
646
             if (strWhere.Trim() != "")
647
             {
647
             {
648
                 strSql.Append(" where " + strWhere);
648
                 strSql.Append(" where " + strWhere);
662
                 strSql.Append(" top " + Top.ToString());
662
                 strSql.Append(" top " + Top.ToString());
663
             }
663
             }
664
             strSql.Append(" * ");
664
             strSql.Append(" * ");
665
-            strSql.Append(" FROM T_Call_CallRecords ");
665
+            strSql.Append(" FROM T_Call_CallRecords   WITH(NOLOCK) ");
666
             if (strWhere.Trim() != "")
666
             if (strWhere.Trim() != "")
667
             {
667
             {
668
                 strSql.Append(" where " + strWhere);
668
                 strSql.Append(" where " + strWhere);
677
         public int GetRecordCount(string strWhere)
677
         public int GetRecordCount(string strWhere)
678
         {
678
         {
679
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
681
             if (strWhere.Trim() != "")
682
             {
682
             {
683
                 strSql.Append(" where " + strWhere);
683
                 strSql.Append(" where " + strWhere);

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

32
         public bool Exists(int F_Id)
32
         public bool Exists(int F_Id)
33
         {
33
         {
34
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_Id=@F_Id");
36
             strSql.Append(" where F_Id=@F_Id");
37
             SqlParameter[] parameters = {
37
             SqlParameter[] parameters = {
38
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
38
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
200
         {
200
         {
201
 
201
 
202
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_Id=@F_Id");
204
             strSql.Append(" where F_Id=@F_Id");
205
             SqlParameter[] parameters = {
205
             SqlParameter[] parameters = {
206
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
206
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
291
         {
291
         {
292
             StringBuilder strSql = new StringBuilder();
292
             StringBuilder strSql = new StringBuilder();
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 ");
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
             if (strWhere.Trim() != "")
295
             if (strWhere.Trim() != "")
296
             {
296
             {
297
                 strSql.Append(" where " + strWhere);
297
                 strSql.Append(" where " + strWhere);
311
                 strSql.Append(" top " + Top.ToString());
311
                 strSql.Append(" top " + Top.ToString());
312
             }
312
             }
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 ");
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
             if (strWhere.Trim() != "")
315
             if (strWhere.Trim() != "")
316
             {
316
             {
317
                 strSql.Append(" where " + strWhere);
317
                 strSql.Append(" where " + strWhere);
326
         public int GetRecordCount(string strWhere)
326
         public int GetRecordCount(string strWhere)
327
         {
327
         {
328
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
330
             if (strWhere.Trim() != "")
331
             {
331
             {
332
                 strSql.Append(" where " + strWhere);
332
                 strSql.Append(" where " + strWhere);

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

198
         {
198
         {
199
 
199
 
200
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_AnswerID=@F_AnswerID");
202
             strSql.Append(" where F_AnswerID=@F_AnswerID");
203
             SqlParameter[] parameters = {
203
             SqlParameter[] parameters = {
204
                     new SqlParameter("@F_AnswerID", SqlDbType.Int,4)
204
                     new SqlParameter("@F_AnswerID", SqlDbType.Int,4)
289
         {
289
         {
290
             StringBuilder strSql = new StringBuilder();
290
             StringBuilder strSql = new StringBuilder();
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 ");
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
             if (strWhere.Trim() != "")
293
             if (strWhere.Trim() != "")
294
             {
294
             {
295
                 strSql.Append(" where " + strWhere);
295
                 strSql.Append(" where " + strWhere);
309
                 strSql.Append(" top " + Top.ToString());
309
                 strSql.Append(" top " + Top.ToString());
310
             }
310
             }
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 ");
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
             if (strWhere.Trim() != "")
313
             if (strWhere.Trim() != "")
314
             {
314
             {
315
                 strSql.Append(" where " + strWhere);
315
                 strSql.Append(" where " + strWhere);
324
         public int GetRecordCount(string strWhere)
324
         public int GetRecordCount(string strWhere)
325
         {
325
         {
326
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
328
             if (strWhere.Trim() != "")
329
             {
329
             {
330
                 strSql.Append(" where " + strWhere);
330
                 strSql.Append(" where " + strWhere);

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

178
         {
178
         {
179
 
179
 
180
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_TaskID=@F_TaskID");
182
             strSql.Append(" where F_TaskID=@F_TaskID");
183
             SqlParameter[] parameters = {
183
             SqlParameter[] parameters = {
184
                     new SqlParameter("@F_TaskID", SqlDbType.Int,4)
184
                     new SqlParameter("@F_TaskID", SqlDbType.Int,4)
269
         {
269
         {
270
             StringBuilder strSql = new StringBuilder();
270
             StringBuilder strSql = new StringBuilder();
271
             strSql.Append("select * ");
271
             strSql.Append("select * ");
272
-            strSql.Append(" FROM T_Call_OutTask ");
272
+            strSql.Append(" FROM T_Call_OutTask   WITH(NOLOCK) ");
273
             if (strWhere.Trim() != "")
273
             if (strWhere.Trim() != "")
274
             {
274
             {
275
                 strSql.Append(" where " + strWhere);
275
                 strSql.Append(" where " + strWhere);
289
                 strSql.Append(" top " + Top.ToString());
289
                 strSql.Append(" top " + Top.ToString());
290
             }
290
             }
291
             strSql.Append(" * ");
291
             strSql.Append(" * ");
292
-            strSql.Append(" FROM T_Call_OutTask ");
292
+            strSql.Append(" FROM T_Call_OutTask   WITH(NOLOCK) ");
293
             if (strWhere.Trim() != "")
293
             if (strWhere.Trim() != "")
294
             {
294
             {
295
                 strSql.Append(" where " + strWhere);
295
                 strSql.Append(" where " + strWhere);
304
         public int GetRecordCount(string strWhere)
304
         public int GetRecordCount(string strWhere)
305
         {
305
         {
306
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
308
             if (strWhere.Trim() != "")
309
             {
309
             {
310
                 strSql.Append(" where " + strWhere);
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
         public bool Exists(int F_Id)
23
         public bool Exists(int F_Id)
24
         {
24
         {
25
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_Id=@F_Id");
27
             strSql.Append(" where F_Id=@F_Id");
28
             SqlParameter[] parameters = {
28
             SqlParameter[] parameters = {
29
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
29
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
433
         {
433
         {
434
 
434
 
435
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_Id=@F_Id");
437
             strSql.Append(" where F_Id=@F_Id");
438
             SqlParameter[] parameters = {
438
             SqlParameter[] parameters = {
439
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
439
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
700
         {
700
         {
701
             StringBuilder strSql = new StringBuilder();
701
             StringBuilder strSql = new StringBuilder();
702
             strSql.Append("select * ");
702
             strSql.Append("select * ");
703
-            strSql.Append(" FROM T_Call_OutTaskTelNum ");
703
+            strSql.Append(" FROM T_Call_OutTaskTelNum   WITH(NOLOCK) ");
704
             if (strWhere.Trim() != "")
704
             if (strWhere.Trim() != "")
705
             {
705
             {
706
                 strSql.Append(" where " + strWhere);
706
                 strSql.Append(" where " + strWhere);
720
                 strSql.Append(" top " + Top.ToString());
720
                 strSql.Append(" top " + Top.ToString());
721
             }
721
             }
722
             strSql.Append(" * ");
722
             strSql.Append(" * ");
723
-            strSql.Append(" FROM T_Call_OutTaskTelNum ");
723
+            strSql.Append(" FROM T_Call_OutTaskTelNum   WITH(NOLOCK) ");
724
             if (strWhere.Trim() != "")
724
             if (strWhere.Trim() != "")
725
             {
725
             {
726
                 strSql.Append(" where " + strWhere);
726
                 strSql.Append(" where " + strWhere);
735
         public int GetRecordCount(string strWhere)
735
         public int GetRecordCount(string strWhere)
736
         {
736
         {
737
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
739
             if (strWhere.Trim() != "")
740
             {
740
             {
741
                 strSql.Append(" where " + strWhere);
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
         {
114
         {
115
             //该表无主键信息,请自定义主键/条件字段
115
             //该表无主键信息,请自定义主键/条件字段
116
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where ");
118
             strSql.Append(" where ");
119
             SqlParameter[] parameters = {
119
             SqlParameter[] parameters = {
120
 };
120
 };
154
         {
154
         {
155
             StringBuilder strSql = new StringBuilder();
155
             StringBuilder strSql = new StringBuilder();
156
             strSql.Append("select F_WORKORDERID,CallId,F_WORKORDERSTATEID,TalkLongTime ");
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
             if (strWhere.Trim() != "")
158
             if (strWhere.Trim() != "")
159
             {
159
             {
160
                 strSql.Append(" where " + strWhere);
160
                 strSql.Append(" where " + strWhere);
174
                 strSql.Append(" top " + Top.ToString());
174
                 strSql.Append(" top " + Top.ToString());
175
             }
175
             }
176
             strSql.Append(" F_WORKORDERID,CallId,F_WORKORDERSTATEID,TalkLongTime ");
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
             if (strWhere.Trim() != "")
178
             if (strWhere.Trim() != "")
179
             {
179
             {
180
                 strSql.Append(" where " + strWhere);
180
                 strSql.Append(" where " + strWhere);
189
         public int GetRecordCount(string strWhere)
189
         public int GetRecordCount(string strWhere)
190
         {
190
         {
191
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
193
             if (strWhere.Trim() != "")
194
             {
194
             {
195
                 strSql.Append(" where " + strWhere);
195
                 strSql.Append(" where " + strWhere);

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

155
         {
155
         {
156
 
156
 
157
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_ZBID=@F_ZBID");
159
             strSql.Append(" where F_ZBID=@F_ZBID");
160
             SqlParameter[] parameters = {
160
             SqlParameter[] parameters = {
161
                     new SqlParameter("@F_ZBID", SqlDbType.Int,4)
161
                     new SqlParameter("@F_ZBID", SqlDbType.Int,4)
230
         {
230
         {
231
             StringBuilder strSql = new StringBuilder();
231
             StringBuilder strSql = new StringBuilder();
232
             strSql.Append("select F_ZBID,F_ZBDH,F_GroupName,F_Groupid,F_Remark,F_CallinTime,F_CreateBy,F_CreateTime,F_CreateID ");
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
             if (strWhere.Trim() != "")
234
             if (strWhere.Trim() != "")
235
             {
235
             {
236
                 strSql.Append(" where " + strWhere);
236
                 strSql.Append(" where " + strWhere);
250
                 strSql.Append(" top " + Top.ToString());
250
                 strSql.Append(" top " + Top.ToString());
251
             }
251
             }
252
             strSql.Append(" F_ZBID,F_ZBDH,F_GroupName,F_Groupid,F_Remark,F_CallinTime,F_CreateBy,F_CreateTime,F_CreateID ");
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
             if (strWhere.Trim() != "")
254
             if (strWhere.Trim() != "")
255
             {
255
             {
256
                 strSql.Append(" where " + strWhere);
256
                 strSql.Append(" where " + strWhere);
264
         public int GetRecordCount(string strWhere)
264
         public int GetRecordCount(string strWhere)
265
         {
265
         {
266
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
268
             if (strWhere.Trim() != "")
269
             {
269
             {
270
                 strSql.Append(" where " + strWhere);
270
                 strSql.Append(" where " + strWhere);

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

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

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

32
         public bool Exists(int F_ManId)
32
         public bool Exists(int F_ManId)
33
         {
33
         {
34
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_ManId=@F_ManId");
36
             strSql.Append(" where F_ManId=@F_ManId");
37
             SqlParameter[] parameters = {
37
             SqlParameter[] parameters = {
38
                     new SqlParameter("@F_ManId", SqlDbType.Int,4)
38
                     new SqlParameter("@F_ManId", SqlDbType.Int,4)
315
         {
315
         {
316
 
316
 
317
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_ManId=@F_ManId");
319
             strSql.Append(" where F_ManId=@F_ManId");
320
             SqlParameter[] parameters = {
320
             SqlParameter[] parameters = {
321
                     new SqlParameter("@F_ManId", SqlDbType.Int,4)
321
                     new SqlParameter("@F_ManId", SqlDbType.Int,4)
519
         {
519
         {
520
             StringBuilder strSql = new StringBuilder();
520
             StringBuilder strSql = new StringBuilder();
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 ");
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
             if (strWhere.Trim() != "")
523
             if (strWhere.Trim() != "")
524
             {
524
             {
525
                 strSql.Append(" where " + strWhere);
525
                 strSql.Append(" where " + strWhere);
539
                 strSql.Append(" top " + Top.ToString());
539
                 strSql.Append(" top " + Top.ToString());
540
             }
540
             }
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 ");
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
             if (strWhere.Trim() != "")
543
             if (strWhere.Trim() != "")
544
             {
544
             {
545
                 strSql.Append(" where " + strWhere);
545
                 strSql.Append(" where " + strWhere);
554
         public int GetRecordCount(string strWhere)
554
         public int GetRecordCount(string strWhere)
555
         {
555
         {
556
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
558
             if (strWhere.Trim() != "")
559
             {
559
             {
560
                 strSql.Append(" where " + strWhere);
560
                 strSql.Append(" where " + strWhere);

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

23
         public bool Exists(int F_ManId)
23
         public bool Exists(int F_ManId)
24
         {
24
         {
25
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_ManId=@F_ManId");
27
             strSql.Append(" where F_ManId=@F_ManId");
28
             SqlParameter[] parameters = {
28
             SqlParameter[] parameters = {
29
                     new SqlParameter("@F_ManId", SqlDbType.Int,4)
29
                     new SqlParameter("@F_ManId", SqlDbType.Int,4)
212
         {
212
         {
213
 
213
 
214
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_ManId=@F_ManId");
216
             strSql.Append(" where F_ManId=@F_ManId");
217
             SqlParameter[] parameters = {
217
             SqlParameter[] parameters = {
218
                     new SqlParameter("@F_ManId", SqlDbType.Int,4)
218
                     new SqlParameter("@F_ManId", SqlDbType.Int,4)
309
         {
309
         {
310
             StringBuilder strSql = new StringBuilder();
310
             StringBuilder strSql = new StringBuilder();
311
             strSql.Append("select * ");
311
             strSql.Append("select * ");
312
-            strSql.Append(" FROM T_Cus_ContactPersonNew ");
312
+            strSql.Append(" FROM T_Cus_ContactPersonNew   WITH(NOLOCK) ");
313
             if (strWhere.Trim() != "")
313
             if (strWhere.Trim() != "")
314
             {
314
             {
315
                 strSql.Append(" where " + strWhere);
315
                 strSql.Append(" where " + strWhere);
329
                 strSql.Append(" top " + Top.ToString());
329
                 strSql.Append(" top " + Top.ToString());
330
             }
330
             }
331
             strSql.Append(" * ");
331
             strSql.Append(" * ");
332
-            strSql.Append(" FROM T_Cus_ContactPersonNew ");
332
+            strSql.Append(" FROM T_Cus_ContactPersonNew   WITH(NOLOCK) ");
333
             if (strWhere.Trim() != "")
333
             if (strWhere.Trim() != "")
334
             {
334
             {
335
                 strSql.Append(" where " + strWhere);
335
                 strSql.Append(" where " + strWhere);
344
         public int GetRecordCount(string strWhere)
344
         public int GetRecordCount(string strWhere)
345
         {
345
         {
346
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
348
             if (strWhere.Trim() != "")
349
             {
349
             {
350
                 strSql.Append(" where " + strWhere);
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
         public bool Exists(int F_CustomerId)
23
         public bool Exists(int F_CustomerId)
24
         {
24
         {
25
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_CustomerId=@F_CustomerId");
27
             strSql.Append(" where F_CustomerId=@F_CustomerId");
28
             SqlParameter[] parameters = {
28
             SqlParameter[] parameters = {
29
                     new SqlParameter("@F_CustomerId", SqlDbType.Int,4)
29
                     new SqlParameter("@F_CustomerId", SqlDbType.Int,4)
355
         {
355
         {
356
 
356
 
357
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_CustomerId=@F_CustomerId");
359
             strSql.Append(" where F_CustomerId=@F_CustomerId");
360
             SqlParameter[] parameters = {
360
             SqlParameter[] parameters = {
361
                     new SqlParameter("@F_CustomerId", SqlDbType.Int,4)
361
                     new SqlParameter("@F_CustomerId", SqlDbType.Int,4)
577
         {
577
         {
578
             StringBuilder strSql = new StringBuilder();
578
             StringBuilder strSql = new StringBuilder();
579
             strSql.Append("select * ");
579
             strSql.Append("select * ");
580
-            strSql.Append(" FROM T_Cus_CustomerBaseNew ");
580
+            strSql.Append(" FROM T_Cus_CustomerBaseNew   WITH(NOLOCK) ");
581
             if (strWhere.Trim() != "")
581
             if (strWhere.Trim() != "")
582
             {
582
             {
583
                 strSql.Append(" where " + strWhere);
583
                 strSql.Append(" where " + strWhere);
597
                 strSql.Append(" top " + Top.ToString());
597
                 strSql.Append(" top " + Top.ToString());
598
             }
598
             }
599
             strSql.Append(" * ");
599
             strSql.Append(" * ");
600
-            strSql.Append(" FROM T_Cus_CustomerBaseNew ");
600
+            strSql.Append(" FROM T_Cus_CustomerBaseNew   WITH(NOLOCK) ");
601
             if (strWhere.Trim() != "")
601
             if (strWhere.Trim() != "")
602
             {
602
             {
603
                 strSql.Append(" where " + strWhere);
603
                 strSql.Append(" where " + strWhere);
612
         public int GetRecordCount(string strWhere)
612
         public int GetRecordCount(string strWhere)
613
         {
613
         {
614
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
616
             if (strWhere.Trim() != "")
617
             {
617
             {
618
                 strSql.Append(" where " + strWhere);
618
                 strSql.Append(" where " + strWhere);
661
         {
661
         {
662
 
662
 
663
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_WxOpenId=@F_WxOpenId and F_DeleteFlag=0 ");
665
             strSql.Append(" where F_WxOpenId=@F_WxOpenId and F_DeleteFlag=0 ");
666
             SqlParameter[] parameters = {
666
             SqlParameter[] parameters = {
667
                     new SqlParameter("@F_WxOpenId", SqlDbType.NVarChar,200)
667
                     new SqlParameter("@F_WxOpenId", SqlDbType.NVarChar,200)

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

24
         public bool Exists(Guid F_ExpandId)
24
         public bool Exists(Guid F_ExpandId)
25
         {
25
         {
26
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_ExpandId=@F_ExpandId ");
28
             strSql.Append(" where F_ExpandId=@F_ExpandId ");
29
             SqlParameter[] parameters = {
29
             SqlParameter[] parameters = {
30
                     new SqlParameter("@F_ExpandId", SqlDbType.UniqueIdentifier,16)          };
30
                     new SqlParameter("@F_ExpandId", SqlDbType.UniqueIdentifier,16)          };
206
         {
206
         {
207
 
207
 
208
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_ExpandId=@F_ExpandId ");
210
             strSql.Append(" where F_ExpandId=@F_ExpandId ");
211
             SqlParameter[] parameters = {
211
             SqlParameter[] parameters = {
212
                     new SqlParameter("@F_ExpandId", SqlDbType.UniqueIdentifier,16)          };
212
                     new SqlParameter("@F_ExpandId", SqlDbType.UniqueIdentifier,16)          };
308
         {
308
         {
309
             StringBuilder strSql = new StringBuilder();
309
             StringBuilder strSql = new StringBuilder();
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 ");
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
             if (strWhere.Trim() != "")
312
             if (strWhere.Trim() != "")
313
             {
313
             {
314
                 strSql.Append(" where " + strWhere);
314
                 strSql.Append(" where " + strWhere);
328
                 strSql.Append(" top " + Top.ToString());
328
                 strSql.Append(" top " + Top.ToString());
329
             }
329
             }
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 ");
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
             if (strWhere.Trim() != "")
332
             if (strWhere.Trim() != "")
333
             {
333
             {
334
                 strSql.Append(" where " + strWhere);
334
                 strSql.Append(" where " + strWhere);
343
         public int GetRecordCount(string strWhere)
343
         public int GetRecordCount(string strWhere)
344
         {
344
         {
345
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
347
             if (strWhere.Trim() != "")
348
             {
348
             {
349
                 strSql.Append(" where " + strWhere);
349
                 strSql.Append(" where " + strWhere);

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

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

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

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

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

32
         public bool Exists(int F_RegionId)
32
         public bool Exists(int F_RegionId)
33
         {
33
         {
34
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_RegionId=@F_RegionId");
36
             strSql.Append(" where F_RegionId=@F_RegionId");
37
             SqlParameter[] parameters = {
37
             SqlParameter[] parameters = {
38
                     new SqlParameter("@F_RegionId", SqlDbType.Int,4)
38
                     new SqlParameter("@F_RegionId", SqlDbType.Int,4)
205
         {
205
         {
206
 
206
 
207
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_RegionId=@F_RegionId");
209
             strSql.Append(" where F_RegionId=@F_RegionId");
210
             SqlParameter[] parameters = {
210
             SqlParameter[] parameters = {
211
                     new SqlParameter("@F_RegionId", SqlDbType.Int,4)
211
                     new SqlParameter("@F_RegionId", SqlDbType.Int,4)
300
         {
300
         {
301
             StringBuilder strSql = new StringBuilder();
301
             StringBuilder strSql = new StringBuilder();
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 ");
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
             if (strWhere.Trim() != "")
304
             if (strWhere.Trim() != "")
305
             {
305
             {
306
                 strSql.Append(" where " + strWhere);
306
                 strSql.Append(" where " + strWhere);
320
                 strSql.Append(" top " + Top.ToString());
320
                 strSql.Append(" top " + Top.ToString());
321
             }
321
             }
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 ");
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
             if (strWhere.Trim() != "")
324
             if (strWhere.Trim() != "")
325
             {
325
             {
326
                 strSql.Append(" where " + strWhere);
326
                 strSql.Append(" where " + strWhere);
335
         public int GetRecordCount(string strWhere)
335
         public int GetRecordCount(string strWhere)
336
         {
336
         {
337
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
339
             if (strWhere.Trim() != "")
340
             {
340
             {
341
                 strSql.Append(" where " + strWhere);
341
                 strSql.Append(" where " + strWhere);

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

32
         public bool Exists(int RegionId, int UserId)
32
         public bool Exists(int RegionId, int UserId)
33
         {
33
         {
34
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where RegionId=@RegionId and UserId=@UserId ");
36
             strSql.Append(" where RegionId=@RegionId and UserId=@UserId ");
37
             SqlParameter[] parameters = {
37
             SqlParameter[] parameters = {
38
                     new SqlParameter("@RegionId", SqlDbType.Int,4),
38
                     new SqlParameter("@RegionId", SqlDbType.Int,4),
163
         {
163
         {
164
 
164
 
165
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where RegionId=@RegionId and UserId=@UserId ");
167
             strSql.Append(" where RegionId=@RegionId and UserId=@UserId ");
168
             SqlParameter[] parameters = {
168
             SqlParameter[] parameters = {
169
                     new SqlParameter("@RegionId", SqlDbType.Int,4),
169
                     new SqlParameter("@RegionId", SqlDbType.Int,4),
219
         {
219
         {
220
             StringBuilder strSql = new StringBuilder();
220
             StringBuilder strSql = new StringBuilder();
221
             strSql.Append("select RegionId,UserId,CreateBy,CreateDateTime ");
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
             if (strWhere.Trim() != "")
223
             if (strWhere.Trim() != "")
224
             {
224
             {
225
                 strSql.Append(" where " + strWhere);
225
                 strSql.Append(" where " + strWhere);
239
                 strSql.Append(" top " + Top.ToString());
239
                 strSql.Append(" top " + Top.ToString());
240
             }
240
             }
241
             strSql.Append(" RegionId,UserId,CreateBy,CreateDateTime ");
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
             if (strWhere.Trim() != "")
243
             if (strWhere.Trim() != "")
244
             {
244
             {
245
                 strSql.Append(" where " + strWhere);
245
                 strSql.Append(" where " + strWhere);
254
         public int GetRecordCount(string strWhere)
254
         public int GetRecordCount(string strWhere)
255
         {
255
         {
256
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
258
             if (strWhere.Trim() != "")
259
             {
259
             {
260
                 strSql.Append(" where " + strWhere);
260
                 strSql.Append(" where " + strWhere);

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

20
         public bool Exists(int ID)
20
         public bool Exists(int ID)
21
         {
21
         {
22
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where ID=@ID");
24
             strSql.Append(" where ID=@ID");
25
             SqlParameter[] parameters = {
25
             SqlParameter[] parameters = {
26
                     new SqlParameter("@ID", SqlDbType.Int,4)
26
                     new SqlParameter("@ID", SqlDbType.Int,4)
188
         {
188
         {
189
 
189
 
190
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where ID=@ID");
192
             strSql.Append(" where ID=@ID");
193
             SqlParameter[] parameters = {
193
             SqlParameter[] parameters = {
194
                     new SqlParameter("@ID", SqlDbType.Int,4)
194
                     new SqlParameter("@ID", SqlDbType.Int,4)
279
         {
279
         {
280
             StringBuilder strSql = new StringBuilder();
280
             StringBuilder strSql = new StringBuilder();
281
             strSql.Append("select ID,Type,Detail,State,ToUser,ToID,Remark,CreateUser,CreateDate,ReadDate,IsDel,DelUser,DelDate ");
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
             if (strWhere.Trim() != "")
283
             if (strWhere.Trim() != "")
284
             {
284
             {
285
                 strSql.Append(" where " + strWhere);
285
                 strSql.Append(" where " + strWhere);
299
                 strSql.Append(" top " + Top.ToString());
299
                 strSql.Append(" top " + Top.ToString());
300
             }
300
             }
301
             strSql.Append(" ID,Type,Detail,State,ToUser,ToID,Remark,CreateUser,CreateDate,ReadDate,IsDel,DelUser,DelDate ");
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
             if (strWhere.Trim() != "")
303
             if (strWhere.Trim() != "")
304
             {
304
             {
305
                 strSql.Append(" where " + strWhere);
305
                 strSql.Append(" where " + strWhere);
314
         public int GetRecordCount(string strWhere)
314
         public int GetRecordCount(string strWhere)
315
         {
315
         {
316
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
318
             if (strWhere.Trim() != "")
319
             {
319
             {
320
                 strSql.Append(" where " + strWhere);
320
                 strSql.Append(" where " + strWhere);

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

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

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

23
         public bool Exists(int F_IndexId)
23
         public bool Exists(int F_IndexId)
24
         {
24
         {
25
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_IndexId=@F_IndexId");
27
             strSql.Append(" where F_IndexId=@F_IndexId");
28
             SqlParameter[] parameters = {
28
             SqlParameter[] parameters = {
29
                     new SqlParameter("@F_IndexId", SqlDbType.Int,4)
29
                     new SqlParameter("@F_IndexId", SqlDbType.Int,4)
196
         {
196
         {
197
 
197
 
198
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_IndexId=@F_IndexId");
200
             strSql.Append(" where F_IndexId=@F_IndexId");
201
             SqlParameter[] parameters = {
201
             SqlParameter[] parameters = {
202
                     new SqlParameter("@F_IndexId", SqlDbType.Int,4)
202
                     new SqlParameter("@F_IndexId", SqlDbType.Int,4)
282
         {
282
         {
283
             StringBuilder strSql = new StringBuilder();
283
             StringBuilder strSql = new StringBuilder();
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 ");
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
             if (strWhere.Trim() != "")
286
             if (strWhere.Trim() != "")
287
             {
287
             {
288
                 strSql.Append(" where " + strWhere);
288
                 strSql.Append(" where " + strWhere);
302
                 strSql.Append(" top " + Top.ToString());
302
                 strSql.Append(" top " + Top.ToString());
303
             }
303
             }
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 ");
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
             if (strWhere.Trim() != "")
306
             if (strWhere.Trim() != "")
307
             {
307
             {
308
                 strSql.Append(" where " + strWhere);
308
                 strSql.Append(" where " + strWhere);
317
         public int GetRecordCount(string strWhere)
317
         public int GetRecordCount(string strWhere)
318
         {
318
         {
319
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
321
             if (strWhere.Trim() != "")
322
             {
322
             {
323
                 strSql.Append(" where " + strWhere);
323
                 strSql.Append(" where " + strWhere);

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

23
         public bool Exists(int F_CategoryId)
23
         public bool Exists(int F_CategoryId)
24
         {
24
         {
25
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_CategoryId=@F_CategoryId");
27
             strSql.Append(" where F_CategoryId=@F_CategoryId");
28
             SqlParameter[] parameters = {
28
             SqlParameter[] parameters = {
29
                     new SqlParameter("@F_CategoryId", SqlDbType.Int,4)
29
                     new SqlParameter("@F_CategoryId", SqlDbType.Int,4)
201
         {
201
         {
202
 
202
 
203
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_CategoryId=@F_CategoryId");
205
             strSql.Append(" where F_CategoryId=@F_CategoryId");
206
             SqlParameter[] parameters = {
206
             SqlParameter[] parameters = {
207
                     new SqlParameter("@F_CategoryId", SqlDbType.Int,4)
207
                     new SqlParameter("@F_CategoryId", SqlDbType.Int,4)
287
         {
287
         {
288
             StringBuilder strSql = new StringBuilder();
288
             StringBuilder strSql = new StringBuilder();
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 ");
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
             if (strWhere.Trim() != "")
291
             if (strWhere.Trim() != "")
292
             {
292
             {
293
                 strSql.Append(" where " + strWhere);
293
                 strSql.Append(" where " + strWhere);
307
                 strSql.Append(" top " + Top.ToString());
307
                 strSql.Append(" top " + Top.ToString());
308
             }
308
             }
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 ");
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
             if (strWhere.Trim() != "")
311
             if (strWhere.Trim() != "")
312
             {
312
             {
313
                 strSql.Append(" where " + strWhere);
313
                 strSql.Append(" where " + strWhere);
322
         public int GetRecordCount(string strWhere)
322
         public int GetRecordCount(string strWhere)
323
         {
323
         {
324
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
326
             if (strWhere.Trim() != "")
327
             {
327
             {
328
                 strSql.Append(" where " + strWhere);
328
                 strSql.Append(" where " + strWhere);

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

23
         public bool Exists(int F_Id)
23
         public bool Exists(int F_Id)
24
         {
24
         {
25
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_Id=@F_Id");
27
             strSql.Append(" where F_Id=@F_Id");
28
             SqlParameter[] parameters = {
28
             SqlParameter[] parameters = {
29
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
29
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
156
         {
156
         {
157
 
157
 
158
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_Id=@F_Id");
160
             strSql.Append(" where F_Id=@F_Id");
161
             SqlParameter[] parameters = {
161
             SqlParameter[] parameters = {
162
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
162
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
206
         {
206
         {
207
             StringBuilder strSql = new StringBuilder();
207
             StringBuilder strSql = new StringBuilder();
208
             strSql.Append("select F_Id,CallRecordsId,F_IndexId,F_Score,F_QCScore,F_Remark ");
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
             if (strWhere.Trim() != "")
210
             if (strWhere.Trim() != "")
211
             {
211
             {
212
                 strSql.Append(" where " + strWhere);
212
                 strSql.Append(" where " + strWhere);
226
                 strSql.Append(" top " + Top.ToString());
226
                 strSql.Append(" top " + Top.ToString());
227
             }
227
             }
228
             strSql.Append(" F_Id,CallRecordsId,F_IndexId,F_Score,F_QCScore,F_Remark ");
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
             if (strWhere.Trim() != "")
230
             if (strWhere.Trim() != "")
231
             {
231
             {
232
                 strSql.Append(" where " + strWhere);
232
                 strSql.Append(" where " + strWhere);
241
         public int GetRecordCount(string strWhere)
241
         public int GetRecordCount(string strWhere)
242
         {
242
         {
243
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
245
             if (strWhere.Trim() != "")
246
             {
246
             {
247
                 strSql.Append(" where " + strWhere);
247
                 strSql.Append(" where " + strWhere);

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

24
         public bool Exists(long Id)
24
         public bool Exists(long Id)
25
         {
25
         {
26
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where Id=@Id");
28
             strSql.Append(" where Id=@Id");
29
             SqlParameter[] parameters = {
29
             SqlParameter[] parameters = {
30
                     new SqlParameter("@Id", SqlDbType.BigInt)
30
                     new SqlParameter("@Id", SqlDbType.BigInt)
167
         {
167
         {
168
 
168
 
169
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where Id=@Id");
171
             strSql.Append(" where Id=@Id");
172
             SqlParameter[] parameters = {
172
             SqlParameter[] parameters = {
173
                     new SqlParameter("@Id", SqlDbType.BigInt)
173
                     new SqlParameter("@Id", SqlDbType.BigInt)
238
         {
238
         {
239
             StringBuilder strSql = new StringBuilder();
239
             StringBuilder strSql = new StringBuilder();
240
             strSql.Append("select Id,Title,ParendId,Layer,Score,OrderBy,IsDelete,Remark ");
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
             if (strWhere.Trim() != "")
242
             if (strWhere.Trim() != "")
243
             {
243
             {
244
                 strSql.Append(" where " + strWhere);
244
                 strSql.Append(" where " + strWhere);
258
                 strSql.Append(" top " + Top.ToString());
258
                 strSql.Append(" top " + Top.ToString());
259
             }
259
             }
260
             strSql.Append(" Id,Title,ParendId,Layer,Score,OrderBy,IsDelete,Remark ");
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
             if (strWhere.Trim() != "")
262
             if (strWhere.Trim() != "")
263
             {
263
             {
264
                 strSql.Append(" where " + strWhere);
264
                 strSql.Append(" where " + strWhere);
273
         public int GetRecordCount(string strWhere)
273
         public int GetRecordCount(string strWhere)
274
         {
274
         {
275
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
277
             if (strWhere.Trim() != "")
278
             {
278
             {
279
                 strSql.Append(" where " + strWhere);
279
                 strSql.Append(" where " + strWhere);

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

24
         public bool Exists(long Id)
24
         public bool Exists(long Id)
25
         {
25
         {
26
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where Id=@Id");
28
             strSql.Append(" where Id=@Id");
29
             SqlParameter[] parameters = {
29
             SqlParameter[] parameters = {
30
                     new SqlParameter("@Id", SqlDbType.BigInt)
30
                     new SqlParameter("@Id", SqlDbType.BigInt)
197
         {
197
         {
198
 
198
 
199
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where Id=@Id");
201
             strSql.Append(" where Id=@Id");
202
             SqlParameter[] parameters = {
202
             SqlParameter[] parameters = {
203
                     new SqlParameter("@Id", SqlDbType.BigInt)
203
                     new SqlParameter("@Id", SqlDbType.BigInt)
272
         {
272
         {
273
             StringBuilder strSql = new StringBuilder();
273
             StringBuilder strSql = new StringBuilder();
274
             strSql.Append("select Id,WorkOrderId,QuestionId,TotalScore,Score,AnswersTitle,QuestionIId,CreateBy,CreateTime ");
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
             if (strWhere.Trim() != "")
276
             if (strWhere.Trim() != "")
277
             {
277
             {
278
                 strSql.Append(" where " + strWhere);
278
                 strSql.Append(" where " + strWhere);
292
                 strSql.Append(" top " + Top.ToString());
292
                 strSql.Append(" top " + Top.ToString());
293
             }
293
             }
294
             strSql.Append(" Id,WorkOrderId,QuestionId,TotalScore,Score,AnswersTitle,QuestionIId,CreateBy,CreateTime ");
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
             if (strWhere.Trim() != "")
296
             if (strWhere.Trim() != "")
297
             {
297
             {
298
                 strSql.Append(" where " + strWhere);
298
                 strSql.Append(" where " + strWhere);
307
         public int GetRecordCount(string strWhere)
307
         public int GetRecordCount(string strWhere)
308
         {
308
         {
309
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
311
             if (strWhere.Trim() != "")
312
             {
312
             {
313
                 strSql.Append(" where " + strWhere);
313
                 strSql.Append(" where " + strWhere);

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

22
         public bool Exists(int F_RegionId)
22
         public bool Exists(int F_RegionId)
23
         {
23
         {
24
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_RegionId=@F_RegionId");
26
             strSql.Append(" where F_RegionId=@F_RegionId");
27
             SqlParameter[] parameters = {
27
             SqlParameter[] parameters = {
28
 					new SqlParameter("@F_RegionId", SqlDbType.Int,4)
28
 					new SqlParameter("@F_RegionId", SqlDbType.Int,4)
190
         {
190
         {
191
 
191
 
192
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_RegionId=@F_RegionId");
194
             strSql.Append(" where F_RegionId=@F_RegionId");
195
             SqlParameter[] parameters = {
195
             SqlParameter[] parameters = {
196
 					new SqlParameter("@F_RegionId", SqlDbType.Int,4)
196
 					new SqlParameter("@F_RegionId", SqlDbType.Int,4)
268
         {
268
         {
269
             StringBuilder strSql = new StringBuilder();
269
             StringBuilder strSql = new StringBuilder();
270
             strSql.Append("select * ");
270
             strSql.Append("select * ");
271
-            strSql.Append(" FROM T_RegionCategory ");
271
+            strSql.Append(" FROM T_RegionCategory   WITH(NOLOCK) ");
272
             if (strWhere.Trim() != "")
272
             if (strWhere.Trim() != "")
273
             {
273
             {
274
                 strSql.Append(" where " + strWhere);
274
                 strSql.Append(" where " + strWhere);
288
                 strSql.Append(" top " + Top.ToString());
288
                 strSql.Append(" top " + Top.ToString());
289
             }
289
             }
290
             strSql.Append(" * ");
290
             strSql.Append(" * ");
291
-            strSql.Append(" FROM T_RegionCategory ");
291
+            strSql.Append(" FROM T_RegionCategory   WITH(NOLOCK) ");
292
             if (strWhere.Trim() != "")
292
             if (strWhere.Trim() != "")
293
             {
293
             {
294
                 strSql.Append(" where " + strWhere);
294
                 strSql.Append(" where " + strWhere);

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

32
         public bool Exists(int F_CategoryId)
32
         public bool Exists(int F_CategoryId)
33
         {
33
         {
34
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_CategoryId=@F_CategoryId");
36
             strSql.Append(" where F_CategoryId=@F_CategoryId");
37
             SqlParameter[] parameters = {
37
             SqlParameter[] parameters = {
38
                     new SqlParameter("@F_CategoryId", SqlDbType.Int,4)
38
                     new SqlParameter("@F_CategoryId", SqlDbType.Int,4)
211
         {
211
         {
212
 
212
 
213
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_CategoryId=@F_CategoryId");
215
             strSql.Append(" where F_CategoryId=@F_CategoryId");
216
             SqlParameter[] parameters = {
216
             SqlParameter[] parameters = {
217
                     new SqlParameter("@F_CategoryId", SqlDbType.Int,4)
217
                     new SqlParameter("@F_CategoryId", SqlDbType.Int,4)
310
         {
310
         {
311
             StringBuilder strSql = new StringBuilder();
311
             StringBuilder strSql = new StringBuilder();
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 ");
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
             if (strWhere.Trim() != "")
314
             if (strWhere.Trim() != "")
315
             {
315
             {
316
                 strSql.Append(" where " + strWhere);
316
                 strSql.Append(" where " + strWhere);
330
                 strSql.Append(" top " + Top.ToString());
330
                 strSql.Append(" top " + Top.ToString());
331
             }
331
             }
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 ");
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
             if (strWhere.Trim() != "")
334
             if (strWhere.Trim() != "")
335
             {
335
             {
336
                 strSql.Append(" where " + strWhere);
336
                 strSql.Append(" where " + strWhere);
345
         public int GetRecordCount(string strWhere)
345
         public int GetRecordCount(string strWhere)
346
         {
346
         {
347
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
349
             if (strWhere.Trim() != "")
350
             {
350
             {
351
                 strSql.Append(" where " + strWhere);
351
                 strSql.Append(" where " + strWhere);

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

32
         public bool Exists(int F_RepositoryId)
32
         public bool Exists(int F_RepositoryId)
33
         {
33
         {
34
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_RepositoryId=@F_RepositoryId");
36
             strSql.Append(" where F_RepositoryId=@F_RepositoryId");
37
             SqlParameter[] parameters = {
37
             SqlParameter[] parameters = {
38
                     new SqlParameter("@F_RepositoryId", SqlDbType.Int,4)
38
                     new SqlParameter("@F_RepositoryId", SqlDbType.Int,4)
247
         {
247
         {
248
 
248
 
249
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_RepositoryId=@F_RepositoryId");
251
             strSql.Append(" where F_RepositoryId=@F_RepositoryId");
252
             SqlParameter[] parameters = {
252
             SqlParameter[] parameters = {
253
                     new SqlParameter("@F_RepositoryId", SqlDbType.Int,4)
253
                     new SqlParameter("@F_RepositoryId", SqlDbType.Int,4)
374
         {
374
         {
375
             StringBuilder strSql = new StringBuilder();
375
             StringBuilder strSql = new StringBuilder();
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 ");
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
             if (strWhere.Trim() != "")
378
             if (strWhere.Trim() != "")
379
             {
379
             {
380
                 strSql.Append(" where " + strWhere);
380
                 strSql.Append(" where " + strWhere);
394
                 strSql.Append(" top " + Top.ToString());
394
                 strSql.Append(" top " + Top.ToString());
395
             }
395
             }
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 ");
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
             if (strWhere.Trim() != "")
398
             if (strWhere.Trim() != "")
399
             {
399
             {
400
                 strSql.Append(" where " + strWhere);
400
                 strSql.Append(" where " + strWhere);
409
         public int GetRecordCount(string strWhere)
409
         public int GetRecordCount(string strWhere)
410
         {
410
         {
411
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
413
             if (strWhere.Trim() != "")
414
             {
414
             {
415
                 strSql.Append(" where " + strWhere);
415
                 strSql.Append(" where " + strWhere);

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

20
         public bool Exists(int ID)
20
         public bool Exists(int ID)
21
         {
21
         {
22
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where ID=@ID");
24
             strSql.Append(" where ID=@ID");
25
             SqlParameter[] parameters = {
25
             SqlParameter[] parameters = {
26
                     new SqlParameter("@ID", SqlDbType.Int,4)
26
                     new SqlParameter("@ID", SqlDbType.Int,4)
193
         {
193
         {
194
 
194
 
195
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where ID=@ID");
197
             strSql.Append(" where ID=@ID");
198
             SqlParameter[] parameters = {
198
             SqlParameter[] parameters = {
199
                     new SqlParameter("@ID", SqlDbType.Int,4)
199
                     new SqlParameter("@ID", SqlDbType.Int,4)
288
         {
288
         {
289
             StringBuilder strSql = new StringBuilder();
289
             StringBuilder strSql = new StringBuilder();
290
             strSql.Append("select ID,Type,SendWay,DSSendTime,SendTime,IsSend,Telephone,F_IsDelete,Detail,MBID,MID,MName,CreateDate,BatchNo ");
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
             if (strWhere.Trim() != "")
292
             if (strWhere.Trim() != "")
293
             {
293
             {
294
                 strSql.Append(" where " + strWhere);
294
                 strSql.Append(" where " + strWhere);
308
                 strSql.Append(" top " + Top.ToString());
308
                 strSql.Append(" top " + Top.ToString());
309
             }
309
             }
310
             strSql.Append(" ID,Type,SendWay,DSSendTime,SendTime,IsSend,Telephone,Detail,MBID,MID,MName,CreateDate,BatchNo ");
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
             if (strWhere.Trim() != "")
312
             if (strWhere.Trim() != "")
313
             {
313
             {
314
                 strSql.Append(" where " + strWhere);
314
                 strSql.Append(" where " + strWhere);
323
         public int GetRecordCount(string strWhere)
323
         public int GetRecordCount(string strWhere)
324
         {
324
         {
325
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
327
             if (strWhere.Trim() != "")
328
             {
328
             {
329
                 strSql.Append(" where " + strWhere);
329
                 strSql.Append(" where " + strWhere);

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

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

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

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

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

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

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

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

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

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

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

23
         public bool Exists(int F_FileId)
23
         public bool Exists(int F_FileId)
24
         {
24
         {
25
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_FileId=@F_FileId");
27
             strSql.Append(" where F_FileId=@F_FileId");
28
             SqlParameter[] parameters = {
28
             SqlParameter[] parameters = {
29
                     new SqlParameter("@F_FileId", SqlDbType.Int,4)
29
                     new SqlParameter("@F_FileId", SqlDbType.Int,4)
263
         public int GetRecordCount(string strWhere)
263
         public int GetRecordCount(string strWhere)
264
         {
264
         {
265
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
267
             if (strWhere.Trim() != "")
268
             {
268
             {
269
                 strSql.Append(" where " + strWhere);
269
                 strSql.Append(" where " + strWhere);

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

23
         public bool Exists(int F_DeptId)
23
         public bool Exists(int F_DeptId)
24
         {
24
         {
25
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_DeptId=@F_DeptId");
27
             strSql.Append(" where F_DeptId=@F_DeptId");
28
             SqlParameter[] parameters = {
28
             SqlParameter[] parameters = {
29
                     new SqlParameter("@F_DeptId", SqlDbType.Int,4)
29
                     new SqlParameter("@F_DeptId", SqlDbType.Int,4)
345
         public int GetRecordCount(string strWhere)
345
         public int GetRecordCount(string strWhere)
346
         {
346
         {
347
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
349
             if (strWhere.Trim() != "")
350
             {
350
             {
351
                 strSql.Append(" where " + strWhere);
351
                 strSql.Append(" where " + strWhere);

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

24
         public bool Exists(string F_DictionaryFlag)
24
         public bool Exists(string F_DictionaryFlag)
25
         {
25
         {
26
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_DictionaryFlag=@F_DictionaryFlag ");
28
             strSql.Append(" where F_DictionaryFlag=@F_DictionaryFlag ");
29
             SqlParameter[] parameters = {
29
             SqlParameter[] parameters = {
30
                     new SqlParameter("@F_DictionaryFlag", SqlDbType.VarChar,50)         };
30
                     new SqlParameter("@F_DictionaryFlag", SqlDbType.VarChar,50)         };
245
         public int GetRecordCount(string strWhere)
245
         public int GetRecordCount(string strWhere)
246
         {
246
         {
247
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
249
             if (strWhere.Trim() != "")
250
             {
250
             {
251
                 strSql.Append(" where " + strWhere);
251
                 strSql.Append(" where " + strWhere);

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

23
         public bool Exists(int F_DictionaryValueId)
23
         public bool Exists(int F_DictionaryValueId)
24
         {
24
         {
25
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_DictionaryValueId=@F_DictionaryValueId");
27
             strSql.Append(" where F_DictionaryValueId=@F_DictionaryValueId");
28
             SqlParameter[] parameters = {
28
             SqlParameter[] parameters = {
29
                     new SqlParameter("@F_DictionaryValueId", SqlDbType.Int,4)
29
                     new SqlParameter("@F_DictionaryValueId", SqlDbType.Int,4)
263
         public int GetRecordCount(string strWhere)
263
         public int GetRecordCount(string strWhere)
264
         {
264
         {
265
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
267
             if (strWhere.Trim() != "")
268
             {
268
             {
269
                 strSql.Append(" where " + strWhere);
269
                 strSql.Append(" where " + strWhere);

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

23
         public bool Exists(int F_Id)
23
         public bool Exists(int F_Id)
24
         {
24
         {
25
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_Id=@F_Id");
27
             strSql.Append(" where F_Id=@F_Id");
28
             SqlParameter[] parameters = {
28
             SqlParameter[] parameters = {
29
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
29
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
176
         {
176
         {
177
 
177
 
178
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_Id=@F_Id");
180
             strSql.Append(" where F_Id=@F_Id");
181
             SqlParameter[] parameters = {
181
             SqlParameter[] parameters = {
182
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
182
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
255
         {
255
         {
256
             StringBuilder strSql = new StringBuilder();
256
             StringBuilder strSql = new StringBuilder();
257
             strSql.Append("select F_Id,F_LoginName,F_LoginId,F_Result,F_LoginIP,F_Hostname,F_LoginDate,F_Remark,F_State,F_LoginOutDate ");
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
             if (strWhere.Trim() != "")
259
             if (strWhere.Trim() != "")
260
             {
260
             {
261
                 strSql.Append(" where " + strWhere);
261
                 strSql.Append(" where " + strWhere);
275
                 strSql.Append(" top " + Top.ToString());
275
                 strSql.Append(" top " + Top.ToString());
276
             }
276
             }
277
             strSql.Append(" F_Id,F_LoginName,F_LoginId,F_Result,F_LoginIP,F_Hostname,F_LoginDate,F_Remark,F_State,F_LoginOutDate ");
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
             if (strWhere.Trim() != "")
279
             if (strWhere.Trim() != "")
280
             {
280
             {
281
                 strSql.Append(" where " + strWhere);
281
                 strSql.Append(" where " + strWhere);
290
         public int GetRecordCount(string strWhere)
290
         public int GetRecordCount(string strWhere)
291
         {
291
         {
292
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
294
             if (strWhere.Trim() != "")
295
             {
295
             {
296
                 strSql.Append(" where " + strWhere);
296
                 strSql.Append(" where " + strWhere);

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

20
         public bool Exists(int F_Id)
20
         public bool Exists(int F_Id)
21
         {
21
         {
22
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_Id=@F_Id");
24
             strSql.Append(" where F_Id=@F_Id");
25
             SqlParameter[] parameters = {
25
             SqlParameter[] parameters = {
26
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
26
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
191
         {
191
         {
192
 
192
 
193
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_Id=@F_Id");
195
             strSql.Append(" where F_Id=@F_Id");
196
             SqlParameter[] parameters = {
196
             SqlParameter[] parameters = {
197
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
197
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
270
         {
270
         {
271
             StringBuilder strSql = new StringBuilder();
271
             StringBuilder strSql = new StringBuilder();
272
             strSql.Append("select F_Id,F_MobileNum,F_ZipCode,F_CityDes,F_CardDes,F_CreateUser,F_CreateTime,F_IsDelete,F_DeleteUser,F_DeleteTime ");
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
             if (strWhere.Trim() != "")
274
             if (strWhere.Trim() != "")
275
             {
275
             {
276
                 strSql.Append(" where " + strWhere);
276
                 strSql.Append(" where " + strWhere);
290
                 strSql.Append(" top " + Top.ToString());
290
                 strSql.Append(" top " + Top.ToString());
291
             }
291
             }
292
             strSql.Append(" F_Id,F_MobileNum,F_ZipCode,F_CityDes,F_CardDes,F_CreateUser,F_CreateTime,F_IsDelete,F_DeleteUser,F_DeleteTime ");
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
             if (strWhere.Trim() != "")
294
             if (strWhere.Trim() != "")
295
             {
295
             {
296
                 strSql.Append(" where " + strWhere);
296
                 strSql.Append(" where " + strWhere);
305
         public int GetRecordCount(string strWhere)
305
         public int GetRecordCount(string strWhere)
306
         {
306
         {
307
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
309
             if (strWhere.Trim() != "")
310
             {
310
             {
311
                 strSql.Append(" where " + strWhere);
311
                 strSql.Append(" where " + strWhere);

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

23
         public bool Exists(int F_FunctionId)
23
         public bool Exists(int F_FunctionId)
24
         {
24
         {
25
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_FunctionId=@F_FunctionId");
27
             strSql.Append(" where F_FunctionId=@F_FunctionId");
28
             SqlParameter[] parameters = {
28
             SqlParameter[] parameters = {
29
                     new SqlParameter("@F_FunctionId", SqlDbType.Int,4)
29
                     new SqlParameter("@F_FunctionId", SqlDbType.Int,4)
212
         {
212
         {
213
 
213
 
214
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_FunctionId=@F_FunctionId");
216
             strSql.Append(" where F_FunctionId=@F_FunctionId");
217
             SqlParameter[] parameters = {
217
             SqlParameter[] parameters = {
218
                     new SqlParameter("@F_FunctionId", SqlDbType.Int,4)
218
                     new SqlParameter("@F_FunctionId", SqlDbType.Int,4)
237
         {
237
         {
238
 
238
 
239
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_Controller=@controller and F_Action=@action");
241
             strSql.Append(" where F_Controller=@controller and F_Action=@action");
242
             SqlParameter[] parameters = {
242
             SqlParameter[] parameters = {
243
                     new SqlParameter("@controller", SqlDbType.VarChar,300),
243
                     new SqlParameter("@controller", SqlDbType.VarChar,300),
264
         {
264
         {
265
 
265
 
266
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_OptUrl=@F_OptUrl");
268
             strSql.Append(" where F_OptUrl=@F_OptUrl");
269
             SqlParameter[] parameters = {
269
             SqlParameter[] parameters = {
270
                     new SqlParameter("@F_OptUrl",url)
270
                     new SqlParameter("@F_OptUrl",url)
376
         {
376
         {
377
             StringBuilder strSql = new StringBuilder();
377
             StringBuilder strSql = new StringBuilder();
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");
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
             if (strWhere.Trim() != "")
380
             if (strWhere.Trim() != "")
381
             {
381
             {
382
                 strSql.Append(" where " + strWhere);
382
                 strSql.Append(" where " + strWhere);
396
                 strSql.Append(" top " + Top.ToString());
396
                 strSql.Append(" top " + Top.ToString());
397
             }
397
             }
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");
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
             if (strWhere.Trim() != "")
400
             if (strWhere.Trim() != "")
401
             {
401
             {
402
                 strSql.Append(" where " + strWhere);
402
                 strSql.Append(" where " + strWhere);
411
         public int GetRecordCount(string strWhere)
411
         public int GetRecordCount(string strWhere)
412
         {
412
         {
413
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
415
             if (strWhere.Trim() != "")
416
             {
416
             {
417
                 strSql.Append(" where " + strWhere);
417
                 strSql.Append(" where " + strWhere);

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

32
         public bool Exists(int F_ModuleId)
32
         public bool Exists(int F_ModuleId)
33
         {
33
         {
34
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_ModuleId=@F_ModuleId");
36
             strSql.Append(" where F_ModuleId=@F_ModuleId");
37
             SqlParameter[] parameters = {
37
             SqlParameter[] parameters = {
38
                     new SqlParameter("@F_ModuleId", SqlDbType.Int,4)
38
                     new SqlParameter("@F_ModuleId", SqlDbType.Int,4)
225
         {
225
         {
226
 
226
 
227
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_ModuleId=@F_ModuleId");
229
             strSql.Append(" where F_ModuleId=@F_ModuleId");
230
             SqlParameter[] parameters = {
230
             SqlParameter[] parameters = {
231
                     new SqlParameter("@F_ModuleId", SqlDbType.Int,4)
231
                     new SqlParameter("@F_ModuleId", SqlDbType.Int,4)
336
         {
336
         {
337
             StringBuilder strSql = new StringBuilder();
337
             StringBuilder strSql = new StringBuilder();
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 ");
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
             if (strWhere.Trim() != "")
340
             if (strWhere.Trim() != "")
341
             {
341
             {
342
                 strSql.Append(" where " + strWhere);
342
                 strSql.Append(" where " + strWhere);
356
                 strSql.Append(" top " + Top.ToString());
356
                 strSql.Append(" top " + Top.ToString());
357
             }
357
             }
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 ");
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
             if (strWhere.Trim() != "")
360
             if (strWhere.Trim() != "")
361
             {
361
             {
362
                 strSql.Append(" where " + strWhere);
362
                 strSql.Append(" where " + strWhere);
371
         public int GetRecordCount(string strWhere)
371
         public int GetRecordCount(string strWhere)
372
         {
372
         {
373
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
375
             if (strWhere.Trim() != "")
376
             {
376
             {
377
                 strSql.Append(" where " + strWhere);
377
                 strSql.Append(" where " + strWhere);

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

136
         {
136
         {
137
 
137
 
138
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where PatirntID=@PatirntID");
140
             strSql.Append(" where PatirntID=@PatirntID");
141
             SqlParameter[] parameters = {
141
             SqlParameter[] parameters = {
142
                     new SqlParameter("@PatirntID", SqlDbType.Int,4)
142
                     new SqlParameter("@PatirntID", SqlDbType.Int,4)

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

32
         public bool Exists(int F_RoleId, int F_FunctionId)
32
         public bool Exists(int F_RoleId, int F_FunctionId)
33
         {
33
         {
34
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_RoleId=@F_RoleId and F_FunctionId=@F_FunctionId ");
36
             strSql.Append(" where F_RoleId=@F_RoleId and F_FunctionId=@F_FunctionId ");
37
             SqlParameter[] parameters = {
37
             SqlParameter[] parameters = {
38
                     new SqlParameter("@F_RoleId", SqlDbType.Int,4),
38
                     new SqlParameter("@F_RoleId", SqlDbType.Int,4),
158
         {
158
         {
159
 
159
 
160
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_RoleId=@F_RoleId and F_FunctionId=@F_FunctionId ");
162
             strSql.Append(" where F_RoleId=@F_RoleId and F_FunctionId=@F_FunctionId ");
163
             SqlParameter[] parameters = {
163
             SqlParameter[] parameters = {
164
                     new SqlParameter("@F_RoleId", SqlDbType.Int,4),
164
                     new SqlParameter("@F_RoleId", SqlDbType.Int,4),
210
         {
210
         {
211
             StringBuilder strSql = new StringBuilder();
211
             StringBuilder strSql = new StringBuilder();
212
             strSql.Append("select F_RoleId,F_FunctionId,F_IsKey ");
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
             if (strWhere.Trim() != "")
214
             if (strWhere.Trim() != "")
215
             {
215
             {
216
                 strSql.Append(" where " + strWhere);
216
                 strSql.Append(" where " + strWhere);
230
                 strSql.Append(" top " + Top.ToString());
230
                 strSql.Append(" top " + Top.ToString());
231
             }
231
             }
232
             strSql.Append(" F_RoleId,F_FunctionId,F_IsKey ");
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
             if (strWhere.Trim() != "")
234
             if (strWhere.Trim() != "")
235
             {
235
             {
236
                 strSql.Append(" where " + strWhere);
236
                 strSql.Append(" where " + strWhere);
245
         public int GetRecordCount(string strWhere)
245
         public int GetRecordCount(string strWhere)
246
         {
246
         {
247
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
249
             if (strWhere.Trim() != "")
250
             {
250
             {
251
                 strSql.Append(" where " + strWhere);
251
                 strSql.Append(" where " + strWhere);

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

23
         public bool Exists(int F_RoleId)
23
         public bool Exists(int F_RoleId)
24
         {
24
         {
25
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_RoleId=@F_RoleId");
27
             strSql.Append(" where F_RoleId=@F_RoleId");
28
             SqlParameter[] parameters = {
28
             SqlParameter[] parameters = {
29
                     new SqlParameter("@F_RoleId", SqlDbType.Int,4)
29
                     new SqlParameter("@F_RoleId", SqlDbType.Int,4)
146
         {
146
         {
147
 
147
 
148
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_RoleId=@F_RoleId");
150
             strSql.Append(" where F_RoleId=@F_RoleId");
151
             SqlParameter[] parameters = {
151
             SqlParameter[] parameters = {
152
                     new SqlParameter("@F_RoleId", SqlDbType.Int,4)
152
                     new SqlParameter("@F_RoleId", SqlDbType.Int,4)
201
         {
201
         {
202
             StringBuilder strSql = new StringBuilder();
202
             StringBuilder strSql = new StringBuilder();
203
             strSql.Append("select F_RoleId,F_RoleName,F_RoleCode,F_Remark ");
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
             if (strWhere.Trim() != "")
205
             if (strWhere.Trim() != "")
206
             {
206
             {
207
                 strSql.Append(" where " + strWhere);
207
                 strSql.Append(" where " + strWhere);
216
         {
216
         {
217
             StringBuilder strSql = new StringBuilder();
217
             StringBuilder strSql = new StringBuilder();
218
             strSql.Append("select F_RoleId,F_RoleName,F_RoleCode,F_Remark ");
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
             SqlParameter[] paras = new SqlParameter[] {
220
             SqlParameter[] paras = new SqlParameter[] {
221
                 new SqlParameter("@name",name),
221
                 new SqlParameter("@name",name),
222
                 new SqlParameter("@code",code)
222
                 new SqlParameter("@code",code)
237
                 strSql.Append(" top " + Top.ToString());
237
                 strSql.Append(" top " + Top.ToString());
238
             }
238
             }
239
             strSql.Append(" F_RoleId,F_RoleName,F_RoleCode,F_Remark ");
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
             if (strWhere.Trim() != "")
241
             if (strWhere.Trim() != "")
242
             {
242
             {
243
                 strSql.Append(" where " + strWhere);
243
                 strSql.Append(" where " + strWhere);
252
         public int GetRecordCount(string strWhere)
252
         public int GetRecordCount(string strWhere)
253
         {
253
         {
254
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
256
             if (strWhere.Trim() != "")
257
             {
257
             {
258
                 strSql.Append(" where " + strWhere);
258
                 strSql.Append(" where " + strWhere);

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

166
         {
166
         {
167
 
167
 
168
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_ZXZID=@F_ZXZID");
170
             strSql.Append(" where F_ZXZID=@F_ZXZID");
171
             SqlParameter[] parameters = {
171
             SqlParameter[] parameters = {
172
                     new SqlParameter("@F_ZXZID", SqlDbType.Int,4)
172
                     new SqlParameter("@F_ZXZID", SqlDbType.Int,4)
249
         {
249
         {
250
             StringBuilder strSql = new StringBuilder();
250
             StringBuilder strSql = new StringBuilder();
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 ");
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
             if (strWhere.Trim() != "")
253
             if (strWhere.Trim() != "")
254
             {
254
             {
255
                 strSql.Append(" where " + strWhere);
255
                 strSql.Append(" where " + strWhere);
269
                 strSql.Append(" top " + Top.ToString());
269
                 strSql.Append(" top " + Top.ToString());
270
             }
270
             }
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 ");
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
             if (strWhere.Trim() != "")
273
             if (strWhere.Trim() != "")
274
             {
274
             {
275
                 strSql.Append(" where " + strWhere);
275
                 strSql.Append(" where " + strWhere);
284
         public int GetRecordCount(string strWhere)
284
         public int GetRecordCount(string strWhere)
285
         {
285
         {
286
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
288
             if (strWhere.Trim() != "")
289
             {
289
             {
290
                 strSql.Append(" where " + strWhere);
290
                 strSql.Append(" where " + strWhere);

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

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

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

300
         public string GetParamValueByParamCode(string p_ParamCode)
300
         public string GetParamValueByParamCode(string p_ParamCode)
301
         {
301
         {
302
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_ParamCode=@F_ParamCode");
304
             strSql.Append(" where F_ParamCode=@F_ParamCode");
305
             SqlParameter[] parameters = {
305
             SqlParameter[] parameters = {
306
                     new SqlParameter("@F_ParamCode", SqlDbType.VarChar,50)
306
                     new SqlParameter("@F_ParamCode", SqlDbType.VarChar,50)

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

32
         public bool Exists(int F_Id)
32
         public bool Exists(int F_Id)
33
         {
33
         {
34
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_Id=@F_Id");
36
             strSql.Append(" where F_Id=@F_Id");
37
             SqlParameter[] parameters = {
37
             SqlParameter[] parameters = {
38
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
38
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
160
         {
160
         {
161
 
161
 
162
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_Id=@F_Id");
164
             strSql.Append(" where F_Id=@F_Id");
165
             SqlParameter[] parameters = {
165
             SqlParameter[] parameters = {
166
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
166
                     new SqlParameter("@F_Id", SqlDbType.Int,4)
206
         {
206
         {
207
             StringBuilder strSql = new StringBuilder();
207
             StringBuilder strSql = new StringBuilder();
208
             strSql.Append("select F_Id,F_TitleName,F_KeyPhoneNum,F_DefPhoneNumLen,F_WCode ");
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
             if (strWhere.Trim() != "")
210
             if (strWhere.Trim() != "")
211
             {
211
             {
212
                 strSql.Append(" where " + strWhere);
212
                 strSql.Append(" where " + strWhere);
226
                 strSql.Append(" top " + Top.ToString());
226
                 strSql.Append(" top " + Top.ToString());
227
             }
227
             }
228
             strSql.Append(" F_Id,F_TitleName,F_KeyPhoneNum,F_DefPhoneNumLen,F_WCode ");
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
             if (strWhere.Trim() != "")
230
             if (strWhere.Trim() != "")
231
             {
231
             {
232
                 strSql.Append(" where " + strWhere);
232
                 strSql.Append(" where " + strWhere);
241
         public int GetRecordCount(string strWhere)
241
         public int GetRecordCount(string strWhere)
242
         {
242
         {
243
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
245
             if (strWhere.Trim() != "")
246
             {
246
             {
247
                 strSql.Append(" where " + strWhere);
247
                 strSql.Append(" where " + strWhere);

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

32
         public bool Exists(int F_UserId)
32
         public bool Exists(int F_UserId)
33
         {
33
         {
34
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_UserId=@F_UserId");
36
             strSql.Append(" where F_UserId=@F_UserId");
37
             SqlParameter[] parameters = {
37
             SqlParameter[] parameters = {
38
                     new SqlParameter("@F_UserId", SqlDbType.Int,4)
38
                     new SqlParameter("@F_UserId", SqlDbType.Int,4)
322
         {
322
         {
323
 
323
 
324
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_UserCode=@F_UserCode and F_Password=@F_Password and  F_DeleteFlag=0");
326
             strSql.Append(" where F_UserCode=@F_UserCode and F_Password=@F_Password and  F_DeleteFlag=0");
327
             SqlParameter[] parameters = {
327
             SqlParameter[] parameters = {
328
                     new SqlParameter("@F_UserCode", SqlDbType.VarChar,50),
328
                     new SqlParameter("@F_UserCode", SqlDbType.VarChar,50),
639
         {
639
         {
640
             StringBuilder strSql = new StringBuilder();
640
             StringBuilder strSql = new StringBuilder();
641
             strSql.Append("select * ");
641
             strSql.Append("select * ");
642
-            strSql.Append(" FROM V_UserAccount ");
642
+            strSql.Append(" FROM V_UserAccount  WITH(NOLOCK) ");
643
             if (strWhere.Trim() != "")
643
             if (strWhere.Trim() != "")
644
             {
644
             {
645
                 strSql.Append(" where " + strWhere);
645
                 strSql.Append(" where " + strWhere);
674
         public int GetRecordCount(string strWhere)
674
         public int GetRecordCount(string strWhere)
675
         {
675
         {
676
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
678
             if (strWhere.Trim() != "")
679
             {
679
             {
680
                 strSql.Append(" where " + strWhere);
680
                 strSql.Append(" where " + strWhere);

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

20
         public bool Exists(long F_Id)
20
         public bool Exists(long F_Id)
21
         {
21
         {
22
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_Id=@F_Id");
24
             strSql.Append(" where F_Id=@F_Id");
25
             SqlParameter[] parameters = {
25
             SqlParameter[] parameters = {
26
                     new SqlParameter("@F_Id", SqlDbType.BigInt)
26
                     new SqlParameter("@F_Id", SqlDbType.BigInt)
268
         public int GetRecordCount(string strWhere)
268
         public int GetRecordCount(string strWhere)
269
         {
269
         {
270
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
272
             if (strWhere.Trim() != "")
273
             {
273
             {
274
                 strSql.Append(" where " + strWhere);
274
                 strSql.Append(" where " + strWhere);

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

24
         public bool Exists(DateTime F_DateId)
24
         public bool Exists(DateTime F_DateId)
25
         {
25
         {
26
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_DateId=@F_DateId ");
28
             strSql.Append(" where F_DateId=@F_DateId ");
29
             SqlParameter[] parameters = {
29
             SqlParameter[] parameters = {
30
                     new SqlParameter("@F_DateId", SqlDbType.DateTime)           };
30
                     new SqlParameter("@F_DateId", SqlDbType.DateTime)           };
161
         {
161
         {
162
 
162
 
163
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_DateId=@F_DateId ");
165
             strSql.Append(" where F_DateId=@F_DateId ");
166
             SqlParameter[] parameters = {
166
             SqlParameter[] parameters = {
167
                     new SqlParameter("@F_DateId", SqlDbType.DateTime)           };
167
                     new SqlParameter("@F_DateId", SqlDbType.DateTime)           };
241
         {
241
         {
242
             StringBuilder strSql = new StringBuilder();
242
             StringBuilder strSql = new StringBuilder();
243
             strSql.Append("select F_DateId,F_WorkingFlag,F_EditFlag,F_HolidayFlag,F_HolidayName,F_LunarDate,F_Remark ");
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
             if (strWhere.Trim() != "")
245
             if (strWhere.Trim() != "")
246
             {
246
             {
247
                 strSql.Append(" where " + strWhere);
247
                 strSql.Append(" where " + strWhere);
261
                 strSql.Append(" top " + Top.ToString());
261
                 strSql.Append(" top " + Top.ToString());
262
             }
262
             }
263
             strSql.Append(" F_DateId,F_WorkingFlag,F_EditFlag,F_HolidayFlag,F_HolidayName,F_LunarDate,F_Remark ");
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
             if (strWhere.Trim() != "")
265
             if (strWhere.Trim() != "")
266
             {
266
             {
267
                 strSql.Append(" where " + strWhere);
267
                 strSql.Append(" where " + strWhere);
276
         public int GetRecordCount(string strWhere)
276
         public int GetRecordCount(string strWhere)
277
         {
277
         {
278
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
280
             if (strWhere.Trim() != "")
281
             {
281
             {
282
                 strSql.Append(" where " + strWhere);
282
                 strSql.Append(" where " + strWhere);

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

161
         {
161
         {
162
 
162
 
163
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_OffID=@F_OffID");
165
             strSql.Append(" where F_OffID=@F_OffID");
166
             SqlParameter[] parameters = {
166
             SqlParameter[] parameters = {
167
                     new SqlParameter("@F_OffID", SqlDbType.Int,4)
167
                     new SqlParameter("@F_OffID", SqlDbType.Int,4)
224
         {
224
         {
225
             StringBuilder strSql = new StringBuilder();
225
             StringBuilder strSql = new StringBuilder();
226
             strSql.Append("select F_OffID,F_OffDate,F_OffState,F_remark,F_CreateBy,F_CreateOn ");
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
             if (strWhere.Trim() != "")
228
             if (strWhere.Trim() != "")
229
             {
229
             {
230
                 strSql.Append(" where " + strWhere);
230
                 strSql.Append(" where " + strWhere);
244
                 strSql.Append(" top " + Top.ToString());
244
                 strSql.Append(" top " + Top.ToString());
245
             }
245
             }
246
             strSql.Append(" F_OffID,F_OffDate,F_OffState,F_remark,F_CreateBy,F_CreateOn ");
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
             if (strWhere.Trim() != "")
248
             if (strWhere.Trim() != "")
249
             {
249
             {
250
                 strSql.Append(" where " + strWhere);
250
                 strSql.Append(" where " + strWhere);
259
         public int GetRecordCount(string strWhere)
259
         public int GetRecordCount(string strWhere)
260
         {
260
         {
261
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
263
             if (strWhere.Trim() != "")
264
             {
264
             {
265
                 strSql.Append(" where " + strWhere);
265
                 strSql.Append(" where " + strWhere);

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

20
         public bool Exists(int F_ID)
20
         public bool Exists(int F_ID)
21
         {
21
         {
22
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_ID=@F_ID");
24
             strSql.Append(" where F_ID=@F_ID");
25
             SqlParameter[] parameters = {
25
             SqlParameter[] parameters = {
26
                     new SqlParameter("@F_ID", SqlDbType.Int,4)
26
                     new SqlParameter("@F_ID", SqlDbType.Int,4)
168
         {
168
         {
169
 
169
 
170
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_ID=@F_ID");
172
             strSql.Append(" where F_ID=@F_ID");
173
             SqlParameter[] parameters = {
173
             SqlParameter[] parameters = {
174
                     new SqlParameter("@F_ID", SqlDbType.Int,4)
174
                     new SqlParameter("@F_ID", SqlDbType.Int,4)
243
         {
243
         {
244
             StringBuilder strSql = new StringBuilder();
244
             StringBuilder strSql = new StringBuilder();
245
             strSql.Append("select F_ID,F_WorkStartTimes,F_WorkEndTimes,F_TimeName,F_Remark,F_UserID,F_UserCode,F_UserName,F_CreateOn ");
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
             if (strWhere.Trim() != "")
247
             if (strWhere.Trim() != "")
248
             {
248
             {
249
                 strSql.Append(" where " + strWhere);
249
                 strSql.Append(" where " + strWhere);
263
                 strSql.Append(" top " + Top.ToString());
263
                 strSql.Append(" top " + Top.ToString());
264
             }
264
             }
265
             strSql.Append(" F_ID,F_WorkStartTimes,F_WorkEndTimes,F_TimeName,F_Remark,F_UserID,F_UserCode,F_UserName,F_CreateOn ");
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
             if (strWhere.Trim() != "")
267
             if (strWhere.Trim() != "")
268
             {
268
             {
269
                 strSql.Append(" where " + strWhere);
269
                 strSql.Append(" where " + strWhere);
278
         public int GetRecordCount(string strWhere)
278
         public int GetRecordCount(string strWhere)
279
         {
279
         {
280
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
282
             if (strWhere.Trim() != "")
283
             {
283
             {
284
                 strSql.Append(" where " + strWhere);
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
         {
205
         {
206
 
206
 
207
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_DXTRID=@F_DXTRID");
209
             strSql.Append(" where F_DXTRID=@F_DXTRID");
210
             SqlParameter[] parameters = {
210
             SqlParameter[] parameters = {
211
                     new SqlParameter("@F_DXTRID", SqlDbType.Int,4)
211
                     new SqlParameter("@F_DXTRID", SqlDbType.Int,4)
334
         {
334
         {
335
             StringBuilder strSql = new StringBuilder();
335
             StringBuilder strSql = new StringBuilder();
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 ");
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
             if (strWhere.Trim() != "")
338
             if (strWhere.Trim() != "")
339
             {
339
             {
340
                 strSql.Append(" where " + strWhere);
340
                 strSql.Append(" where " + strWhere);
354
                 strSql.Append(" top " + Top.ToString());
354
                 strSql.Append(" top " + Top.ToString());
355
             }
355
             }
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 ");
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
             if (strWhere.Trim() != "")
358
             if (strWhere.Trim() != "")
359
             {
359
             {
360
                 strSql.Append(" where " + strWhere);
360
                 strSql.Append(" where " + strWhere);
369
         public int GetRecordCount(string strWhere)
369
         public int GetRecordCount(string strWhere)
370
         {
370
         {
371
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
373
             if (strWhere.Trim() != "")
374
             {
374
             {
375
                 strSql.Append(" where " + strWhere);
375
                 strSql.Append(" where " + strWhere);

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

112
         {
112
         {
113
 
113
 
114
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_FileID=@F_FileID");
116
             strSql.Append(" where F_FileID=@F_FileID");
117
             SqlParameter[] parameters = {
117
             SqlParameter[] parameters = {
118
                     new SqlParameter("@F_FileID", SqlDbType.Int,4)
118
                     new SqlParameter("@F_FileID", SqlDbType.Int,4)
195
         {
195
         {
196
             StringBuilder strSql = new StringBuilder();
196
             StringBuilder strSql = new StringBuilder();
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 ");
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
             if (strWhere.Trim() != "")
199
             if (strWhere.Trim() != "")
200
             {
200
             {
201
                 strSql.Append(" where " + strWhere);
201
                 strSql.Append(" where " + strWhere);
215
                 strSql.Append(" top " + Top.ToString());
215
                 strSql.Append(" top " + Top.ToString());
216
             }
216
             }
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 ");
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
             if (strWhere.Trim() != "")
219
             if (strWhere.Trim() != "")
220
             {
220
             {
221
                 strSql.Append(" where " + strWhere);
221
                 strSql.Append(" where " + strWhere);
230
         public int GetRecordCount(string strWhere)
230
         public int GetRecordCount(string strWhere)
231
         {
231
         {
232
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
234
             if (strWhere.Trim() != "")
235
             {
235
             {
236
                 strSql.Append(" where " + strWhere);
236
                 strSql.Append(" where " + strWhere);

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

23
         public bool Exists(int F_AllotID)
23
         public bool Exists(int F_AllotID)
24
         {
24
         {
25
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_AllotID=@F_AllotID");
27
             strSql.Append(" where F_AllotID=@F_AllotID");
28
             SqlParameter[] parameters = {
28
             SqlParameter[] parameters = {
29
                     new SqlParameter("@F_AllotID", SqlDbType.Int,4)
29
                     new SqlParameter("@F_AllotID", SqlDbType.Int,4)
176
         {
176
         {
177
 
177
 
178
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_AllotID=@F_AllotID");
180
             strSql.Append(" where F_AllotID=@F_AllotID");
181
             SqlParameter[] parameters = {
181
             SqlParameter[] parameters = {
182
                     new SqlParameter("@F_AllotID", SqlDbType.Int,4)
182
                     new SqlParameter("@F_AllotID", SqlDbType.Int,4)
255
         {
255
         {
256
             StringBuilder strSql = new StringBuilder();
256
             StringBuilder strSql = new StringBuilder();
257
             strSql.Append("select F_AllotID,F_AllotUserID,F_AllotUserName,F_AllotZXID,F_AllotZXName,F_HFTelID,F_state,F_CreateUserID,F_CreateUserName,F_CreateDate ");
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
             if (strWhere.Trim() != "")
259
             if (strWhere.Trim() != "")
260
             {
260
             {
261
                 strSql.Append(" where " + strWhere);
261
                 strSql.Append(" where " + strWhere);
275
                 strSql.Append(" top " + Top.ToString());
275
                 strSql.Append(" top " + Top.ToString());
276
             }
276
             }
277
             strSql.Append(" F_AllotID,F_AllotUserID,F_AllotUserName,F_AllotZXID,F_AllotZXName,F_HFTelID,F_state,F_CreateUserID,F_CreateUserName,F_CreateDate ");
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
             if (strWhere.Trim() != "")
279
             if (strWhere.Trim() != "")
280
             {
280
             {
281
                 strSql.Append(" where " + strWhere);
281
                 strSql.Append(" where " + strWhere);
290
         public int GetRecordCount(string strWhere)
290
         public int GetRecordCount(string strWhere)
291
         {
291
         {
292
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
294
             if (strWhere.Trim() != "")
295
             {
295
             {
296
                 strSql.Append(" where " + strWhere);
296
                 strSql.Append(" where " + strWhere);

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

58
         {
58
         {
59
             StringBuilder strSql = new StringBuilder();
59
             StringBuilder strSql = new StringBuilder();
60
             strSql.Append("select F_ID,F_Sheng,F_Store,F_Leader,F_Score,F_Telid ");
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
             if (strWhere.Trim() != "")
62
             if (strWhere.Trim() != "")
63
             {
63
             {
64
                 strSql.Append(" where " + strWhere);
64
                 strSql.Append(" where " + strWhere);
113
                 strSql.Append(" top " + Top.ToString());
113
                 strSql.Append(" top " + Top.ToString());
114
             }
114
             }
115
             strSql.Append(" F_ID,F_Sheng,F_Store,F_Leader,F_Score,F_Telid ");
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
             if (strWhere.Trim() != "")
117
             if (strWhere.Trim() != "")
118
             {
118
             {
119
                 strSql.Append(" where " + strWhere);
119
                 strSql.Append(" where " + strWhere);
128
         public int GetRecordCount(string strWhere)
128
         public int GetRecordCount(string strWhere)
129
         {
129
         {
130
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
132
             if (strWhere.Trim() != "")
133
             {
133
             {
134
                 strSql.Append(" where " + strWhere);
134
                 strSql.Append(" where " + strWhere);

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

23
         public bool Exists(int F_TRID)
23
         public bool Exists(int F_TRID)
24
         {
24
         {
25
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_TRID=@F_TRID");
27
             strSql.Append(" where F_TRID=@F_TRID");
28
             SqlParameter[] parameters = {
28
             SqlParameter[] parameters = {
29
                     new SqlParameter("@F_TRID", SqlDbType.Int,4)
29
                     new SqlParameter("@F_TRID", SqlDbType.Int,4)
211
         {
211
         {
212
 
212
 
213
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_TRID=@F_TRID");
215
             strSql.Append(" where F_TRID=@F_TRID");
216
             SqlParameter[] parameters = {
216
             SqlParameter[] parameters = {
217
                     new SqlParameter("@F_TRID", SqlDbType.Int,4)
217
                     new SqlParameter("@F_TRID", SqlDbType.Int,4)
332
         {
332
         {
333
             StringBuilder strSql = new StringBuilder();
333
             StringBuilder strSql = new StringBuilder();
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 ");
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
             if (strWhere.Trim() != "")
336
             if (strWhere.Trim() != "")
337
             {
337
             {
338
                 strSql.Append(" where " + strWhere);
338
                 strSql.Append(" where " + strWhere);
352
                 strSql.Append(" top " + Top.ToString());
352
                 strSql.Append(" top " + Top.ToString());
353
             }
353
             }
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 ");
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
             if (strWhere.Trim() != "")
356
             if (strWhere.Trim() != "")
357
             {
357
             {
358
                 strSql.Append(" where " + strWhere);
358
                 strSql.Append(" where " + strWhere);
367
         public int GetRecordCount(string strWhere)
367
         public int GetRecordCount(string strWhere)
368
         {
368
         {
369
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
371
             if (strWhere.Trim() != "")
372
             {
372
             {
373
                 strSql.Append(" where " + strWhere);
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
         public bool Exists(long F_Id)
20
         public bool Exists(long F_Id)
21
         {
21
         {
22
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_Id=@F_Id");
24
             strSql.Append(" where F_Id=@F_Id");
25
             SqlParameter[] parameters = {
25
             SqlParameter[] parameters = {
26
                     new SqlParameter("@F_Id", SqlDbType.BigInt)
26
                     new SqlParameter("@F_Id", SqlDbType.BigInt)
138
         {
138
         {
139
 
139
 
140
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_Id=@F_Id");
142
             strSql.Append(" where F_Id=@F_Id");
143
             SqlParameter[] parameters = {
143
             SqlParameter[] parameters = {
144
                     new SqlParameter("@F_Id", SqlDbType.BigInt)
144
                     new SqlParameter("@F_Id", SqlDbType.BigInt)
189
         {
189
         {
190
             StringBuilder strSql = new StringBuilder();
190
             StringBuilder strSql = new StringBuilder();
191
             strSql.Append("select F_Id,F_UserId,F_WorkOrderId ");
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
             if (strWhere.Trim() != "")
193
             if (strWhere.Trim() != "")
194
             {
194
             {
195
                 strSql.Append(" where " + strWhere);
195
                 strSql.Append(" where " + strWhere);
209
                 strSql.Append(" top " + Top.ToString());
209
                 strSql.Append(" top " + Top.ToString());
210
             }
210
             }
211
             strSql.Append(" F_Id,F_UserId,F_WorkOrderId ");
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
             if (strWhere.Trim() != "")
213
             if (strWhere.Trim() != "")
214
             {
214
             {
215
                 strSql.Append(" where " + strWhere);
215
                 strSql.Append(" where " + strWhere);
224
         public int GetRecordCount(string strWhere)
224
         public int GetRecordCount(string strWhere)
225
         {
225
         {
226
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
228
             if (strWhere.Trim() != "")
229
             {
229
             {
230
                 strSql.Append(" where " + strWhere);
230
                 strSql.Append(" where " + strWhere);

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

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

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

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

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

20
         public bool Exists(long ID)
20
         public bool Exists(long ID)
21
         {
21
         {
22
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where ID=@ID");
24
             strSql.Append(" where ID=@ID");
25
             SqlParameter[] parameters = {
25
             SqlParameter[] parameters = {
26
                     new SqlParameter("@ID", SqlDbType.BigInt)
26
                     new SqlParameter("@ID", SqlDbType.BigInt)
36
         public bool Exists(string OrderID)
36
         public bool Exists(string OrderID)
37
         {
37
         {
38
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where WorkOrderID=@ID");
40
             strSql.Append(" where WorkOrderID=@ID");
41
             SqlParameter[] parameters = {
41
             SqlParameter[] parameters = {
42
                     new SqlParameter("@ID", SqlDbType.BigInt)
42
                     new SqlParameter("@ID", SqlDbType.BigInt)
664
         public int GetRecordCount(string strWhere)
664
         public int GetRecordCount(string strWhere)
665
         {
665
         {
666
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
668
             if (strWhere.Trim() != "")
669
             {
669
             {
670
                 strSql.Append(" where " + strWhere);
670
                 strSql.Append(" where " + strWhere);

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

880
         public int GetRecordCount(string strWhere)
880
         public int GetRecordCount(string strWhere)
881
         {
881
         {
882
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
884
             if (strWhere.Trim() != "")
885
             {
885
             {
886
                 strSql.Append(" where " + strWhere);
886
                 strSql.Append(" where " + strWhere);

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

20
         public bool Exists(long ID)
20
         public bool Exists(long ID)
21
         {
21
         {
22
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where ID=@ID");
24
             strSql.Append(" where ID=@ID");
25
             SqlParameter[] parameters = {
25
             SqlParameter[] parameters = {
26
                     new SqlParameter("@ID", SqlDbType.BigInt)
26
                     new SqlParameter("@ID", SqlDbType.BigInt)
415
         public int GetRecordCount(string strWhere)
415
         public int GetRecordCount(string strWhere)
416
         {
416
         {
417
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
419
             if (strWhere.Trim() != "")
420
             {
420
             {
421
                 strSql.Append(" where " + strWhere);
421
                 strSql.Append(" where " + strWhere);

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

23
         public bool Exists(long F_ID)
23
         public bool Exists(long F_ID)
24
         {
24
         {
25
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_ID=@F_ID");
27
             strSql.Append(" where F_ID=@F_ID");
28
             SqlParameter[] parameters = {
28
             SqlParameter[] parameters = {
29
                     new SqlParameter("@F_ID", SqlDbType.BigInt)
29
                     new SqlParameter("@F_ID", SqlDbType.BigInt)
181
         {
181
         {
182
 
182
 
183
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where F_ID=@F_ID");
185
             strSql.Append(" where F_ID=@F_ID");
186
             SqlParameter[] parameters = {
186
             SqlParameter[] parameters = {
187
                     new SqlParameter("@F_ID", SqlDbType.BigInt)
187
                     new SqlParameter("@F_ID", SqlDbType.BigInt)
264
         {
264
         {
265
             StringBuilder strSql = new StringBuilder();
265
             StringBuilder strSql = new StringBuilder();
266
             strSql.Append("select * ");
266
             strSql.Append("select * ");
267
-            strSql.Append(" FROM T_Wo_WorkOrderItem_New ");
267
+            strSql.Append(" FROM T_Wo_WorkOrderItem_New  WITH(NOLOCK) ");
268
             if (strWhere.Trim() != "")
268
             if (strWhere.Trim() != "")
269
             {
269
             {
270
                 strSql.Append(" where " + strWhere);
270
                 strSql.Append(" where " + strWhere);
284
                 strSql.Append(" top " + Top.ToString());
284
                 strSql.Append(" top " + Top.ToString());
285
             }
285
             }
286
             strSql.Append(" * ");
286
             strSql.Append(" * ");
287
-            strSql.Append(" FROM T_Wo_WorkOrderItem_New ");
287
+            strSql.Append(" FROM T_Wo_WorkOrderItem_New  WITH(NOLOCK) ");
288
             if (strWhere.Trim() != "")
288
             if (strWhere.Trim() != "")
289
             {
289
             {
290
                 strSql.Append(" where " + strWhere);
290
                 strSql.Append(" where " + strWhere);
299
         public int GetRecordCount(string strWhere)
299
         public int GetRecordCount(string strWhere)
300
         {
300
         {
301
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
303
             if (strWhere.Trim() != "")
304
             {
304
             {
305
                 strSql.Append(" where " + strWhere);
305
                 strSql.Append(" where " + strWhere);

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

294
         {
294
         {
295
             //该表无主键信息,请自定义主键/条件字段
295
             //该表无主键信息,请自定义主键/条件字段
296
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where ID=@ID");
298
             strSql.Append(" where ID=@ID");
299
             SqlParameter[] parameters = {
299
             SqlParameter[] parameters = {
300
                  new SqlParameter("@ID", SqlDbType.BigInt)
300
                  new SqlParameter("@ID", SqlDbType.BigInt)
480
         {
480
         {
481
             StringBuilder strSql = new StringBuilder();
481
             StringBuilder strSql = new StringBuilder();
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 ");
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
             if (strWhere.Trim() != "")
484
             if (strWhere.Trim() != "")
485
             {
485
             {
486
                 strSql.Append(" where " + strWhere);
486
                 strSql.Append(" where " + strWhere);
500
                 strSql.Append(" top " + Top.ToString());
500
                 strSql.Append(" top " + Top.ToString());
501
             }
501
             }
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 ");
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
             if (strWhere.Trim() != "")
504
             if (strWhere.Trim() != "")
505
             {
505
             {
506
                 strSql.Append(" where " + strWhere);
506
                 strSql.Append(" where " + strWhere);
515
         public int GetRecordCount(string strWhere)
515
         public int GetRecordCount(string strWhere)
516
         {
516
         {
517
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
519
             if (strWhere.Trim() != "")
520
             {
520
             {
521
                 strSql.Append(" where " + strWhere);
521
                 strSql.Append(" where " + strWhere);

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

20
         public bool Exists(int ID)
20
         public bool Exists(int ID)
21
         {
21
         {
22
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where ID=@ID");
24
             strSql.Append(" where ID=@ID");
25
             SqlParameter[] parameters = {
25
             SqlParameter[] parameters = {
26
                     new SqlParameter("@ID", SqlDbType.Int,4)
26
                     new SqlParameter("@ID", SqlDbType.Int,4)
163
         {
163
         {
164
 
164
 
165
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where ID=@ID");
167
             strSql.Append(" where ID=@ID");
168
             SqlParameter[] parameters = {
168
             SqlParameter[] parameters = {
169
                     new SqlParameter("@ID", SqlDbType.Int,4)
169
                     new SqlParameter("@ID", SqlDbType.Int,4)
234
         {
234
         {
235
             StringBuilder strSql = new StringBuilder();
235
             StringBuilder strSql = new StringBuilder();
236
             strSql.Append("select ID,Type,MainTime,ItemTime,State,Remark,CreateUser,CreateTime ");
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
             if (strWhere.Trim() != "")
238
             if (strWhere.Trim() != "")
239
             {
239
             {
240
                 strSql.Append(" where " + strWhere);
240
                 strSql.Append(" where " + strWhere);
254
                 strSql.Append(" top " + Top.ToString());
254
                 strSql.Append(" top " + Top.ToString());
255
             }
255
             }
256
             strSql.Append(" ID,Type,MainTime,ItemTime,State,Remark,CreateUser,CreateTime ");
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
             if (strWhere.Trim() != "")
258
             if (strWhere.Trim() != "")
259
             {
259
             {
260
                 strSql.Append(" where " + strWhere);
260
                 strSql.Append(" where " + strWhere);
269
         public int GetRecordCount(string strWhere)
269
         public int GetRecordCount(string strWhere)
270
         {
270
         {
271
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
273
             if (strWhere.Trim() != "")
274
             {
274
             {
275
                 strSql.Append(" where " + strWhere);
275
                 strSql.Append(" where " + strWhere);

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

24
         public bool Exists(long Id)
24
         public bool Exists(long Id)
25
         {
25
         {
26
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where Id=@Id");
28
             strSql.Append(" where Id=@Id");
29
             SqlParameter[] parameters = {
29
             SqlParameter[] parameters = {
30
                     new SqlParameter("@Id", SqlDbType.BigInt)
30
                     new SqlParameter("@Id", SqlDbType.BigInt)
318
         public int GetRecordCount(string strWhere)
318
         public int GetRecordCount(string strWhere)
319
         {
319
         {
320
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
322
             if (strWhere.Trim() != "")
323
             {
323
             {
324
                 strSql.Append(" where " + strWhere);
324
                 strSql.Append(" where " + strWhere);

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

24
         public bool Exists(long Id)
24
         public bool Exists(long Id)
25
         {
25
         {
26
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where Id=@Id");
28
             strSql.Append(" where Id=@Id");
29
             SqlParameter[] parameters = {
29
             SqlParameter[] parameters = {
30
                     new SqlParameter("@Id", SqlDbType.BigInt)
30
                     new SqlParameter("@Id", SqlDbType.BigInt)
167
         {
167
         {
168
 
168
 
169
             StringBuilder strSql = new StringBuilder();
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
             strSql.Append(" where Id=@Id");
171
             strSql.Append(" where Id=@Id");
172
             SqlParameter[] parameters = {
172
             SqlParameter[] parameters = {
173
                     new SqlParameter("@Id", SqlDbType.BigInt)
173
                     new SqlParameter("@Id", SqlDbType.BigInt)
238
         {
238
         {
239
             StringBuilder strSql = new StringBuilder();
239
             StringBuilder strSql = new StringBuilder();
240
             strSql.Append("select Id,WorkOrderId,IsVisit,IsDelete,CallResultId,CreateBy,CreateTime,Remark ");
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
             if (strWhere.Trim() != "")
242
             if (strWhere.Trim() != "")
243
             {
243
             {
244
                 strSql.Append(" where " + strWhere);
244
                 strSql.Append(" where " + strWhere);
258
                 strSql.Append(" top " + Top.ToString());
258
                 strSql.Append(" top " + Top.ToString());
259
             }
259
             }
260
             strSql.Append(" Id,WorkOrderId,IsVisit,IsDelete,CallResultId,CreateBy,CreateTime,Remark ");
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
             if (strWhere.Trim() != "")
262
             if (strWhere.Trim() != "")
263
             {
263
             {
264
                 strSql.Append(" where " + strWhere);
264
                 strSql.Append(" where " + strWhere);
273
         public int GetRecordCount(string strWhere)
273
         public int GetRecordCount(string strWhere)
274
         {
274
         {
275
             StringBuilder strSql = new StringBuilder();
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
             if (strWhere.Trim() != "")
277
             if (strWhere.Trim() != "")
278
             {
278
             {
279
                 strSql.Append(" where " + strWhere);
279
                 strSql.Append(" where " + strWhere);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

文件差异内容过多而无法显示
+ 4 - 4
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs