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 38f66be0
authored
Feb 28, 2026
by
蔡远明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Revert "Merge branch 'v5.6.2' into 'master'"
This reverts merge request
!4
1 parent
08f615ff
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
30 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 @
38f66be
...
@@ -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
,
@Param
(
"merchantIds"
)
List
<
String
>
merchantIds
);
List
<
MerchantBrandReportDTO
>
getDeliveryCount
(
@Param
(
"date"
)
String
date
);
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 @
38f66be
...
@@ -130,14 +130,9 @@ public class AttendanceDataCleansingService {
...
@@ -130,14 +130,9 @@ 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
);
Example
.
Criteria
criteria
=
staffBeisenBaseExample
.
createCriteria
();
staffBeisenBaseExample
.
createCriteria
().
andEqualTo
(
"deletedFlag"
,
'N'
)
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 @
38f66be
...
@@ -84,17 +84,9 @@ public class AutoPerfEvaluationService {
...
@@ -84,17 +84,9 @@ 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
(
staffBeisenBaseCondition1
).
andCondition
(
staffBeisenBaseCondition2
);
.
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 @
38f66be
...
@@ -14,6 +14,7 @@ import cn.com.glsx.dj.staff.mapper.perfSalary.EffectiveReferralReviewMapper;
...
@@ -14,6 +14,7 @@ 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
;
...
@@ -236,13 +237,7 @@ public class EffectiveReferralReviewService {
...
@@ -236,13 +237,7 @@ 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
);
String
merchantIdList
=
OrePropertyConfigurer
.
getProperty
(
"gray_merchantId_list"
,
String
.
class
,
""
);
List
<
MerchantBrandReportDTO
>
deliveryCount
=
effectiveReferralReviewMapper
.
getDeliveryCount
(
statsMonth
);
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 @
38f66be
...
@@ -254,12 +254,6 @@
...
@@ -254,12 +254,6 @@
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>
...
...
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