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

Merge branch 'master' of http://192.168.1.222:3000/duhongyu/HeBi12345_API

duhongyu преди 3 години
родител
ревизия
51b7f2b9e9
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/BusinessController.cs

+ 2 - 2
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/BusinessController.cs

@@ -423,7 +423,7 @@ namespace CallCenterApi.Interface.Controllers.report
423 423
 
424 424
             if (isdc > 0)
425 425
             {
426
-                string sqls = "select ROW_NUMBER() OVER (ORDER BY F_CreateTime asc) row,F_WorkOrderId,dbo.GetDeptNames(F_MainDeptId ) F_DeptName,F_DealTime,F_ComContent,F_Result,dbo.GetDictionaryName(F_InfoSource) F_SourceName, F_CusPhone,F_ConPhone From T_Bus_WorkOrder a WITH(NOLOCK) " + sql + " where 1=1 " + sqlwhere;
426
+                string sqls = "select ROW_NUMBER() OVER (ORDER BY F_CreateTime asc) row,F_WorkOrderId, (case when F_IsResult=1 then '市长热线' else dbo.GetDeptNames(F_MainDeptId) end) F_DeptName,F_DealTime,F_ComContent,F_Result,dbo.GetDictionaryName(F_InfoSource) F_SourceName, F_CusPhone,F_ConPhone From T_Bus_WorkOrder a WITH(NOLOCK) " + sql + " where 1=1 " + sqlwhere;
427 427
 
428 428
                 var dt = DbHelperSQL.Query(sqls).Tables[0];
429 429
                 NPOIHelper npoi = new NPOIHelper();
@@ -439,7 +439,7 @@ namespace CallCenterApi.Interface.Controllers.report
439 439
             }
440 440
             else
441 441
             {
442
-                string cols = "F_WorkOrderId,dbo.GetDeptNames(F_MainDeptId ) F_DeptName,F_DealTime,F_ComContent,F_Result,dbo.GetDictionaryName(F_InfoSource) F_SourceName, F_CusPhone,F_ConPhone";
442
+                string cols = "F_WorkOrderId,(case when F_IsResult=1 then '市长热线' else dbo.GetDeptNames(F_MainDeptId) end ) F_DeptName,F_DealTime,F_ComContent,F_Result,dbo.GetDictionaryName(F_InfoSource) F_SourceName, F_CusPhone,F_ConPhone";
443 443
                 int recordCount = 0;
444 444
                 var dt = BLL.PagerBLL.GetListPager(
445 445
                     "T_Bus_WorkOrder a WITH(NOLOCK)" + sql,