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
710eebe4
Commit
710eebe4
authored
Dec 22, 2021
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
806f4d0b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
3 deletions
+24
-3
Config.cs
Edu.Common/Config.cs
+11
-0
SellAchievementsModule.cs
Edu.Module.Course/SellAchievementsModule.cs
+10
-2
appsettings.json
Edu.WebApi/appsettings.json
+3
-1
No files found.
Edu.Common/Config.cs
View file @
710eebe4
...
...
@@ -895,5 +895,16 @@ namespace Edu.Common
return
ReadConfigKey
(
"WeChatAccountAppSecret"
);
}
}
/// <summary>
/// 新业绩提成启用时间
/// </summary>
public
static
string
NewAchievementsEnable
{
get
{
return
ReadConfigKey
(
"NewAchievementsEnable"
);
}
}
}
}
\ No newline at end of file
Edu.Module.Course/SellAchievementsModule.cs
View file @
710eebe4
...
...
@@ -1333,9 +1333,17 @@ namespace Edu.Module.Course
/// 效验退款后 业绩提成是否达标
/// </summary>
/// <param name="orderId"></param>
public
void
ValidataAchievements
(
int
orderId
)
public
bool
ValidataAchievements
(
int
orderId
)
{
throw
new
NotImplementedException
();
DateTime
EnableDate
=
Convert
.
ToDateTime
(
Config
.
NewAchievementsEnable
);
//查询订单信息
var
orderModel
=
orderRepository
.
GetEntity
(
orderId
);
if
(
orderModel
==
null
)
{
return
false
;
}
if
(
orderModel
.
CreateTime
<
EnableDate
)
{
return
false
;
}
//查询订单业绩关联
var
empList
=
sell_Achievements_EmpRepository
.
GetList
(
new
RB_Sell_Achievements_Emp_ViewModel
()
{
Group_Id
=
orderModel
.
Group_Id
,
OrderId
=
orderId
});
return
true
;
}
#
endregion
...
...
Edu.WebApi/appsettings.json
View file @
710eebe4
...
...
@@ -113,5 +113,7 @@
//考试申请流程编号
"ExamApplyFlowId"
:
9
,
//投稿审批流程编号
"ContributeFlowId"
:
10
"ContributeFlowId"
:
10
,
//新业绩提成启用时间
"NewAchievementsEnable"
:
"2021-12-01"
}
\ No newline at end of file
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