Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-staff
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1fb8665a
authored
Jan 27, 2026
by
张富康
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge remote-tracking branch 'origin/v5.6.0' into v5.6.0
2 parents
cb86d5d8
2095ab1d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
12 deletions
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/service/perfSalary/EffectiveReferralReviewService.java
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/service/salary/StaffMonthSalarySlipService.java
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/service/perfSalary/EffectiveReferralReviewService.java
View file @
1fb8665
...
...
@@ -38,6 +38,8 @@ import org.springframework.transaction.annotation.Propagation;
import
org.springframework.transaction.annotation.Transactional
;
import
javax.annotation.Resource
;
import
java.time.YearMonth
;
import
java.time.temporal.ChronoUnit
;
import
java.util.*
;
import
java.util.stream.Collectors
;
...
...
@@ -105,23 +107,43 @@ public class EffectiveReferralReviewService {
//2、查询T1时间配置
PerformanceTimeCycleDTO
performanceTimeCycleDTO
=
performanceTimeCycleService
.
selectByCode
(
PerformanceTimeCycleCodeEnum
.
T1
.
getCode
());
//3、填充复核状态,待复核状态下的数据,如果当前时间大于T1时间配置内的结束时间,置为已失效
//3、当前时间年月是否比核查时间晚并超过1个月, 则不可编辑
long
monthDiff
=
getMonthDiff
(
list
.
get
(
0
).
getReviewMonth
());
//4、填充复核状态,待复核状态下的数据,如果当前时间大于T1时间配置内的结束时间,置为已失效
for
(
EffectiveReferralReviewCommonDTO
item
:
list
)
{
if
(
Objects
.
nonNull
(
performanceTimeCycleDTO
)
if
(
(
Objects
.
nonNull
(
performanceTimeCycleDTO
)
&&
performanceTimeCycleDTO
.
getStartDate
()
!=
null
&&
performanceTimeCycleDTO
.
getEndDate
()
!=
null
&&
item
.
getIsReviewed
().
equals
(
0
)
)
{
if
(
new
Date
().
after
(
performanceTimeCycleDTO
.
getEndDate
()))
{
item
.
setIsReviewed
(
2
);
}
&&
item
.
getIsReviewed
().
equals
(
0
)
&&
new
Date
().
after
(
performanceTimeCycleDTO
.
getEndDate
()))
||
(
item
.
getIsReviewed
().
equals
(
0
)
&&
monthDiff
>
1
))
{
item
.
setIsReviewed
(
2
);
}
}
//
4
、返回结果
//
5
、返回结果
pagination
=
RpcPagination
.
copyPage
(
page
);
return
pagination
;
}
/**
* 获取月份差 当前时间年月 - 核查年月
* @param reviewMonth
* @return
*/
private
long
getMonthDiff
(
String
reviewMonth
)
{
YearMonth
targetMonth
=
YearMonth
.
parse
(
reviewMonth
);
YearMonth
currentMonth
=
YearMonth
.
now
();
//计算月份差(当前 - 目标)
// 转换为LocalDate进行比较
return
ChronoUnit
.
MONTHS
.
between
(
targetMonth
.
atDay
(
1
),
// 转换为LocalDate进行比较
currentMonth
.
atDay
(
1
)
);
}
/**
* 查询有效引荐数详情
*
...
...
@@ -138,13 +160,16 @@ public class EffectiveReferralReviewService {
EffectiveReferralReviewCommonDTO
reviewCommonDTO
=
referralReviewCommonDTOS
.
get
(
0
);
//2、查询T1时间配置
PerformanceTimeCycleDTO
performanceTimeCycleDTO
=
performanceTimeCycleService
.
selectByCode
(
PerformanceTimeCycleCodeEnum
.
T1
.
getCode
());
if
(
Objects
.
nonNull
(
performanceTimeCycleDTO
)
//3、当前时间年月是否比核查时间晚并超过1个月, 则不可编辑
long
monthDiff
=
getMonthDiff
(
reviewCommonDTO
.
getReviewMonth
());
if
((
Objects
.
nonNull
(
performanceTimeCycleDTO
)
&&
performanceTimeCycleDTO
.
getStartDate
()
!=
null
&&
performanceTimeCycleDTO
.
getEndDate
()
!=
null
&&
reviewCommonDTO
.
getIsReviewed
().
equals
(
0
)
)
{
if
(
new
Date
().
after
(
performanceTimeCycleDTO
.
getEndDate
()))
{
reviewCommonDTO
.
setIsReviewed
(
2
);
}
&&
reviewCommonDTO
.
getIsReviewed
().
equals
(
0
)
&&
new
Date
().
after
(
performanceTimeCycleDTO
.
getEndDate
()))
||
(
reviewCommonDTO
.
getIsReviewed
().
equals
(
0
)
&&
monthDiff
>
1
))
{
reviewCommonDTO
.
setIsReviewed
(
2
);
}
return
reviewCommonDTO
;
}
...
...
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/service/salary/StaffMonthSalarySlipService.java
View file @
1fb8665
...
...
@@ -706,6 +706,7 @@ public class StaffMonthSalarySlipService {
StaffMonthSalarySlipSendDTO
resp
=
new
StaffMonthSalarySlipSendDTO
();
resp
.
setStaffName
(
monthSalary
.
getStaffName
());
resp
.
setStaffPhone
(
monthSalary
.
getStaffPhone
());
resp
.
setEntryDate
(
monthSalary
.
getEntryDate
());
resp
.
setBusinessTypes
(
monthSalary
.
getBusinessTypes
());
resp
.
setSalaryMonth
(
monthSalary
.
getSalaryMonth
());
resp
.
setFinalDataFlag
(
monthSalary
.
getFinalDataFlag
());
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment