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 1fb2afa2
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
70b3f8f8
79b6922d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
8 deletions
rpc-dj-staff-api/src/main/java/cn/com/glsx/dj/staff/dto/perfSalary/StoreEffectiveReferralDetailDTO.java
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/service/perfSalary/EffectiveReferralReviewMiniProgramService.java
rpc-dj-staff-api/src/main/java/cn/com/glsx/dj/staff/dto/perfSalary/StoreEffectiveReferralDetailDTO.java
View file @
1fb2afa
...
@@ -16,4 +16,8 @@ public class StoreEffectiveReferralDetailDTO implements Serializable {
...
@@ -16,4 +16,8 @@ public class StoreEffectiveReferralDetailDTO implements Serializable {
@ApiModelProperty
(
value
=
"业务场景引荐数列表"
)
@ApiModelProperty
(
value
=
"业务场景引荐数列表"
)
private
List
<
SceneTypeEffectiveReferralDTO
>
sceneTypeEffectiveReferrals
;
private
List
<
SceneTypeEffectiveReferralDTO
>
sceneTypeEffectiveReferrals
;
@ApiModelProperty
(
notes
=
"是否可编辑:0-不可编辑,1-可编辑"
)
private
Integer
updateFlag
;
}
}
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/service/perfSalary/EffectiveReferralReviewMiniProgramService.java
View file @
1fb2afa
...
@@ -3,10 +3,13 @@ package cn.com.glsx.dj.staff.service.perfSalary;
...
@@ -3,10 +3,13 @@ package cn.com.glsx.dj.staff.service.perfSalary;
import
cn.com.glsx.dj.smartcarlife.dto.merchant.CarBrandDTO
;
import
cn.com.glsx.dj.smartcarlife.dto.merchant.CarBrandDTO
;
import
cn.com.glsx.dj.smartcarlife.response.ServiceStaffRopResponse
;
import
cn.com.glsx.dj.smartcarlife.response.ServiceStaffRopResponse
;
import
cn.com.glsx.dj.staff.dto.perfSalary.*
;
import
cn.com.glsx.dj.staff.dto.perfSalary.*
;
import
cn.com.glsx.dj.staff.dto.performance.PerformanceTimeCycleDTO
;
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.perfSalary.EffectiveReferralReview
;
import
cn.com.glsx.dj.staff.model.perfSalary.EffectiveReferralReview
;
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
;
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
;
...
@@ -50,6 +53,9 @@ public class EffectiveReferralReviewMiniProgramService {
...
@@ -50,6 +53,9 @@ public class EffectiveReferralReviewMiniProgramService {
@Autowired
@Autowired
private
TaskExecutor
taskExecutor
;
private
TaskExecutor
taskExecutor
;
@Resource
private
PerformanceTimeCycleService
performanceTimeCycleService
;
public
List
<
EffectiveReferralReviewCommonDTO
>
effectiveReferralStoreList
(
EffectiveReferralReviewCommonDTO
request
)
{
public
List
<
EffectiveReferralReviewCommonDTO
>
effectiveReferralStoreList
(
EffectiveReferralReviewCommonDTO
request
)
{
//筛选项:门店名字(模糊搜索),状态:未提交、已提交,月份:2026-01,
//筛选项:门店名字(模糊搜索),状态:未提交、已提交,月份:2026-01,
//特殊逻辑:根据商户门店id去重,根据门店首字母倒序。要根据门店的不同业务场景的数据判断是否已提交和未提交。
//特殊逻辑:根据商户门店id去重,根据门店首字母倒序。要根据门店的不同业务场景的数据判断是否已提交和未提交。
...
@@ -102,25 +108,53 @@ public class EffectiveReferralReviewMiniProgramService {
...
@@ -102,25 +108,53 @@ public class EffectiveReferralReviewMiniProgramService {
}
}
//2、查询其它品牌名称
//2、查询其它品牌名称
String
otherBrandName
=
""
;
String
otherBrandName
=
getOtherBrandName
(
merchantId
,
referralReviewCommonDTOS
);
List
<
EffectiveReferralReviewCommonDTO
>
otherBrandEffectiveReferrals
=
referralReviewCommonDTOS
.
stream
().
filter
(
item
->
item
.
getBrandId
()
==
-
1
).
collect
(
Collectors
.
toList
());
if
(
CollectionUtils
.
isNotEmpty
(
otherBrandEffectiveReferrals
))
{
Map
<
Integer
,
String
>
merchantBandInfoMap
=
this
.
batchQueryMerchantBandInfo
(
Lists
.
newArrayList
(
merchantId
));
otherBrandName
=
this
.
filterDistinctBrandName
(
merchantBandInfoMap
.
get
(
merchantId
),
"鸿蒙智行"
);
}
//3、封装各业务场景引荐数
//3、封装各业务场景引荐数
List
<
SceneTypeEffectiveReferralDTO
>
sceneTypeEffectiveReferrals
=
getSceneTypeEffectiveReferralDTOS
(
referralReviewCommonDTOS
,
otherBrandName
);
List
<
SceneTypeEffectiveReferralDTO
>
sceneTypeEffectiveReferrals
=
getSceneTypeEffectiveReferralDTOS
(
referralReviewCommonDTOS
,
otherBrandName
);
//4、封装返回参数
//4、获取是否可编辑标识
PerformanceTimeCycleDTO
performanceTimeCycleDTO
=
performanceTimeCycleService
.
selectByCode
(
PerformanceTimeCycleCodeEnum
.
T1
.
getCode
());
//5、封装返回参数
StoreEffectiveReferralDetailDTO
detailDTO
=
new
StoreEffectiveReferralDetailDTO
();
StoreEffectiveReferralDetailDTO
detailDTO
=
new
StoreEffectiveReferralDetailDTO
();
if
(
Objects
.
nonNull
(
performanceTimeCycleDTO
)
&&
performanceTimeCycleDTO
.
getStartDate
()
!=
null
&&
performanceTimeCycleDTO
.
getEndDate
()
!=
null
&&
new
Date
().
after
(
performanceTimeCycleDTO
.
getEndDate
()))
{
detailDTO
.
setUpdateFlag
(
0
);
}
else
{
detailDTO
.
setUpdateFlag
(
1
);
}
detailDTO
.
setMerchantName
(
referralReviewCommonDTOS
.
get
(
0
).
getMerchantName
());
detailDTO
.
setMerchantName
(
referralReviewCommonDTOS
.
get
(
0
).
getMerchantName
());
detailDTO
.
setSceneTypeEffectiveReferrals
(
sceneTypeEffectiveReferrals
);
detailDTO
.
setSceneTypeEffectiveReferrals
(
sceneTypeEffectiveReferrals
);
return
detailDTO
;
return
detailDTO
;
}
}
/**
/**
* 获取门店其它品牌名称
*
* @param merchantId
* @param referralReviewCommonDTOS
* @return
*/
private
String
getOtherBrandName
(
Integer
merchantId
,
List
<
EffectiveReferralReviewCommonDTO
>
referralReviewCommonDTOS
)
{
String
otherBrandName
=
""
;
try
{
List
<
EffectiveReferralReviewCommonDTO
>
otherBrandEffectiveReferrals
=
referralReviewCommonDTOS
.
stream
().
filter
(
item
->
item
.
getBrandId
()
==
-
1
).
collect
(
Collectors
.
toList
());
if
(
CollectionUtils
.
isNotEmpty
(
otherBrandEffectiveReferrals
))
{
Map
<
Integer
,
String
>
merchantBandInfoMap
=
this
.
batchQueryMerchantBandInfo
(
Lists
.
newArrayList
(
merchantId
));
otherBrandName
=
this
.
filterDistinctBrandName
(
merchantBandInfoMap
.
get
(
merchantId
),
"鸿蒙智行"
);
}
}
catch
(
Exception
e
)
{
log
.
info
(
"获取门店其它品牌名称异常,merchantId:{}"
,
merchantId
,
e
);
}
return
otherBrandName
;
}
/**
* 根据业务场景获取各业务场景引荐数
* 根据业务场景获取各业务场景引荐数
*
*
* @param referralReviewCommonDTOS
* @param referralReviewCommonDTOS
...
...
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