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
e76c954e
Commit
e76c954e
authored
Dec 24, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
49f43117
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
54 additions
and
4 deletions
+54
-4
RB_Personnel_Bonus_Extend.cs
Edu.Model/ViewModel/Bonus/RB_Personnel_Bonus_Extend.cs
+5
-0
RB_Personnel_Period_Extend.cs
Edu.Model/ViewModel/Bonus/RB_Personnel_Period_Extend.cs
+4
-0
EmployeeBonusModule.cs
Edu.Module.Course/EmployeeBonusModule.cs
+25
-2
CustomerModule.cs
Edu.Module.Customer/CustomerModule.cs
+19
-2
BonusController.cs
Edu.WebApi/Controllers/Bonus/BonusController.cs
+1
-0
No files found.
Edu.Model/ViewModel/Bonus/RB_Personnel_Bonus_Extend.cs
View file @
e76c954e
...
...
@@ -39,6 +39,11 @@ namespace Edu.Model.ViewModel.Bonus
/// 期数编号【查询使用】
/// </summary>
public
string
QPeriodIds
{
get
;
set
;
}
/// <summary>
/// 员工姓名
/// </summary>
public
string
EmployeeName
{
get
;
set
;
}
}
/// <summary>
...
...
Edu.Model/ViewModel/Bonus/RB_Personnel_Period_Extend.cs
View file @
e76c954e
...
...
@@ -10,5 +10,9 @@ namespace Edu.Model.ViewModel.Bonus
/// </summary>
public
class
RB_Personnel_Period_Extend
:
RB_Personnel_Period
{
/// <summary>
/// 提成数据
/// </summary>
public
List
<
RB_Personnel_Bonus_Extend
>
BonusList
{
get
;
set
;
}
}
}
Edu.Module.Course/EmployeeBonusModule.cs
View file @
e76c954e
...
...
@@ -12,6 +12,7 @@ using VT.FW.DB;
using
Edu.Repository.User
;
using
Edu.Model.CacheModel
;
using
Edu.AOP.CustomerAttribute
;
using
Edu.Model.ViewModel.User
;
namespace
Edu.Module.Course
{
...
...
@@ -60,6 +61,11 @@ namespace Edu.Module.Course
/// </summary>
private
readonly
RB_Personnel_PeriodRepository
personnel_PeriodRepository
=
new
RB_Personnel_PeriodRepository
();
/// <summary>
/// 人员账号仓储层对象
/// </summary>
private
readonly
RB_AccountRepository
accountRepository
=
new
RB_AccountRepository
();
/// <summary>
/// 获取人头奖金期数分页列表
...
...
@@ -79,10 +85,27 @@ namespace Edu.Module.Course
{
QPeriodIds
=
ids
});
List
<
Employee_ViewModel
>
empList
=
new
List
<
Employee_ViewModel
>();
if
(
bonusList
!=
null
&&
bonusList
.
Count
>
0
)
{
string
empIds
=
string
.
Join
(
","
,
bonusList
.
Select
(
qitem
=>
qitem
.
EmployeeId
));
empList
=
accountRepository
.
GetEmployeeListRepository
(
new
Employee_ViewModel
()
{
QIds
=
empIds
});
}
foreach
(
var
item
in
list
)
{
item
.
SumPrice
=
bonusList
?.
Where
(
qitem
=>
qitem
.
PeriodId
==
item
.
Id
)
?.
Sum
(
qitem
=>
qitem
.
CurRewardMoney
+
qitem
.
ClueNumSalary
+
qitem
.
OpenBonus
-
qitem
.
BeforeMoney
)??
0
;
var
tempList
=
bonusList
?.
Where
(
qitem
=>
qitem
.
PeriodId
==
item
.
Id
)?.
ToList
();
if
(
tempList
!=
null
&&
tempList
.
Count
>
0
)
{
foreach
(
var
subItem
in
tempList
)
{
subItem
.
EmployeeName
=
empList
?.
Where
(
qitem
=>
qitem
.
Id
==
subItem
.
EmployeeId
)?.
FirstOrDefault
()?.
EmployeeName
??
""
;
}
}
item
.
SumPrice
=
tempList
?.
Sum
(
qitem
=>
qitem
.
CurRewardMoney
+
qitem
.
ClueNumSalary
+
qitem
.
OpenBonus
-
qitem
.
BeforeMoney
)??
0
;
item
.
BonusList
=
tempList
;
}
}
return
list
;
...
...
Edu.Module.Customer/CustomerModule.cs
View file @
e76c954e
...
...
@@ -101,7 +101,8 @@ namespace Edu.Module.Customer
{
nameof
(
RB_Customer_Extend
.
WeChatNo
),
model
.
WeChatNo
},
};
flag
=
customerRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Customer_Extend
.
CustomerId
),
model
.
CustomerId
));
if
(
flag
)
{
if
(
flag
)
{
#
region
操作记录
string
LogContent
=
"后台修改同业信息:"
;
if
(
oldModel
.
CustomerName
!=
model
.
CustomerName
)
...
...
@@ -112,6 +113,19 @@ namespace Edu.Module.Customer
{
LogContent
+=
"电话由'"
+
oldModel
.
ContactNumber
+
"'修改为'"
+
model
.
ContactNumber
+
"';"
;
}
if
(
oldModel
.
Fax
!=
model
.
Fax
)
{
LogContent
+=
"传真由'"
+
oldModel
.
Fax
+
"'修改为'"
+
model
.
Fax
+
"';"
;
}
if
(
oldModel
.
QQ
!=
model
.
QQ
)
{
LogContent
+=
"QQ由'"
+
oldModel
.
QQ
+
"'修改为'"
+
model
.
QQ
+
"';"
;
}
if
(
oldModel
.
Email
!=
model
.
Email
)
{
LogContent
+=
"邮箱由'"
+
oldModel
.
Email
+
"'修改为'"
+
model
.
Email
+
"';"
;
}
if
(
oldModel
.
Address
!=
model
.
Address
)
{
LogContent
+=
"地址由'"
+
oldModel
.
Address
+
"'修改为'"
+
model
.
Address
+
"';"
;
...
...
@@ -128,7 +142,10 @@ namespace Edu.Module.Customer
{
LogContent
+=
"类型由'"
+
(
oldModel
.
CustomerType
==
1
?
"企业"
:
"学校"
)
+
"'修改为'"
+
(
model
.
CustomerType
==
1
?
"企业"
:
"学校"
)
+
"';"
;
}
if
(
oldModel
.
WeChatNo
!=
model
.
WeChatNo
)
{
LogContent
+=
"微信号由'"
+
oldModel
.
Address
+
"'修改为'"
+
model
.
Address
+
"';"
;
}
//记录操作日志
changeLogRepository
.
Insert
(
new
Model
.
Entity
.
Log
.
RB_User_ChangeLog
()
{
...
...
Edu.WebApi/Controllers/Bonus/BonusController.cs
View file @
e76c954e
...
...
@@ -214,6 +214,7 @@ namespace Edu.WebApi.Controllers.Bonus
CreateByName
,
item
.
Financials
,
CreateTime
=
Common
.
ConvertHelper
.
FormatTime
(
item
.
CreateTime
),
item
.
BonusList
,
});
}
pageModel
.
Count
=
rowsCount
;
...
...
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