Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
Education
Commits
9d2c3611
Commit
9d2c3611
authored
Dec 14, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
bd80004b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
RB_Student_Visit_Extend.cs
Edu.Model/ViewModel/Customer/RB_Student_Visit_Extend.cs
+5
-0
RB_Student_VisitRepository.cs
Edu.Repository/Customer/RB_Student_VisitRepository.cs
+2
-2
DutyPlanController.cs
Edu.WebApi/Controllers/Duty/DutyPlanController.cs
+4
-0
No files found.
Edu.Model/ViewModel/Customer/RB_Student_Visit_Extend.cs
View file @
9d2c3611
...
...
@@ -35,6 +35,11 @@ namespace Edu.Model.ViewModel.Customer
/// </summary>
public
string
StuName
{
get
;
set
;
}
/// <summary>
/// 学员电话
/// </summary>
public
string
StuTel
{
get
;
set
;
}
/// <summary>
/// 到访状态字符串
/// </summary>
...
...
Edu.Repository/Customer/RB_Student_VisitRepository.cs
View file @
9d2c3611
...
...
@@ -54,9 +54,9 @@ WHERE 1=1
{
StringBuilder
builder
=
new
StringBuilder
();
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
WHERE 1=1
WHERE 1=1
"
);
builder
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
RB_Student_Visit_Extend
.
Status
),
(
int
)
DateStateEnum
.
Normal
);
if
(
query
!=
null
)
...
...
Edu.WebApi/Controllers/Duty/DutyPlanController.cs
View file @
9d2c3611
...
...
@@ -15,6 +15,7 @@ using Newtonsoft.Json.Linq;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text.RegularExpressions
;
using
System.Threading.Tasks
;
namespace
Edu.WebApi.Controllers.Duty
...
...
@@ -722,6 +723,8 @@ namespace Edu.WebApi.Controllers.Duty
{
foreach
(
var
item
in
data
)
{
string
StuTel
=
item
.
StuTel
;
StuTel
=
Regex
.
Replace
(
StuTel
,
"(\\d{3})(\\d{5})(\\d{3})"
,
"$1*****$3"
);
list
.
Add
(
new
{
item
.
Id
,
...
...
@@ -739,6 +742,7 @@ namespace Edu.WebApi.Controllers.Duty
item
.
IsVisit
,
item
.
IsVisitStr
,
item
.
ReceptionPersionTel
,
StuTel
,
});
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment