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
f9adb90e
Commit
f9adb90e
authored
Dec 23, 2021
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
b103bdb3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
109 additions
and
20 deletions
+109
-20
SellAchievementsModule.cs
Edu.Module.Course/SellAchievementsModule.cs
+79
-20
RB_Sell_Achievements_EmpRepository.cs
Edu.Repository/Sell/RB_Sell_Achievements_EmpRepository.cs
+4
-0
SellAchievementsController.cs
Edu.WebApi/Controllers/Course/SellAchievementsController.cs
+26
-0
No files found.
Edu.Module.Course/SellAchievementsModule.cs
View file @
f9adb90e
This diff is collapsed.
Click to expand it.
Edu.Repository/Sell/RB_Sell_Achievements_EmpRepository.cs
View file @
f9adb90e
...
...
@@ -41,6 +41,10 @@ namespace Edu.Repository.Sell
{
where
+=
$@" and r.
{
nameof
(
RB_Sell_Achievements_Emp_ViewModel
.
EmpId
)}
=
{
demodel
.
EmpId
}
"
;
}
if
(
demodel
.
IsDept
>
0
)
{
where
+=
$@" and r.
{
nameof
(
RB_Sell_Achievements_Emp_ViewModel
.
IsDept
)}
=
{
demodel
.
IsDept
}
"
;
}
if
(
demodel
.
PeriodsId
>
0
)
{
where
+=
$@" and r.
{
nameof
(
RB_Sell_Achievements_Emp_ViewModel
.
PeriodsId
)}
=
{
demodel
.
PeriodsId
}
"
;
...
...
Edu.WebApi/Controllers/Course/SellAchievementsController.cs
View file @
f9adb90e
...
...
@@ -586,6 +586,32 @@ namespace Edu.WebApi.Controllers.Course
}
}
/// <summary>
/// 获取应发提成变更记录
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
GetSellAchievementsChangeLog
()
{
var
userInfo
=
base
.
UserInfo
;
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
Msg
.
ToString
());
int
OrderId
=
parms
.
GetInt
(
"OrderId"
,
0
);
int
UserId
=
parms
.
GetInt
(
"UserId"
,
0
);
int
UserType
=
parms
.
GetInt
(
"UserType"
,
0
);
int
IsDept
=
parms
.
GetInt
(
"IsDept"
,
0
);
if
(
OrderId
<=
0
||
UserId
<=
0
||
UserType
<=
0
||
IsDept
<=
0
)
{
return
ApiResult
.
ParamIsNull
();
}
var
Robj
=
sellAchievementsModule
.
GetSellAchievementsChangeLog
(
OrderId
,
UserId
,
UserType
,
IsDept
,
userInfo
.
Group_Id
,
out
string
msg
);
if
(
msg
==
""
)
{
return
ApiResult
.
Success
(
""
,
Robj
);
}
else
{
return
ApiResult
.
Failed
(
msg
);
}
}
#
endregion
}
}
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