Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-mindworkplate
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7d1371a6
authored
Dec 09, 2025
by
林永健
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat(sop): 添加Sop任务流程关键操作日志输出
1 parent
3b76285c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletions
rpc-dj-mindworkplate/src/main/java/cn/com/glsx/dj/mindworkplate/service/sop/SopTaskDetailInfoService.java
rpc-dj-mindworkplate/src/main/java/cn/com/glsx/dj/mindworkplate/service/sop/SopTaskInfoService.java
rpc-dj-mindworkplate/src/main/java/cn/com/glsx/dj/mindworkplate/service/sop/SopTaskDetailInfoService.java
View file @
7d1371a
...
@@ -282,7 +282,8 @@ public class SopTaskDetailInfoService {
...
@@ -282,7 +282,8 @@ public class SopTaskDetailInfoService {
}
}
}
}
handlerDetailAgentRef
(
sopTaskDetailInfo
,
recordingInfoList
.
size
(),
businessIds
);
handlerDetailAgentRef
(
sopTaskDetailInfo
,
recordingInfoList
.
size
(),
businessIds
);
log
.
info
(
"每日派发员工明细任务,推送员工[{}]录音,批次号[{}], 大模型返回[{}]"
,
sopTaskInfo
.
getStaffUuid
(),
recordingInfoList
.
stream
().
map
(
x
->
x
.
getRecordingId
()).
collect
(
Collectors
.
toList
()),
businessIds
);
}
}
/**
/**
...
...
rpc-dj-mindworkplate/src/main/java/cn/com/glsx/dj/mindworkplate/service/sop/SopTaskInfoService.java
View file @
7d1371a
...
@@ -343,6 +343,8 @@ public class SopTaskInfoService {
...
@@ -343,6 +343,8 @@ public class SopTaskInfoService {
List
<
String
>
uuidList
=
staffIndicatorInfoList
.
stream
().
map
(
x
->
x
.
getStaffId
()).
collect
(
Collectors
.
toList
());
List
<
String
>
uuidList
=
staffIndicatorInfoList
.
stream
().
map
(
x
->
x
.
getStaffId
()).
collect
(
Collectors
.
toList
());
List
<
SopTaskInfo
>
staffTaskCountList
=
sopTaskInfoMapper
.
listUnfinishedLatestSopTaskInfoByUuids
(
uuidList
);
List
<
SopTaskInfo
>
staffTaskCountList
=
sopTaskInfoMapper
.
listUnfinishedLatestSopTaskInfoByUuids
(
uuidList
);
if
(
CollectionUtils
.
isNotEmpty
(
staffTaskCountList
))
{
if
(
CollectionUtils
.
isNotEmpty
(
staffTaskCountList
))
{
List
<
String
>
existStaffPhones
=
staffTaskCountList
.
stream
().
map
(
p
->
p
.
getStaffPhone
()).
collect
(
Collectors
.
toList
());
log
.
info
(
"Sop任务step1阶段,该员工最新记录存在未结束(进行中,未改善)的 阶段任务,existStaffPhones: {}"
,
existStaffPhones
);
uuidSet
=
staffTaskCountList
.
stream
().
map
(
x
->
x
.
getStaffUuid
()
+
x
.
getMerchantId
()).
collect
(
Collectors
.
toSet
());
uuidSet
=
staffTaskCountList
.
stream
().
map
(
x
->
x
.
getStaffUuid
()
+
x
.
getMerchantId
()).
collect
(
Collectors
.
toSet
());
}
}
Date
date
=
new
Date
();
Date
date
=
new
Date
();
...
@@ -353,6 +355,7 @@ public class SopTaskInfoService {
...
@@ -353,6 +355,7 @@ public class SopTaskInfoService {
List
<
SopTaskInfo
>
insertList
=
new
ArrayList
<>();
List
<
SopTaskInfo
>
insertList
=
new
ArrayList
<>();
for
(
DateService
.
ItemDetail
indicatorDetail
:
staffIndicatorInfoList
)
{
for
(
DateService
.
ItemDetail
indicatorDetail
:
staffIndicatorInfoList
)
{
if
(
uuidSet
.
contains
(
indicatorDetail
.
getStaffId
()
+
indicatorDetail
.
getMerchantId
()))
{
if
(
uuidSet
.
contains
(
indicatorDetail
.
getStaffId
()
+
indicatorDetail
.
getMerchantId
()))
{
log
.
info
(
"该员工最新记录存在未结束(进行中,未改善)的阶段任务, staffId: {},merchantId: {}"
,
indicatorDetail
.
getStaffId
(),
indicatorDetail
.
getMerchantId
());
continue
;
continue
;
}
}
SopTaskInfo
sopTaskInfo
=
new
SopTaskInfo
();
SopTaskInfo
sopTaskInfo
=
new
SopTaskInfo
();
...
@@ -378,6 +381,8 @@ public class SopTaskInfoService {
...
@@ -378,6 +381,8 @@ public class SopTaskInfoService {
appendMerchantInfo
(
insertList
);
appendMerchantInfo
(
insertList
);
if
(
CollectionUtils
.
isNotEmpty
(
insertList
))
{
if
(
CollectionUtils
.
isNotEmpty
(
insertList
))
{
sopTaskInfoMapper
.
insertList
(
insertList
);
sopTaskInfoMapper
.
insertList
(
insertList
);
List
<
String
>
insertStaff
=
insertList
.
stream
().
map
(
p
->
p
.
getStaffUuid
()
+
p
.
getStaffPhone
()).
collect
(
Collectors
.
toList
());
log
.
info
(
"Sop任务step1阶段,批量插入sop step1 阶段任务(进行中),insertList: {}"
,
insertStaff
);
}
}
}
}
...
@@ -445,6 +450,8 @@ public class SopTaskInfoService {
...
@@ -445,6 +450,8 @@ public class SopTaskInfoService {
}
}
return
false
;
return
false
;
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
List
<
String
>
effectiveMerchantId
=
effectiveList
.
stream
().
map
(
p
->
p
.
getMerchantId
()
+
p
.
getMerchantName
()).
collect
(
Collectors
.
toList
());
log
.
info
(
"Sop任务step1阶段,周转化率小于{}的门店: {}"
,
weekConversionRateBigDecimal
,
effectiveMerchantId
);
return
effectiveList
;
return
effectiveList
;
}
}
...
@@ -491,6 +498,8 @@ public class SopTaskInfoService {
...
@@ -491,6 +498,8 @@ public class SopTaskInfoService {
}
}
return
false
;
return
false
;
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
List
<
String
>
effectiveStaff
=
effectiveList
.
stream
().
map
(
p
->
p
.
getStaffId
()
+
p
.
getStaffPhone
()).
collect
(
Collectors
.
toList
());
log
.
info
(
"Sop任务step1阶段,月转化率小于{}的店员: {}"
,
monthConversionRateBigDecimal
,
effectiveStaff
);
return
filterByWhitelist
(
effectiveList
);
return
filterByWhitelist
(
effectiveList
);
}
}
...
@@ -542,6 +551,7 @@ public class SopTaskInfoService {
...
@@ -542,6 +551,7 @@ public class SopTaskInfoService {
if
(
CollectionUtils
.
isEmpty
(
recordingInfoList
))
{
if
(
CollectionUtils
.
isEmpty
(
recordingInfoList
))
{
//插入一条,无需考核任务详情
//插入一条,无需考核任务详情
sopTaskDetailInfoService
.
saveDetail
(
sopTaskInfo
,
checkDate
,
SopTaskDetailStatusEnum
.
NO_NEED
.
getValue
());
sopTaskDetailInfoService
.
saveDetail
(
sopTaskInfo
,
checkDate
,
SopTaskDetailStatusEnum
.
NO_NEED
.
getValue
());
log
.
info
(
"每日派发员工明细任务,{} 无需考核任务详情"
,
sopTaskInfo
.
getStaffPhone
());
}
else
{
}
else
{
SopTaskDetailInfo
sopTaskDetailInfo
=
sopTaskDetailInfoService
.
saveDetail
(
sopTaskInfo
,
checkDate
,
SopTaskDetailStatusEnum
.
PROGRESS
.
getValue
());
SopTaskDetailInfo
sopTaskDetailInfo
=
sopTaskDetailInfoService
.
saveDetail
(
sopTaskInfo
,
checkDate
,
SopTaskDetailStatusEnum
.
PROGRESS
.
getValue
());
//处理录音,并推送至大模型
//处理录音,并推送至大模型
...
...
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