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
96578652
Commit
96578652
authored
Dec 09, 2021
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
f06bd2a3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
60 additions
and
1 deletion
+60
-1
PushMessageCategoryEnum.cs
Edu.Common/Enum/System/PushMessageCategoryEnum.cs
+24
-0
EduB2BOrderModule.cs
Edu.Module.Course/EduB2BOrderModule.cs
+1
-1
StudentModule.cs
Edu.Module.User/StudentModule.cs
+35
-0
No files found.
Edu.Common/Enum/System/PushMessageCategoryEnum.cs
View file @
96578652
...
@@ -87,5 +87,29 @@ namespace Edu.Common.Enum.System
...
@@ -87,5 +87,29 @@ namespace Edu.Common.Enum.System
/// </summary>
/// </summary>
[
EnumField
(
"销售通知"
)]
[
EnumField
(
"销售通知"
)]
SalePeople
=
12
,
SalePeople
=
12
,
/// <summary>
/// 同业注册审核通知
/// </summary>
[
EnumField
(
"同业注册审核通知"
)]
B2BCustomerAudit
=
13
,
/// <summary>
/// 同业录入客户通知
/// </summary>
[
EnumField
(
"同业录入客户通知"
)]
B2BCustomerStu
=
14
,
/// <summary>
/// 同业下单通知
/// </summary>
[
EnumField
(
"同业下单通知"
)]
B2BCustomerOrder
=
15
,
/// <summary>
/// 同业订单付款通知
/// </summary>
[
EnumField
(
"同业订单付款通知"
)]
B2BCustomerOrderPay
=
16
,
}
}
}
}
Edu.Module.Course/EduB2BOrderModule.cs
View file @
96578652
...
@@ -70,7 +70,7 @@ namespace Edu.Module.Course
...
@@ -70,7 +70,7 @@ namespace Edu.Module.Course
{
{
Id
=
0
,
Id
=
0
,
Type
=
2
,
Type
=
2
,
CreateBy
=
0
,
CreateBy
=
item
.
EnterID
,
CreateTime
=
DateTime
.
Now
,
CreateTime
=
DateTime
.
Now
,
Group_Id
=
GroupId
,
Group_Id
=
GroupId
,
LogContent
=
$"同业付款超时自动取消订单【
{
item
.
OrderId
}
】"
,
LogContent
=
$"同业付款超时自动取消订单【
{
item
.
OrderId
}
】"
,
...
...
Edu.Module.User/StudentModule.cs
View file @
96578652
...
@@ -4,6 +4,7 @@ using Edu.Common.Enum.User;
...
@@ -4,6 +4,7 @@ using Edu.Common.Enum.User;
using
Edu.Model.CacheModel
;
using
Edu.Model.CacheModel
;
using
Edu.Model.ViewModel.Mall
;
using
Edu.Model.ViewModel.Mall
;
using
Edu.Model.ViewModel.User
;
using
Edu.Model.ViewModel.User
;
using
Edu.Repository.Customer
;
using
Edu.Repository.Mall
;
using
Edu.Repository.Mall
;
using
Edu.Repository.System
;
using
Edu.Repository.System
;
using
Edu.Repository.User
;
using
Edu.Repository.User
;
...
@@ -29,6 +30,11 @@ namespace Edu.Module.User
...
@@ -29,6 +30,11 @@ namespace Edu.Module.User
/// </summary>
/// </summary>
private
readonly
RB_DestinationRepository
destinationRepository
=
new
RB_DestinationRepository
();
private
readonly
RB_DestinationRepository
destinationRepository
=
new
RB_DestinationRepository
();
/// <summary>
/// 同业
/// </summary>
private
readonly
RB_CustomerRepository
customerRepository
=
new
RB_CustomerRepository
();
/// <summary>
/// <summary>
/// 账号处理类
/// 账号处理类
/// </summary>
/// </summary>
...
@@ -146,7 +152,36 @@ namespace Edu.Module.User
...
@@ -146,7 +152,36 @@ namespace Edu.Module.User
/// <returns></returns>
/// <returns></returns>
public
bool
SetStudentModule
(
RB_Student_ViewModel
model
)
public
bool
SetStudentModule
(
RB_Student_ViewModel
model
)
{
{
bool
IsInsert
=
false
;
if
(
model
.
StuId
==
0
)
{
IsInsert
=
true
;
}
bool
flag
=
studentRepository
.
SetStudentRepository
(
model
);
bool
flag
=
studentRepository
.
SetStudentRepository
(
model
);
if
(
flag
)
{
if
(
IsInsert
&&
model
.
CustomerId
>
0
)
{
var
queryTargetWorkId
=
accountModule
.
GetWorkUserIdModule
(
model
.
CreateBy
);
if
(!
string
.
IsNullOrEmpty
(
queryTargetWorkId
))
{
var
cmodel
=
customerRepository
.
GetEntity
(
model
.
CustomerId
);
var
path
=
$"/sale/visitorRegistrat?StuId=
{
model
.
StuId
}
"
;
path
=
System
.
Web
.
HttpUtility
.
UrlEncode
(
path
);
string
markdownContent
=
$"`同业添加学生通知` \n>**概要信息** \n>同业名称:
{
cmodel
.
CustomerName
}
(
{
cmodel
.
ContactNumber
}
)\n>学生名称:
{
model
.
StuName
}
\n>学生电话:
{
model
.
StuTel
}
\n>请点击:[查看详情](
{
Common
.
Config
.
ErpUrl
}
/autologin?loginId=
{
model
.
CreateBy
}
&target=
{
path
}
)"
;
Common
.
Message
.
PushMessageModel
modelWork
=
new
Common
.
Message
.
PushMessageModel
()
{
CategoryId
=
Common
.
Enum
.
System
.
PushMessageCategoryEnum
.
B2BCustomerStu
,
Content
=
markdownContent
,
CoverImg
=
""
,
CreateByName
=
"系统"
,
JumpUrl
=
""
,
WorkMsgType
=
"markdown"
,
SendTime
=
DateTime
.
Now
,
SendType
=
0
,
Title
=
"同业添加学生通知"
,
Platform
=
5
,
ReceiveId
=
queryTargetWorkId
};
Common
.
Message
.
MessageHelper
.
SendMessage
(
modelWork
);
}
}
}
return
flag
;
return
flag
;
}
}
...
...
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