Commit 9d2c3611 authored by 黄奎's avatar 黄奎

页面修改

parent bd80004b
...@@ -35,6 +35,11 @@ namespace Edu.Model.ViewModel.Customer ...@@ -35,6 +35,11 @@ namespace Edu.Model.ViewModel.Customer
/// </summary> /// </summary>
public string StuName { get; set; } public string StuName { get; set; }
/// <summary>
/// 学员电话
/// </summary>
public string StuTel { get; set; }
/// <summary> /// <summary>
/// 到访状态字符串 /// 到访状态字符串
/// </summary> /// </summary>
......
...@@ -54,9 +54,9 @@ WHERE 1=1 ...@@ -54,9 +54,9 @@ WHERE 1=1
{ {
StringBuilder builder = new StringBuilder(); StringBuilder builder = new StringBuilder();
builder.AppendFormat(@" builder.AppendFormat(@"
SELECT A.*,IFNULL(B.StuName,'') AS StuName SELECT A.*,IFNULL(B.StuName,'') AS StuName,IFNULL(B.StuTel,'') AS StuTel
FROM RB_Student_Visit AS A INNER JOIN rb_student AS B ON A.StuId=B.StuId FROM RB_Student_Visit AS A INNER JOIN rb_student AS B ON A.StuId=B.StuId
WHERE 1=1 WHERE 1=1
"); ");
builder.AppendFormat(" AND A.{0}={1} ", nameof(RB_Student_Visit_Extend.Status), (int)DateStateEnum.Normal); builder.AppendFormat(" AND A.{0}={1} ", nameof(RB_Student_Visit_Extend.Status), (int)DateStateEnum.Normal);
if (query != null) if (query != null)
......
...@@ -15,6 +15,7 @@ using Newtonsoft.Json.Linq; ...@@ -15,6 +15,7 @@ using Newtonsoft.Json.Linq;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text.RegularExpressions;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace Edu.WebApi.Controllers.Duty namespace Edu.WebApi.Controllers.Duty
...@@ -722,6 +723,8 @@ namespace Edu.WebApi.Controllers.Duty ...@@ -722,6 +723,8 @@ namespace Edu.WebApi.Controllers.Duty
{ {
foreach (var item in data) foreach (var item in data)
{ {
string StuTel = item.StuTel;
StuTel= Regex.Replace(StuTel, "(\\d{3})(\\d{5})(\\d{3})", "$1*****$3");
list.Add(new list.Add(new
{ {
item.Id, item.Id,
...@@ -739,6 +742,7 @@ namespace Edu.WebApi.Controllers.Duty ...@@ -739,6 +742,7 @@ namespace Edu.WebApi.Controllers.Duty
item.IsVisit, item.IsVisit,
item.IsVisitStr, item.IsVisitStr,
item.ReceptionPersionTel, item.ReceptionPersionTel,
StuTel,
}); });
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment