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 2c55450b
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
39f37963
70159218
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
27 deletions
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/service/perfSalary/EffectiveReferralReviewMiniProgramService.java
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/service/perfSalary/EffectiveReferralReviewMiniProgramService.java
View file @
2c55450
...
@@ -8,6 +8,7 @@ import cn.com.glsx.dj.staff.enums.PerformanceTimeCycleCodeEnum;
...
@@ -8,6 +8,7 @@ import cn.com.glsx.dj.staff.enums.PerformanceTimeCycleCodeEnum;
import
cn.com.glsx.dj.staff.enums.perfSalary.EffectiveReferralBrandTypeEnum
;
import
cn.com.glsx.dj.staff.enums.perfSalary.EffectiveReferralBrandTypeEnum
;
import
cn.com.glsx.dj.staff.enums.perfSalary.EffectiveReferralSceneEnum
;
import
cn.com.glsx.dj.staff.enums.perfSalary.EffectiveReferralSceneEnum
;
import
cn.com.glsx.dj.staff.mapper.perfSalary.EffectiveReferralReviewMapper
;
import
cn.com.glsx.dj.staff.mapper.perfSalary.EffectiveReferralReviewMapper
;
import
cn.com.glsx.dj.staff.model.Dict
;
import
cn.com.glsx.dj.staff.model.perfSalary.EffectiveReferralReview
;
import
cn.com.glsx.dj.staff.model.perfSalary.EffectiveReferralReview
;
import
cn.com.glsx.dj.staff.service.staffPerformance.PerformanceTimeCycleService
;
import
cn.com.glsx.dj.staff.service.staffPerformance.PerformanceTimeCycleService
;
import
cn.com.glsx.framework.core.beans.BaseModel
;
import
cn.com.glsx.framework.core.beans.BaseModel
;
...
@@ -174,24 +175,6 @@ public class EffectiveReferralReviewMiniProgramService {
...
@@ -174,24 +175,6 @@ public class EffectiveReferralReviewMiniProgramService {
);
);
}
}
public
static
void
main
(
String
[]
args
)
{
String
reviewMonth
=
"2025-12"
;
// 解析字符串为 YearMonth
YearMonth
targetMonth
=
YearMonth
.
parse
(
reviewMonth
);
// 获取当前时间的年月
YearMonth
currentMonth
=
YearMonth
.
now
();
//计算月份差(当前 - 目标)
long
monthDiff
=
ChronoUnit
.
MONTHS
.
between
(
targetMonth
.
atDay
(
1
),
// 转换为LocalDate进行比较
currentMonth
.
atDay
(
1
)
);
System
.
out
.
println
(
monthDiff
>
1
);
System
.
out
.
println
(
currentMonth
.
isBefore
(
targetMonth
));
System
.
out
.
println
(
currentMonth
.
isAfter
(
targetMonth
));
}
/**
/**
* 获取门店其它品牌名称
* 获取门店其它品牌名称
*
*
...
@@ -321,15 +304,14 @@ public class EffectiveReferralReviewMiniProgramService {
...
@@ -321,15 +304,14 @@ public class EffectiveReferralReviewMiniProgramService {
AtomicReference
<
Boolean
>
sendMessageFlag
)
{
AtomicReference
<
Boolean
>
sendMessageFlag
)
{
dto
.
getEffectiveReferralCountDTOS
().
forEach
(
dto
.
getEffectiveReferralCountDTOS
().
forEach
(
item
->
{
item
->
{
EffectiveReferralReview
review
=
new
EffectiveReferralReview
();
Example
dictExample
=
new
Example
(
Dict
.
class
);
review
.
setId
(
item
.
getId
());
dictExample
.
createCriteria
()
.
andEqualTo
(
"deletedFlag"
,
BaseModel
.
DeletedFlagEnum
.
N
.
name
())
.
andEqualTo
(
"id"
,
item
.
getId
());
EffectiveReferralReview
review
=
effectiveReferralReviewMapper
.
selectOneByExample
(
dictExample
);
review
.
setAreaEffectiveCount
(
item
.
getEffectiveReferralCount
());
review
.
setAreaEffectiveCount
(
item
.
getEffectiveReferralCount
());
if
(
StringUtils
.
isNotBlank
(
dto
.
getImageUrls
()))
{
review
.
setImageUrls
(
StringUtils
.
isNotBlank
(
dto
.
getImageUrls
())
?
dto
.
getImageUrls
()
:
null
);
review
.
setImageUrls
(
dto
.
getImageUrls
());
review
.
setRemark
(
StringUtils
.
isNotBlank
(
dto
.
getRemark
())
?
dto
.
getRemark
()
:
null
);
}
if
(
StringUtils
.
isNotBlank
(
dto
.
getRemark
()))
{
review
.
setRemark
(
dto
.
getRemark
());
}
if
(
referralReviewCommonDTOSMap
.
containsKey
(
item
.
getId
())
if
(
referralReviewCommonDTOSMap
.
containsKey
(
item
.
getId
())
&&
!
item
.
getEffectiveReferralCount
().
equals
(
referralReviewCommonDTOSMap
.
get
(
item
.
getId
()).
getTotalDeliveryCount
()))
{
&&
!
item
.
getEffectiveReferralCount
().
equals
(
referralReviewCommonDTOSMap
.
get
(
item
.
getId
()).
getTotalDeliveryCount
()))
{
review
.
setIsNeedReviewed
(
1
);
review
.
setIsNeedReviewed
(
1
);
...
@@ -346,7 +328,7 @@ public class EffectiveReferralReviewMiniProgramService {
...
@@ -346,7 +328,7 @@ public class EffectiveReferralReviewMiniProgramService {
review
.
setManagerCommitTime
(
new
Date
());
review
.
setManagerCommitTime
(
new
Date
());
review
.
setUpdatedBy
(
dto
.
getUpdatedBy
());
review
.
setUpdatedBy
(
dto
.
getUpdatedBy
());
review
.
setUpdatedDate
(
new
Date
());
review
.
setUpdatedDate
(
new
Date
());
effectiveReferralReviewMapper
.
updateByPrimaryKey
Selective
(
review
);
effectiveReferralReviewMapper
.
updateByPrimaryKey
(
review
);
}
}
);
);
}
}
...
...
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