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 f05291ec
authored
Apr 27, 2026
by
庞善天
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
轻改短课程代码优化
1 parent
dbff7732
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
5 deletions
rpc-dj-mindworkplate-api/src/main/java/cn/com/glsx/dj/mindworkplate/dto/sop/SopShortCourseTaskDTO.java
rpc-dj-mindworkplate/src/main/java/cn/com/glsx/dj/mindworkplate/service/sop/SopShortCourseTaskService.java
rpc-dj-mindworkplate/src/main/resources/META-INF/orm/SopShortCourseTaskMapper.xml
rpc-dj-mindworkplate/src/main/resources/META-INF/orm/SopShortCourseTaskQueryMapper.xml
rpc-dj-mindworkplate-api/src/main/java/cn/com/glsx/dj/mindworkplate/dto/sop/SopShortCourseTaskDTO.java
View file @
f05291e
...
@@ -54,5 +54,8 @@ public class SopShortCourseTaskDTO implements Serializable {
...
@@ -54,5 +54,8 @@ public class SopShortCourseTaskDTO implements Serializable {
@ApiModelProperty
(
notes
=
"消息盒子id"
)
@ApiModelProperty
(
notes
=
"消息盒子id"
)
private
Integer
msgBoxId
;
private
Integer
msgBoxId
;
@ApiModelProperty
(
notes
=
"惩罚状态 1-未触发 2-处罚中 3-已结束 4-已解除"
)
private
Byte
punishStatus
;
}
}
rpc-dj-mindworkplate/src/main/java/cn/com/glsx/dj/mindworkplate/service/sop/SopShortCourseTaskService.java
View file @
f05291e
...
@@ -16,6 +16,7 @@ import cn.com.glsx.dj.mindworkplate.model.sop.SopShortCourseTask;
...
@@ -16,6 +16,7 @@ import cn.com.glsx.dj.mindworkplate.model.sop.SopShortCourseTask;
import
cn.com.glsx.dj.mindworkplate.model.sop.SopShortCourseTaskDetail
;
import
cn.com.glsx.dj.mindworkplate.model.sop.SopShortCourseTaskDetail
;
import
cn.com.glsx.dj.smartcarlife.dto.merchantPerformanceConfig.StaffBeisenBaseInfoDTO
;
import
cn.com.glsx.dj.smartcarlife.dto.merchantPerformanceConfig.StaffBeisenBaseInfoDTO
;
import
cn.com.glsx.dj.smartcarlife.dto.merchantPerformanceConfig.StaffDetailInfoDTO
;
import
cn.com.glsx.dj.smartcarlife.dto.merchantPerformanceConfig.StaffDetailInfoDTO
;
import
cn.com.glsx.dj.smartcarlife.enums.ContentManagerEnum
;
import
cn.com.glsx.dj.smartcarlife.remote.StaffBaseInfoRemote
;
import
cn.com.glsx.dj.smartcarlife.remote.StaffBaseInfoRemote
;
import
cn.com.glsx.framework.core.beans.rpc.RpcResponse
;
import
cn.com.glsx.framework.core.beans.rpc.RpcResponse
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
...
@@ -114,7 +115,6 @@ public class SopShortCourseTaskService {
...
@@ -114,7 +115,6 @@ public class SopShortCourseTaskService {
Date
startTime
=
Date
.
from
(
LocalDate
.
parse
(
checkDateStr
).
atTime
(
LocalTime
.
MIN
).
atZone
(
ZoneId
.
systemDefault
()).
toInstant
());
Date
startTime
=
Date
.
from
(
LocalDate
.
parse
(
checkDateStr
).
atTime
(
LocalTime
.
MIN
).
atZone
(
ZoneId
.
systemDefault
()).
toInstant
());
Date
endTime
=
Date
.
from
(
LocalDate
.
parse
(
checkDateStr
).
atTime
(
LocalTime
.
MAX
).
atZone
(
ZoneId
.
systemDefault
()).
toInstant
());
Date
endTime
=
Date
.
from
(
LocalDate
.
parse
(
checkDateStr
).
atTime
(
LocalTime
.
MAX
).
atZone
(
ZoneId
.
systemDefault
()).
toInstant
());
List
<
String
>
successCustomerPhones
=
sopShortCourseTaskMapper
.
listSuccessOrderCustomerPhones
(
startTime
,
endTime
);
List
<
String
>
successCustomerPhones
=
sopShortCourseTaskMapper
.
listSuccessOrderCustomerPhones
(
startTime
,
endTime
);
Set
<
String
>
successCustomerPhoneSet
=
CollectionUtils
.
isEmpty
(
successCustomerPhones
)
?
Collections
.
emptySet
()
:
new
HashSet
<>(
successCustomerPhones
);
// 根据手机号和复盘日期生成课程任务
// 根据手机号和复盘日期生成课程任务
Date
checkDate
=
Date
.
from
(
LocalDate
.
parse
(
checkDateStr
).
atStartOfDay
(
ZoneId
.
systemDefault
()).
toInstant
());
Date
checkDate
=
Date
.
from
(
LocalDate
.
parse
(
checkDateStr
).
atStartOfDay
(
ZoneId
.
systemDefault
()).
toInstant
());
...
@@ -139,8 +139,9 @@ public class SopShortCourseTaskService {
...
@@ -139,8 +139,9 @@ public class SopShortCourseTaskService {
// 根据录音列表生成任务明细
// 根据录音列表生成任务明细
List
<
SopShortCourseTaskDetail
>
detailList
=
new
ArrayList
<>();
List
<
SopShortCourseTaskDetail
>
detailList
=
new
ArrayList
<>();
for
(
SopShortCourseRecordingDTO
recording
:
recordings
)
{
for
(
SopShortCourseRecordingDTO
recording
:
recordings
)
{
if
(!
successCustomerPhoneSet
.
isEmpty
()
&&
StringUtils
.
isNotBlank
(
recording
.
getCustomerPhone
())
// 成功下单的客户排除掉
&&
successCustomerPhoneSet
.
contains
(
StringUtils
.
trim
(
recording
.
getCustomerPhone
())))
{
if
(!
successCustomerPhones
.
isEmpty
()
&&
StringUtils
.
isNotBlank
(
recording
.
getCustomerPhone
())
&&
successCustomerPhones
.
contains
(
StringUtils
.
trim
(
recording
.
getCustomerPhone
())))
{
continue
;
continue
;
}
}
SopShortCourseTaskDetail
d
=
buildTaskDetail
(
recording
);
SopShortCourseTaskDetail
d
=
buildTaskDetail
(
recording
);
...
@@ -183,6 +184,9 @@ public class SopShortCourseTaskService {
...
@@ -183,6 +184,9 @@ public class SopShortCourseTaskService {
msgBox
.
setBusinessType
(
BusinessTypeEnums
.
PREMIUM_PRODUCTS
.
getCode
());
msgBox
.
setBusinessType
(
BusinessTypeEnums
.
PREMIUM_PRODUCTS
.
getCode
());
msgBox
.
setPhone
(
staffPhone
);
msgBox
.
setPhone
(
staffPhone
);
msgBox
.
setStatus
(
0
);
msgBox
.
setStatus
(
0
);
msgBox
.
setReadCount
(
0
);
msgBox
.
setPopupCount
(
0
);
msgBox
.
setReadType
(
ContentManagerEnum
.
ReadType
.
FIRST
.
getValue
());
msgBox
.
setCreatedBy
(
createdBy
);
msgBox
.
setCreatedBy
(
createdBy
);
msgBox
.
setCreatedTime
(
now
);
msgBox
.
setCreatedTime
(
now
);
msgBox
.
setDelFlag
(
DELETE_FLAG_NORMAL
);
msgBox
.
setDelFlag
(
DELETE_FLAG_NORMAL
);
...
...
rpc-dj-mindworkplate/src/main/resources/META-INF/orm/SopShortCourseTaskMapper.xml
View file @
f05291e
...
@@ -32,6 +32,8 @@
...
@@ -32,6 +32,8 @@
and t2.check_type = 2
and t2.check_type = 2
and t4.phone_number = #{staffPhone}
and t4.phone_number = #{staffPhone}
and t1.reception_start_time between #{startTime} and #{endTime}
and t1.reception_start_time between #{startTime} and #{endTime}
and t3.quality_inspection is not null
and t3.quality_inspection != ''
order by t1.reception_start_time desc, t3.id desc
order by t1.reception_start_time desc, t3.id desc
</select>
</select>
...
...
rpc-dj-mindworkplate/src/main/resources/META-INF/orm/SopShortCourseTaskQueryMapper.xml
View file @
f05291e
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
and staff_name like concat('%', #{staffName}, '%')
and staff_name like concat('%', #{staffName}, '%')
</if>
</if>
<if
test=
"staffPhone != null and staffPhone != ''"
>
<if
test=
"staffPhone != null and staffPhone != ''"
>
and staff_phone
= #{staffPhone}
and staff_phone
like concat('%', #{staffPhone}, '%')
</if>
</if>
<if
test=
"merchantName != null and merchantName != ''"
>
<if
test=
"merchantName != null and merchantName != ''"
>
and merchant_name like concat('%', #{merchantName}, '%')
and merchant_name like concat('%', #{merchantName}, '%')
...
@@ -52,7 +52,9 @@
...
@@ -52,7 +52,9 @@
<if
test=
"taskStatus != null"
>
<if
test=
"taskStatus != null"
>
and task_status = #{taskStatus}
and task_status = #{taskStatus}
</if>
</if>
<if
test=
"punishStatus != null"
>
and punish_status = #{punishStatus}
</if>
<if
test=
"checkStartTime != null"
>
<if
test=
"checkStartTime != null"
>
and check_date
>
= #{checkStartTime}
and check_date
>
= #{checkStartTime}
</if>
</if>
...
...
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