Browse Source

是否时vip

duhongyu 3 years ago
parent
commit
b8a434a552

+ 21 - 18
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/customer/CustomerController.cs

@@ -101,31 +101,34 @@ namespace CallCenterApi.Interface.Controllers.customer
101 101
         public ActionResult GetphoneCustomer(string phone)
102 102
         {
103 103
             var User = new BLL.T_Cus_CustomerBase().GetModelByPhone(phone);
104
-         
104
+            string F_CustomerName = "", F_Mobile = "", F_Address = "";
105 105
             if (User != null)
106 106
             {
107
-                var cusvip  = new BLL.T_Cus_VipInfo().GetModelList("F_IsDelete=0 and F_State=0 and F_Phone='"+ phone + "'");
108
-                int vip = 0;
109
-                if (cusvip != null&& cusvip.Count >0)
110
-                {
111
-                    vip = 1;
112
-                }
113
-                var obj = new
114
-                {
115
-                    F_CustomerName = User.F_CustomerName,
116
-                    F_Mobile = User.F_Mobile,
117
-                    F_Address = User.F_Address,
118
-                    vip = vip
119
-                };
120
-                return Success("获取成功", obj);
121
-               
107
+                 F_CustomerName = User.F_CustomerName;
108
+                 F_Mobile = User.F_Mobile;
109
+                 F_Address = User.F_Address;
122 110
             }
123
-            else
111
+            var cusvip = new BLL.T_Cus_VipInfo().GetModelList("F_IsDelete=0 and F_State=0 and F_Phone='" + phone + "'");
112
+            int vip = 0;
113
+            if (cusvip != null && cusvip.Count > 0)
124 114
             {
125
-                return Error("获取失败");
115
+                vip = 1;
126 116
             }
127 117
 
118
+            var obj = new
119
+            {
120
+                F_CustomerName = F_CustomerName,
121
+                F_Mobile = F_Mobile,
122
+                F_Address = F_Address,
123
+                vip = vip
124
+            };
125
+            return Success("获取成功", obj);
126
+           
127
+
128 128
         }
129
+
130
+
131
+      
129 132
         /// <summary>
130 133
         /// 获取客户信息
131 134
         /// </summary>

+ 1 - 0
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/AffairsController.cs

@@ -2109,6 +2109,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
2109 2109
             /// </summary>
2110 2110
             public string APPLY_TYPE { set; get; }
2111 2111
         }
2112
+      
2112 2113
         /// <summary>
2113 2114
         /// 申请延时
2114 2115
         /// </summary>

+ 2 - 0
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs

@@ -17062,6 +17062,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
17062 17062
                 string result = RequestString.GetFormString("result");//回访情况
17063 17063
                 int nexttype = RequestString.GetInt("nexttype", 0);//1重办 2退回重办3仅回访4已办未果
17064 17064
                 string cbreason = RequestString.GetFormString("cbreason");//重办原因
17065
+                string finalopinion = RequestString.GetFormString("finalopinion");//结案意见
17065 17066
                 string callid = RequestString.GetFormString("callid");
17066 17067
                 string guid = RequestString.GetFormString("guid");
17067 17068
                 Model.T_Bus_WorkOrder modelT_Bus_WorkOrder = workorderBLL.GetModel(workorderid);
@@ -17174,6 +17175,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
17174 17175
                                     keyValuePairs.Add("F_IsProResult", 1);
17175 17176
                                     keyValuePairs.Add("F_Note", "");
17176 17177
                                     keyValuePairs.Add("F_SpotCheck", spotcheck);
17178
+                                    keyValuePairs.Add("F_FinalOpinion", finalopinion);
17177 17179
                                     modelT_Bus_WorkOrder.F_SpotCheck = spotcheck;
17178 17180
                                     modelT_Bus_WorkOrder.F_WorkState = (int)EnumWorkState.finish;//已回访
17179 17181
                                     workorderBLL.UpdateWorkOrder(modelT_Bus_WorkOrder.F_Id, keyValuePairs);