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 08f615ff
authored
Feb 28, 2026
by
蔡远明
1
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v5.6.2' into 'master'
上线合并 See merge request
!4
2 parents
cc28ffaf
f1be2daa
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
6 deletions
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/mapper/perfSalary/EffectiveReferralReviewMapper.java
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/service/perfSalary/AttendanceDataCleansingService.java
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/service/perfSalary/AutoPerfEvaluationService.java
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/service/perfSalary/EffectiveReferralReviewService.java
rpc-dj-staff/src/main/resources/META-INF/orm/EffectiveReferralReviewMapper.xml
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/mapper/perfSalary/EffectiveReferralReviewMapper.java
View file @
08f615f
...
@@ -46,7 +46,7 @@ public interface EffectiveReferralReviewMapper extends OreMapper<EffectiveReferr
...
@@ -46,7 +46,7 @@ public interface EffectiveReferralReviewMapper extends OreMapper<EffectiveReferr
List
<
Integer
>
getAll4sRefMerchantId
();
List
<
Integer
>
getAll4sRefMerchantId
();
List
<
MerchantBrandReportDTO
>
getDeliveryCount
(
@Param
(
"date"
)
String
date
);
List
<
MerchantBrandReportDTO
>
getDeliveryCount
(
@Param
(
"date"
)
String
date
,
@Param
(
"merchantIds"
)
List
<
String
>
merchantIds
);
void
insertOrUpdate
(
EffectiveReferralReview
effectiveReferralReview
);
void
insertOrUpdate
(
EffectiveReferralReview
effectiveReferralReview
);
...
...
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/service/perfSalary/AttendanceDataCleansingService.java
View file @
08f615f
...
@@ -130,9 +130,14 @@ public class AttendanceDataCleansingService {
...
@@ -130,9 +130,14 @@ public class AttendanceDataCleansingService {
staffBeisenBaseCondition1
=
StrUtil
.
format
(
staffBeisenBaseCondition1
,
month
);
staffBeisenBaseCondition1
=
StrUtil
.
format
(
staffBeisenBaseCondition1
,
month
);
String
staffBeisenBaseCondition2
=
"DATE_FORMAT(entry_date, '%Y-%m') <= '{}'"
;
String
staffBeisenBaseCondition2
=
"DATE_FORMAT(entry_date, '%Y-%m') <= '{}'"
;
staffBeisenBaseCondition2
=
StrUtil
.
format
(
staffBeisenBaseCondition2
,
month
);
staffBeisenBaseCondition2
=
StrUtil
.
format
(
staffBeisenBaseCondition2
,
month
);
staffBeisenBaseExample
.
createCriteria
().
andEqualTo
(
"deletedFlag"
,
'N'
)
Example
.
Criteria
criteria
=
staffBeisenBaseExample
.
createCriteria
();
criteria
.
andEqualTo
(
"deletedFlag"
,
'N'
)
// .andEqualTo("staffPhone", "18684780942")
// .andEqualTo("staffPhone", "18684780942")
.
andCondition
(
staffBeisenBaseCondition1
).
andCondition
(
staffBeisenBaseCondition2
);
.
andCondition
(
staffBeisenBaseCondition1
).
andCondition
(
staffBeisenBaseCondition2
);
String
staffPhones
=
OrePropertyConfigurer
.
getProperty
(
"gray_phone_list"
,
String
.
class
,
""
);
if
(
StrUtil
.
isNotBlank
(
staffPhones
))
{
criteria
.
andIn
(
"staffPhone"
,
Arrays
.
asList
(
staffPhones
.
split
(
","
)));
}
List
<
StaffBeisenBaseInfo
>
staffBeiSenBaseInfos
=
staffBeisenBaseInfoMapper
.
selectByExample
(
staffBeisenBaseExample
);
List
<
StaffBeisenBaseInfo
>
staffBeiSenBaseInfos
=
staffBeisenBaseInfoMapper
.
selectByExample
(
staffBeisenBaseExample
);
log
.
info
(
"获取到 {} 条员工数据"
,
staffBeiSenBaseInfos
.
size
());
log
.
info
(
"获取到 {} 条员工数据"
,
staffBeiSenBaseInfos
.
size
());
...
...
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/service/perfSalary/AutoPerfEvaluationService.java
View file @
08f615f
...
@@ -84,9 +84,17 @@ public class AutoPerfEvaluationService {
...
@@ -84,9 +84,17 @@ public class AutoPerfEvaluationService {
staffBeisenBaseCondition1
=
StrUtil
.
format
(
staffBeisenBaseCondition1
,
lastMonth
);
staffBeisenBaseCondition1
=
StrUtil
.
format
(
staffBeisenBaseCondition1
,
lastMonth
);
String
staffBeisenBaseCondition2
=
"DATE_FORMAT(entry_date, '%Y-%m') <= '{}'"
;
String
staffBeisenBaseCondition2
=
"DATE_FORMAT(entry_date, '%Y-%m') <= '{}'"
;
staffBeisenBaseCondition2
=
StrUtil
.
format
(
staffBeisenBaseCondition2
,
lastMonth
);
staffBeisenBaseCondition2
=
StrUtil
.
format
(
staffBeisenBaseCondition2
,
lastMonth
);
staffBeisenBaseExample
.
createCriteria
().
andEqualTo
(
"deletedFlag"
,
'N'
)
// 使用同一个Criteria对象添加所有条件
Example
.
Criteria
criteria
=
staffBeisenBaseExample
.
createCriteria
();
criteria
.
andEqualTo
(
"deletedFlag"
,
'N'
)
// .andEqualTo("staffPhone", "18684780942")
// .andEqualTo("staffPhone", "18684780942")
.
andCondition
(
staffBeisenBaseCondition1
).
andCondition
(
staffBeisenBaseCondition2
);
.
andCondition
(
staffBeisenBaseCondition1
)
.
andCondition
(
staffBeisenBaseCondition2
);
String
staffPhones
=
OrePropertyConfigurer
.
getProperty
(
"gray_phone_list"
,
String
.
class
,
""
);
if
(
StrUtil
.
isNotBlank
(
staffPhones
))
{
criteria
.
andIn
(
"staffPhone"
,
Arrays
.
asList
(
staffPhones
.
split
(
","
)));
}
List
<
StaffBeisenBaseInfo
>
staffBeiSenBaseInfos
=
staffBeisenBaseInfoMapper
.
selectByExample
(
staffBeisenBaseExample
);
List
<
StaffBeisenBaseInfo
>
staffBeiSenBaseInfos
=
staffBeisenBaseInfoMapper
.
selectByExample
(
staffBeisenBaseExample
);
log
.
info
(
"获取到 {} 条员工数据"
,
staffBeiSenBaseInfos
.
size
());
log
.
info
(
"获取到 {} 条员工数据"
,
staffBeiSenBaseInfos
.
size
());
if
(
ObjectUtil
.
isEmpty
(
staffBeiSenBaseInfos
))
{
if
(
ObjectUtil
.
isEmpty
(
staffBeiSenBaseInfos
))
{
...
...
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/service/perfSalary/EffectiveReferralReviewService.java
View file @
08f615f
...
@@ -14,7 +14,6 @@ import cn.com.glsx.dj.staff.mapper.perfSalary.EffectiveReferralReviewMapper;
...
@@ -14,7 +14,6 @@ import cn.com.glsx.dj.staff.mapper.perfSalary.EffectiveReferralReviewMapper;
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.dj.staff.util.DataUtils
;
import
cn.com.glsx.dj.staff.util.DataUtils
;
import
cn.com.glsx.framework.core.beans.BaseModel
;
import
cn.com.glsx.framework.core.beans.rpc.RpcPagination
;
import
cn.com.glsx.framework.core.beans.rpc.RpcPagination
;
import
cn.com.glsx.framework.core.beans.rpc.RpcResponse
;
import
cn.com.glsx.framework.core.beans.rpc.RpcResponse
;
import
cn.com.glsx.framework.core.enums.DefaultErrorEnum
;
import
cn.com.glsx.framework.core.enums.DefaultErrorEnum
;
...
@@ -237,7 +236,13 @@ public class EffectiveReferralReviewService {
...
@@ -237,7 +236,13 @@ public class EffectiveReferralReviewService {
// 上个月
// 上个月
DateTime
lastMonthDate
=
DateUtil
.
offsetMonth
(
new
Date
(),
-
1
);
DateTime
lastMonthDate
=
DateUtil
.
offsetMonth
(
new
Date
(),
-
1
);
statsMonth
=
StrUtil
.
isNotBlank
(
statsMonth
)
?
statsMonth
:
DateUtil
.
format
(
lastMonthDate
,
DatePattern
.
NORM_MONTH_PATTERN
);
statsMonth
=
StrUtil
.
isNotBlank
(
statsMonth
)
?
statsMonth
:
DateUtil
.
format
(
lastMonthDate
,
DatePattern
.
NORM_MONTH_PATTERN
);
List
<
MerchantBrandReportDTO
>
deliveryCount
=
effectiveReferralReviewMapper
.
getDeliveryCount
(
statsMonth
);
String
merchantIdList
=
OrePropertyConfigurer
.
getProperty
(
"gray_merchantId_list"
,
String
.
class
,
""
);
List
<
MerchantBrandReportDTO
>
deliveryCount
;
if
(
StrUtil
.
isNotBlank
(
merchantIdList
))
{
deliveryCount
=
effectiveReferralReviewMapper
.
getDeliveryCount
(
statsMonth
,
Arrays
.
asList
(
merchantIdList
.
split
(
","
)));
}
else
{
deliveryCount
=
effectiveReferralReviewMapper
.
getDeliveryCount
(
statsMonth
,
null
);
}
List
<
EffectiveReferralReview
>
insertList
=
new
ArrayList
<>();
List
<
EffectiveReferralReview
>
insertList
=
new
ArrayList
<>();
if
(
CollUtil
.
isNotEmpty
(
deliveryCount
))
{
if
(
CollUtil
.
isNotEmpty
(
deliveryCount
))
{
for
(
MerchantBrandReportDTO
item
:
deliveryCount
)
{
for
(
MerchantBrandReportDTO
item
:
deliveryCount
)
{
...
...
rpc-dj-staff/src/main/resources/META-INF/orm/EffectiveReferralReviewMapper.xml
View file @
08f615f
...
@@ -254,6 +254,12 @@
...
@@ -254,6 +254,12 @@
AND s.merchant_id IS NOT NULL
AND s.merchant_id IS NOT NULL
AND template_type IN (0, 1, 2, 3)
AND template_type IN (0, 1, 2, 3)
AND DATE_FORMAT(m.report_date, '%Y-%m') = #{date}
AND DATE_FORMAT(m.report_date, '%Y-%m') = #{date}
<if
test=
"merchantIds != null and merchantIds.size() > 0 "
>
AND m.merchant_id IN
<foreach
item=
"item"
collection=
"merchantIds"
separator=
","
open=
"("
close=
")"
index=
""
>
#{item}
</foreach>
</if>
GROUP BY m.merchant_id, DATE_FORMAT(m.report_date, '%Y-%m');
GROUP BY m.merchant_id, DATE_FORMAT(m.report_date, '%Y-%m');
</select>
</select>
...
...
@caiym
蔡远明
@caiym
mentioned in commit
5d625b92
Feb 28, 2026
mentioned in commit
5d625b92
Toggle commit list
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