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
863c128a
Commit
863c128a
authored
Jul 13, 2021
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提成调整
parent
ca88a728
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
2 deletions
+12
-2
RB_Sell_Commission_Details_ViewModel.cs
.../ViewModel/Course/RB_Sell_Commission_Details_ViewModel.cs
+6
-0
TeachingRewardsModule.cs
Edu.Module.Course/TeachingRewardsModule.cs
+1
-1
RB_Sell_Commission_DetailsRepository.cs
...Repository/Course/RB_Sell_Commission_DetailsRepository.cs
+4
-0
TeachingRewardsController.cs
Edu.WebApi/Controllers/Course/TeachingRewardsController.cs
+1
-1
No files found.
Edu.Model/ViewModel/Course/RB_Sell_Commission_Details_ViewModel.cs
View file @
863c128a
...
@@ -13,6 +13,12 @@ namespace Edu.Model.ViewModel.Course
...
@@ -13,6 +13,12 @@ namespace Edu.Model.ViewModel.Course
/// 用户名称
/// 用户名称
/// </summary>
/// </summary>
public
string
UserName
{
get
;
set
;
}
public
string
UserName
{
get
;
set
;
}
/// <summary>
/// 用户ids
/// </summary>
public
string
UserIds
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 部门名称
/// 部门名称
/// </summary>
/// </summary>
...
...
Edu.Module.Course/TeachingRewardsModule.cs
View file @
863c128a
...
@@ -341,7 +341,7 @@ namespace Edu.Module.Course
...
@@ -341,7 +341,7 @@ namespace Edu.Module.Course
string
teacherIds
=
string
.
Join
(
","
,
list
.
Select
(
x
=>
x
.
TeacherIds
));
string
teacherIds
=
string
.
Join
(
","
,
list
.
Select
(
x
=>
x
.
TeacherIds
));
var
tlist
=
teacherRepository
.
GetTeacherListRepository
(
new
RB_Teacher_ViewModel
()
{
Group_Id
=
dmodel
.
Group_Id
,
QTIds
=
teacherIds
});
var
tlist
=
teacherRepository
.
GetTeacherListRepository
(
new
RB_Teacher_ViewModel
()
{
Group_Id
=
dmodel
.
Group_Id
,
QTIds
=
teacherIds
});
//查询财务单据
//查询财务单据
var
financeList
=
financeRepository
.
GetListSingle
(
new
RB_Finance_Extend
()
{
RB_Group_Id
=
dmodel
.
Group_Id
,
FinanceType
=
2
,
OtherType
=
39
,
ReFinanceIds
=
bonusIds
,
IsSelectNormal
=
1
});
var
financeList
=
financeRepository
.
GetListSingle
(
new
RB_Finance_Extend
()
{
RB_Group_Id
=
dmodel
.
Group_Id
,
FinanceType
=
2
,
OtherType
=
26
,
ReFinanceIds
=
bonusIds
,
IsSelectNormal
=
1
});
foreach
(
var
item
in
list
)
foreach
(
var
item
in
list
)
{
{
item
.
TeacherList
=
new
List
<
RB_Teaching_BonusDetail_ViewModel
>();
item
.
TeacherList
=
new
List
<
RB_Teaching_BonusDetail_ViewModel
>();
...
...
Edu.Repository/Course/RB_Sell_Commission_DetailsRepository.cs
View file @
863c128a
...
@@ -35,6 +35,10 @@ namespace Edu.Repository.Course
...
@@ -35,6 +35,10 @@ namespace Edu.Repository.Course
{
{
where
+=
$@" and r.
{
nameof
(
RB_Sell_Commission_Details_ViewModel
.
UserId
)}
=
{
demodel
.
UserId
}
"
;
where
+=
$@" and r.
{
nameof
(
RB_Sell_Commission_Details_ViewModel
.
UserId
)}
=
{
demodel
.
UserId
}
"
;
}
}
if
(!
string
.
IsNullOrEmpty
(
demodel
.
UserIds
))
{
where
+=
$@" and r.
{
nameof
(
RB_Sell_Commission_Details_ViewModel
.
UserId
)}
in(
{
demodel
.
UserIds
}
)"
;
}
if
(
demodel
.
ClassId
>
0
)
if
(
demodel
.
ClassId
>
0
)
{
{
where
+=
$@" and r.
{
nameof
(
RB_Sell_Commission_Details_ViewModel
.
ClassId
)}
=
{
demodel
.
ClassId
}
"
;
where
+=
$@" and r.
{
nameof
(
RB_Sell_Commission_Details_ViewModel
.
ClassId
)}
=
{
demodel
.
ClassId
}
"
;
...
...
Edu.WebApi/Controllers/Course/TeachingRewardsController.cs
View file @
863c128a
...
@@ -248,7 +248,7 @@ namespace Edu.WebApi.Controllers.Course
...
@@ -248,7 +248,7 @@ namespace Edu.WebApi.Controllers.Course
var
userInfo
=
base
.
UserInfo
;
var
userInfo
=
base
.
UserInfo
;
var
dmodel
=
JsonHelper
.
DeserializeObject
<
RB_Teaching_BonusDetail_ViewModel
>(
RequestParm
.
Msg
.
ToString
());
var
dmodel
=
JsonHelper
.
DeserializeObject
<
RB_Teaching_BonusDetail_ViewModel
>(
RequestParm
.
Msg
.
ToString
());
dmodel
.
Group_Id
=
userInfo
.
Group_Id
;
dmodel
.
Group_Id
=
userInfo
.
Group_Id
;
if
(
dmodel
.
BonusId
<=
0
)
if
(
dmodel
.
BonusId
<=
0
&&
string
.
IsNullOrEmpty
(
dmodel
.
BonusIds
)
)
{
{
return
ApiResult
.
ParamIsNull
(
"请传递教师奖励id"
);
return
ApiResult
.
ParamIsNull
(
"请传递教师奖励id"
);
}
}
...
...
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