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
fa8e3d9f
Commit
fa8e3d9f
authored
Dec 16, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
fcdffda6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
5 deletions
+28
-5
GuestEducationEnum.cs
Edu.Common/Enum/Course/GuestEducationEnum.cs
+6
-0
RB_StudentRepository.cs
Edu.Repository/User/RB_StudentRepository.cs
+14
-0
UserController.cs
Edu.WebApi/Controllers/User/UserController.cs
+8
-5
No files found.
Edu.Common/Enum/Course/GuestEducationEnum.cs
View file @
fa8e3d9f
...
...
@@ -55,5 +55,11 @@ namespace Edu.Common.Enum.Course
/// </summary>
[
EnumField
(
"博士后"
)]
N9
=
9
,
/// <summary>
/// 在职
/// </summary>
[
EnumField
(
"在职"
)]
N10
=
10
,
}
}
Edu.Repository/User/RB_StudentRepository.cs
View file @
fa8e3d9f
...
...
@@ -163,11 +163,25 @@ WHERE 1=1
builder
.
AppendFormat
(
" AND t.{0} LIKE @StuTel "
,
nameof
(
RB_Student_ViewModel
.
StuTel
));
parameters
.
Add
(
"StuTel"
,
"%"
+
query
.
StuTel
.
Trim
()
+
"%"
);
}
if
(!
string
.
IsNullOrWhiteSpace
(
query
.
QQ
))
{
builder
.
AppendFormat
(
" AND t.{0} LIKE @QQ "
,
nameof
(
RB_Student_ViewModel
.
QQ
));
parameters
.
Add
(
"QQ"
,
"%"
+
query
.
QQ
.
Trim
()
+
"%"
);
}
if
(!
string
.
IsNullOrWhiteSpace
(
query
.
WeChatNo
))
{
builder
.
AppendFormat
(
" AND t.{0} LIKE @WeChatNo "
,
nameof
(
RB_Student_ViewModel
.
WeChatNo
));
parameters
.
Add
(
"WeChatNo"
,
"%"
+
query
.
WeChatNo
.
Trim
()
+
"%"
);
}
if
(!
string
.
IsNullOrWhiteSpace
(
query
.
KeyWords
))
{
builder
.
AppendFormat
(
" AND (t.{0} LIKE @KeyWords OR t.{1} LIKE @KeyWords) "
,
nameof
(
RB_Student_ViewModel
.
StuName
),
nameof
(
RB_Student_ViewModel
.
StuTel
));
parameters
.
Add
(
"KeyWords"
,
"%"
+
query
.
KeyWords
.
Trim
()
+
"%"
);
}
if
(
query
.
StuType
>
0
)
{
builder
.
AppendFormat
(
" AND t.{0}={1} "
,
nameof
(
RB_Student_ViewModel
.
StuType
),
query
.
StuType
);
}
if
(
query
.
ProviceId
>
0
)
{
builder
.
AppendFormat
(
" AND t.{0}={1} "
,
nameof
(
RB_Student_ViewModel
.
ProviceId
),
query
.
ProviceId
);
...
...
Edu.WebApi/Controllers/User/UserController.cs
View file @
fa8e3d9f
...
...
@@ -676,7 +676,10 @@ namespace Edu.WebApi.Controllers.User
StartTime
=
base
.
ParmJObj
.
GetStringValue
(
"StartTime"
),
EndTime
=
base
.
ParmJObj
.
GetStringValue
(
"EndTime"
),
BelongType
=
base
.
ParmJObj
.
GetInt
(
"BelongType"
),
QStudentType
=
base
.
ParmJObj
.
GetInt
(
"QStudentType"
,
-
1
)
QStudentType
=
base
.
ParmJObj
.
GetInt
(
"QStudentType"
,
-
1
),
QQ
=
base
.
ParmJObj
.
GetStringValue
(
"QQ"
),
WeChatNo
=
base
.
ParmJObj
.
GetStringValue
(
"WeChatNo"
),
StuType
=
base
.
ParmJObj
.
GetInt
(
"StuType"
),
};
if
(
query
.
IsQueryMyStu
==
1
)
{
...
...
@@ -951,11 +954,11 @@ namespace Edu.WebApi.Controllers.User
{
if
(
isB2B
)
{
message
=
"此学员微信已绑定同行!请重新录入!"
;
message
=
"此学员微信
号
已绑定同行!请重新录入!"
;
}
else
{
message
=
string
.
Format
(
"此学员
QQ
号已被【{0}】于【{1}】注册。"
,
name
,
Common
.
ConvertHelper
.
FormatTime
(
model
.
CreateTime
));
message
=
string
.
Format
(
"此学员
微信
号已被【{0}】于【{1}】注册。"
,
name
,
Common
.
ConvertHelper
.
FormatTime
(
model
.
CreateTime
));
}
}
}
...
...
@@ -963,12 +966,12 @@ namespace Edu.WebApi.Controllers.User
{
if
(
isB2B
)
{
message
=
"此学员微信已绑定同行!请重新录入!"
;
message
=
"此学员微信
号
已绑定同行!请重新录入!"
;
PushMessage
(
model
);
}
else
{
message
=
string
.
Format
(
"此学员
QQ
号已被【{0}】于【{1}】注册。"
,
name
,
Common
.
ConvertHelper
.
FormatTime
(
model
.
CreateTime
));
message
=
string
.
Format
(
"此学员
微信
号已被【{0}】于【{1}】注册。"
,
name
,
Common
.
ConvertHelper
.
FormatTime
(
model
.
CreateTime
));
}
}
}
...
...
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