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
8d10690f
Commit
8d10690f
authored
Dec 20, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
5468707b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
99 additions
and
2 deletions
+99
-2
RB_Personnel_BonusDetail_Extend.cs
Edu.Model/ViewModel/Bonus/RB_Personnel_BonusDetail_Extend.cs
+4
-0
RB_Personnel_Deduction_Extend.cs
Edu.Model/ViewModel/Bonus/RB_Personnel_Deduction_Extend.cs
+4
-1
RB_Personnel_BonusDetailRepository.cs
Edu.Repository/Bonus/RB_Personnel_BonusDetailRepository.cs
+28
-0
RB_Personnel_BonusRepository.cs
Edu.Repository/Bonus/RB_Personnel_BonusRepository.cs
+35
-0
RB_Personnel_DeductionRepository.cs
Edu.Repository/Bonus/RB_Personnel_DeductionRepository.cs
+28
-1
No files found.
Edu.Model/ViewModel/Bonus/RB_Personnel_BonusDetail_Extend.cs
View file @
8d10690f
...
...
@@ -10,5 +10,9 @@ namespace Edu.Model.ViewModel.Bonus
/// </summary>
public
class
RB_Personnel_BonusDetail_Extend
:
RB_Personnel_BonusDetail
{
/// <summary>
/// 奖励主表编号【查询使用】
/// </summary>
public
string
QBonusIds
{
get
;
set
;
}
}
}
Edu.Model/ViewModel/Bonus/RB_Personnel_Deduction_Extend.cs
View file @
8d10690f
...
...
@@ -10,6 +10,9 @@ namespace Edu.Model.ViewModel.Bonus
/// </summary>
public
class
RB_Personnel_Deduction_Extend
:
RB_Personnel_Deduction
{
/// <summary>
/// 奖励主表编号【查询使用】
/// </summary>
public
string
QBonusIds
{
get
;
set
;
}
}
}
\ No newline at end of file
Edu.Repository/Bonus/RB_Personnel_BonusDetailRepository.cs
View file @
8d10690f
using
Edu.Model.Entity.Bonus
;
using
Edu.Model.ViewModel.Bonus
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
namespace
Edu.Repository.Bonus
...
...
@@ -10,5 +12,31 @@ namespace Edu.Repository.Bonus
/// </summary>
public
class
RB_Personnel_BonusDetailRepository
:
BaseRepository
<
RB_Personnel_BonusDetail
>
{
/// <summary>
/// 获取员工人头奖励详情列表
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Personnel_BonusDetail_Extend
>
GetPersonnelBonusDetailListRepository
(
RB_Personnel_BonusDetail_Extend
query
)
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@"
SELECT A.*
FROM RB_Personnel_BonusDetail AS A
WHERE 1=1
"
);
if
(
query
!=
null
)
{
if
(
query
.
BonusId
>
0
)
{
builder
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
RB_Personnel_BonusDetail_Extend
.
BonusId
),
query
.
BonusId
);
}
if
(!
string
.
IsNullOrEmpty
(
query
.
QBonusIds
))
{
builder
.
AppendFormat
(
" AND A.{0} IN({1}) "
,
nameof
(
RB_Personnel_BonusDetail_Extend
.
BonusId
),
query
.
QBonusIds
);
}
}
return
Get
<
RB_Personnel_BonusDetail_Extend
>(
builder
.
ToString
()).
ToList
();
}
}
}
Edu.Repository/Bonus/RB_Personnel_BonusRepository.cs
View file @
8d10690f
using
Edu.Model.Entity.Bonus
;
using
Edu.Model.ViewModel.Bonus
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
namespace
Edu.Repository.Bonus
...
...
@@ -10,6 +12,39 @@ namespace Edu.Repository.Bonus
/// </summary>
public
class
RB_Personnel_BonusRepository
:
BaseRepository
<
RB_Personnel_Bonus
>
{
/// <summary>
/// 获取员工人头奖励分页列表
/// </summary>
/// <param name="pageIndex"></param>
/// <param name="pageSize"></param>
/// <param name="rowsCount"></param>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Personnel_Bonus_Extend
>
GetPersonnelBonusPageRepository
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_Personnel_Bonus_Extend
query
)
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@"
SELECT A.*
FROM RB_Personnel_Bonus AS A
WHERE 1=1
"
);
if
(
query
!=
null
)
{
if
(
query
.
Group_Id
>
0
)
{
builder
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
RB_Personnel_Bonus_Extend
.
Group_Id
),
query
.
Group_Id
);
}
if
(
query
.
YearNum
>
0
)
{
builder
.
AppendFormat
(
" AND A.{0} IN({1}) "
,
nameof
(
RB_Personnel_Bonus_Extend
.
YearNum
),
query
.
YearNum
);
}
if
(
query
.
MonthNum
>
0
)
{
builder
.
AppendFormat
(
" AND A.{0} IN({1}) "
,
nameof
(
RB_Personnel_Bonus_Extend
.
MonthNum
),
query
.
MonthNum
);
}
}
return
GetPage
<
RB_Personnel_Bonus_Extend
>(
pageIndex
,
pageSize
,
out
rowsCount
,
builder
.
ToString
()).
ToList
();
}
}
}
Edu.Repository/Bonus/RB_Personnel_DeductionRepository.cs
View file @
8d10690f
using
Edu.Model.Entity.Bonus
;
using
Edu.Model.ViewModel.Bonus
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
namespace
Edu.Repository.Bonus
...
...
@@ -10,6 +12,31 @@ namespace Edu.Repository.Bonus
/// </summary>
public
class
RB_Personnel_DeductionRepository
:
BaseRepository
<
RB_Personnel_Deduction
>
{
/// <summary>
/// 获取员工人头奖励抵扣列表
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Personnel_Deduction_Extend
>
GetPersonnelBonusListRepository
(
RB_Personnel_Deduction_Extend
query
)
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@"
SELECT A.*
FROM RB_Personnel_Deduction AS A
WHERE 1=1
"
);
if
(
query
!=
null
)
{
if
(
query
.
BonusId
>
0
)
{
builder
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
RB_Personnel_Deduction_Extend
.
BonusId
),
query
.
BonusId
);
}
if
(!
string
.
IsNullOrEmpty
(
query
.
QBonusIds
))
{
builder
.
AppendFormat
(
" AND A.{0} IN({1}) "
,
nameof
(
RB_Personnel_Deduction_Extend
.
BonusId
),
query
.
QBonusIds
);
}
}
return
Get
<
RB_Personnel_Deduction_Extend
>(
builder
.
ToString
()).
ToList
();
}
}
}
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