zhengbingbing лет назад: 7
Родитель
Сommit
b2b3a9429e

+ 4 - 1
codegit/CallCenterApi/CallCenterApi.BLL/T_Sys_IVRWords.cs

@@ -134,7 +134,10 @@ namespace CallCenterApi.BLL
134 134
 
135 135
         #endregion  BasicMethod
136 136
         #region  ExtensionMethod
137
-
137
+        public DataSet GetItems(string orlink)
138
+        {
139
+            return dal.GetItems(orlink);
140
+        }
138 141
         #endregion  ExtensionMethod
139 142
     }
140 143
 }

+ 12 - 1
codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_IVRWords.cs

@@ -414,7 +414,18 @@ namespace CallCenterApi.DAL
414 414
 
415 415
         #endregion  BasicMethod
416 416
         #region  ExtensionMethod
417
-
417
+        /// <summary>
418
+        /// 获取项目列表
419
+        /// </summary>
420
+        /// <returns></returns>
421
+        public DataSet GetItems(string orlink)
422
+        {
423
+            StringBuilder strSql = new StringBuilder();
424
+            strSql.Append(" select projectname from ");
425
+            strSql.Append(" openquery("+ orlink + ",'select * from ls_xyhjzxxmdh')");
426
+            strSql.Append(" group by projectname ");
427
+            return DbHelperSQL.Query(strSql.ToString());
428
+        }
418 429
         #endregion  ExtensionMethod
419 430
     }
420 431
 }

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Configs/system.config

@@ -31,7 +31,7 @@
31 31
   <!-- 设置密码 -->
32 32
   <add key="password" value="ftp2018!" />
33 33
   <!-- 文件保存位置 -->
34
-  <add key="saveloc" value="D:\\data\ftpvoice" />
34
+  <add key="saveloc" value="D:\ftpvoice\" />
35 35
   <!-- ================== 5:Redis配置 ================== -->
36 36
   <add key="Redis_Server" value="192.168.4.18"/>
37 37
   <add key="Redis_Port" value="6379"/>

+ 11 - 3
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/IVRWelcomeController.cs

@@ -42,7 +42,7 @@ namespace CallCenterApi.Interface.Controllers
42 42
             }
43 43
             if (itemid.Trim() != "" && itemid != "undefined")
44 44
             {
45
-                sql += " and F_ItemID=" + itemid;
45
+                sql += " and F_Item='" + itemid+"' ";
46 46
             }
47 47
             if (strbtime.Trim() != "" && strbtime != "undefined")
48 48
             {
@@ -328,7 +328,7 @@ namespace CallCenterApi.Interface.Controllers
328 328
                         model_T_Sys_Accessories.F_AddTime = DateTime.Now;//上传时间
329 329
                         model_T_Sys_Accessories.F_FileName = fullFileName;//附件名称
330 330
                         model_T_Sys_Accessories.F_FileType = ".wav";//附件类型
331
-                        model_T_Sys_Accessories.F_FileUrl = savedir + fullFileName + ".wav";//附件地址
331
+                        model_T_Sys_Accessories.F_FileUrl = savedir + fullFileName;//附件地址
332 332
                         //model_T_Sys_Accessories.F_Size = size;
333 333
                         model_T_Sys_Accessories.F_UserCode = User.UserData["F_UserCode"];//上传人  
334 334
                         //model_T_Sys_Accessories.F_UserCode = CurrentUser.UserData.F_UserCode;//上传人  
@@ -338,7 +338,7 @@ namespace CallCenterApi.Interface.Controllers
338 338
                         {
339 339
                             filename = fullFileName,
340 340
                             loadpath = path,
341
-                            wavpath = savedir + fullFileName + ".wav"
341
+                            wavpath = savedir + fullFileName 
342 342
                         };
343 343
                         return Success("文件上传成功", obj);
344 344
                     }
@@ -352,5 +352,13 @@ namespace CallCenterApi.Interface.Controllers
352 352
             }
353 353
             return Error("参数传入失败");
354 354
         }
355
+
356
+        //获取项目名称
357
+        public ActionResult GetItems()
358
+        {
359
+            var orcllink = new BLL.T_Sys_SystemConfig().GetParamValueByParamCode("OracleLink");
360
+            var items= dBLL.GetItems(orcllink);
361
+            return Success("获取项目", items);
362
+        }
355 363
     }
356 364
 }