|
|
@@ -170,7 +170,9 @@ namespace CallCenterApi.Interface.Controllers.customer
|
|
170
|
170
|
if (userModel == null)
|
|
171
|
171
|
return Error("获取失败,该客户信息不存在");
|
|
172
|
172
|
//系统列+自定义列 实体
|
|
173
|
|
- var columnList = customerFieldBLL.GetList().Where(x => x.F_IsShowOnList > 0).OrderBy(x => x.F_FieldType).ThenBy(x => x.F_Sort).ToList();
|
|
|
173
|
+ var columnList = customerFieldBLL.GetList()
|
|
|
174
|
+ .Where(x => (x.F_FieldType == 0 && x.F_IsNecessary > 0) || (x.F_FieldType == 1 && x.F_IsShowOnScrean > 0))
|
|
|
175
|
+ .OrderBy(x => x.F_FieldType).ThenBy(x => x.F_Sort).ToList();
|
|
174
|
176
|
//系统列+自定义列 字符串
|
|
175
|
177
|
var headList = columnList.Select(x => x.F_Name).ToList();
|
|
176
|
178
|
//系统列+自定义列 字段名
|
|
|
@@ -181,7 +183,7 @@ namespace CallCenterApi.Interface.Controllers.customer
|
|
181
|
183
|
var expand = DbHelperSQL.Query("select top 1 * from T_Cus_CustomerExpand where F_CustomerId=@F_CustomerId", new SqlParameter("@F_CustomerId", userModel.F_Id)).Tables[0].Rows[0];
|
|
182
|
184
|
List<string> strList1 = new List<string>()
|
|
183
|
185
|
{
|
|
184
|
|
- userModel.F_Name, userModel.F_PhoneNum1, userModel.F_PhoneNum2, userModel.F_Address, userModel.F_AddAgentName, userModel.F_AddTime.ToString("yyyy-MM-dd HH:mm:ss"), userModel.F_Remark
|
|
|
186
|
+ userModel.F_Name, userModel.F_PhoneNum1, userModel.F_PhoneNum2, userModel.F_Address, userModel.F_Remark
|
|
185
|
187
|
};
|
|
186
|
188
|
List<string> strList2 = new List<string>();
|
|
187
|
189
|
foreach (var item in customerColumnArr)
|
|
|
@@ -366,7 +368,9 @@ namespace CallCenterApi.Interface.Controllers.customer
|
|
366
|
368
|
public ActionResult GetCustomerField()
|
|
367
|
369
|
{
|
|
368
|
370
|
//系统列+自定义列 实体
|
|
369
|
|
- var columnList = customerFieldBLL.GetList().Where(x => x.F_IsShowOnList > 0).OrderBy(x => x.F_FieldType).ThenBy(x => x.F_Sort).ToList();
|
|
|
371
|
+ var columnList = customerFieldBLL.GetList()
|
|
|
372
|
+ .Where(x => (x.F_FieldType == 0 && x.F_IsNecessary > 0) || (x.F_FieldType == 1 && x.F_IsShowOnScrean > 0))
|
|
|
373
|
+ .OrderBy(x => x.F_FieldType).ThenBy(x => x.F_Sort).ToList();
|
|
370
|
374
|
//系统列+自定义列 字符串
|
|
371
|
375
|
var headList = columnList.Select(x => x.F_Name).ToList();
|
|
372
|
376
|
//系统列+自定义列 字段名
|