|
|
@@ -1,5 +1,6 @@
|
|
1
|
1
|
using CallCenterApi.Common;
|
|
2
|
2
|
using CallCenterApi.DB;
|
|
|
3
|
+using CallCenterApi.Interface.App_Start;
|
|
3
|
4
|
using CallCenterApi.Interface.Controllers.Base;
|
|
4
|
5
|
using System;
|
|
5
|
6
|
using System.Collections.Generic;
|
|
|
@@ -14,12 +15,52 @@ namespace CallCenterApi.Interface.Controllers.County
|
|
14
|
15
|
{
|
|
15
|
16
|
// GET: CountyBranch
|
|
16
|
17
|
|
|
17
|
|
-
|
|
18
|
18
|
private BLL.T_Branch_List branchBLL = new BLL.T_Branch_List();
|
|
19
|
19
|
|
|
20
|
20
|
#region 网点
|
|
21
|
21
|
|
|
22
|
22
|
/// <summary>
|
|
|
23
|
+ /// 获取所有网点
|
|
|
24
|
+ /// </summary>
|
|
|
25
|
+ /// <returns></returns>
|
|
|
26
|
+ [OutActionFilter]
|
|
|
27
|
+ public ActionResult GetCityList(string code,string name)
|
|
|
28
|
+ {
|
|
|
29
|
+ string sql = " F_IsDelete=0 ";
|
|
|
30
|
+
|
|
|
31
|
+ if (!string.IsNullOrEmpty(code))
|
|
|
32
|
+ {
|
|
|
33
|
+ sql += " and F_Code like '%" + code + "%' ";
|
|
|
34
|
+ }
|
|
|
35
|
+ if (!string.IsNullOrEmpty(name))
|
|
|
36
|
+ {
|
|
|
37
|
+ sql += " and F_Name like '%" + name + "%' ";
|
|
|
38
|
+ }
|
|
|
39
|
+ DataTable dt = branchBLL.GetList(sql).Tables[0];
|
|
|
40
|
+
|
|
|
41
|
+ return Success("成功", dt);
|
|
|
42
|
+ }
|
|
|
43
|
+
|
|
|
44
|
+ /// <summary>
|
|
|
45
|
+ /// 获取详情
|
|
|
46
|
+ /// </summary>
|
|
|
47
|
+ /// <param name="code"></param>
|
|
|
48
|
+ /// <returns></returns>
|
|
|
49
|
+ [OutActionFilter]
|
|
|
50
|
+ public ActionResult GetCityDetail(string code)
|
|
|
51
|
+ {
|
|
|
52
|
+ string sql = " F_IsDelete=0 ";
|
|
|
53
|
+
|
|
|
54
|
+ if (!string.IsNullOrEmpty(code))
|
|
|
55
|
+ {
|
|
|
56
|
+ sql += " and F_Code = '" + code + "' ";
|
|
|
57
|
+ }
|
|
|
58
|
+ var model = branchBLL.GetModelList(sql).FirstOrDefault();
|
|
|
59
|
+
|
|
|
60
|
+ return Success("成功", model);
|
|
|
61
|
+ }
|
|
|
62
|
+
|
|
|
63
|
+ /// <summary>
|
|
23
|
64
|
/// 获取网点列表
|
|
24
|
65
|
/// </summary>
|
|
25
|
66
|
/// <returns></returns>
|