|
|
@@ -16,7 +16,7 @@ namespace CallCenterApi.Interface.Controllers.knowledge
|
|
16
|
16
|
{
|
|
17
|
17
|
// GET: Repository
|
|
18
|
18
|
/// <summary>
|
|
19
|
|
- /// 获取区域列表
|
|
|
19
|
+ /// 获取知识库列表
|
|
20
|
20
|
/// </summary>
|
|
21
|
21
|
/// <returns></returns>
|
|
22
|
22
|
public ActionResult GetList(int isdc = 0)
|
|
|
@@ -111,7 +111,7 @@ namespace CallCenterApi.Interface.Controllers.knowledge
|
|
111
|
111
|
}
|
|
112
|
112
|
|
|
113
|
113
|
/// <summary>
|
|
114
|
|
- /// 获取区域
|
|
|
114
|
+ /// 获取知识库
|
|
115
|
115
|
/// </summary>
|
|
116
|
116
|
/// <param name="areaId"></param>
|
|
117
|
117
|
/// <returns></returns>
|
|
|
@@ -119,16 +119,38 @@ namespace CallCenterApi.Interface.Controllers.knowledge
|
|
119
|
119
|
{
|
|
120
|
120
|
int id = RequestString.GetInt("id", 0);
|
|
121
|
121
|
Model.T_Repository_List dModel = new BLL.T_Repository_List().GetModel(id);
|
|
122
|
|
- if (dModel != null)
|
|
|
122
|
+
|
|
|
123
|
+ if (dModel != null && !string.IsNullOrEmpty(dModel.F_File))
|
|
123
|
124
|
{
|
|
|
125
|
+ var configfj = new BLL.T_Sys_SystemConfig().GetModelList(" F_ParamCode='FileUrlPath' ").FirstOrDefault();
|
|
124
|
126
|
|
|
125
|
|
- }
|
|
|
127
|
+ DataTable dt = DbHelperSQL.Query("select * from T_Sys_Accessories where F_FileId in (" + dModel.F_File + ")").Tables[0];
|
|
|
128
|
+
|
|
|
129
|
+ foreach (DataRow dr in dt.Rows)
|
|
|
130
|
+ {
|
|
|
131
|
+ dr["F_FileUrl"] = configfj.F_ParamValue + dr["F_FileUrl"].ToString();
|
|
|
132
|
+ }
|
|
126
|
133
|
|
|
127
|
|
- return Success("获取信息成功", dModel);
|
|
|
134
|
+ var obj = new
|
|
|
135
|
+ {
|
|
|
136
|
+ data = dModel,
|
|
|
137
|
+ file = dt
|
|
|
138
|
+ };
|
|
|
139
|
+ return Success("获取信息成功", obj);
|
|
|
140
|
+ }
|
|
|
141
|
+ else
|
|
|
142
|
+ {
|
|
|
143
|
+ var obj = new
|
|
|
144
|
+ {
|
|
|
145
|
+ data = dModel,
|
|
|
146
|
+ file = new DataTable()
|
|
|
147
|
+ };
|
|
|
148
|
+ return Success("获取信息成功", dModel);
|
|
|
149
|
+ }
|
|
128
|
150
|
}
|
|
129
|
151
|
|
|
130
|
152
|
/// <summary>
|
|
131
|
|
- /// 添加部门
|
|
|
153
|
+ /// 添加知识库
|
|
132
|
154
|
/// </summary>
|
|
133
|
155
|
/// <param name="input"></param>
|
|
134
|
156
|
/// <returns></returns>
|
|
|
@@ -262,7 +284,7 @@ namespace CallCenterApi.Interface.Controllers.knowledge
|
|
262
|
284
|
}
|
|
263
|
285
|
|
|
264
|
286
|
/// <summary>
|
|
265
|
|
- /// 删除部门
|
|
|
287
|
+ /// 删除知识库
|
|
266
|
288
|
/// </summary>
|
|
267
|
289
|
/// <param name="ids"></param>
|
|
268
|
290
|
/// <returns></returns>
|