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 e22814b1
authored
Jan 23, 2026
by
谢海旭
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
v5.6.0版本 策略中心
1 parent
5e22d55d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
9 deletions
rpc-dj-mindworkplate-api/src/main/java/cn/com/glsx/dj/mindworkplate/model/PadMessageBox.java
rpc-dj-mindworkplate/src/main/java/cn/com/glsx/dj/mindworkplate/handler/messagebox/ExcellentCaseShareDetailHandler.java
rpc-dj-mindworkplate/src/main/resources/META-INF/orm/PadMessageBoxMapper.xml
rpc-dj-mindworkplate-api/src/main/java/cn/com/glsx/dj/mindworkplate/model/PadMessageBox.java
View file @
e22814b
...
...
@@ -143,8 +143,8 @@ public class PadMessageBox implements Serializable {
* 任务类型消息-任务结束时间
*/
@ApiModelProperty
(
notes
=
"任务类型消息-任务结束时间 yyyy-MM-dd HH:mm:ss"
)
@Column
(
name
=
"
start
_end_time"
)
@Column
(
name
=
"
task
_end_time"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
start
EndTime
;
private
Date
task
EndTime
;
}
\ No newline at end of file
rpc-dj-mindworkplate/src/main/java/cn/com/glsx/dj/mindworkplate/handler/messagebox/ExcellentCaseShareDetailHandler.java
View file @
e22814b
...
...
@@ -6,6 +6,7 @@ import cn.com.glsx.dj.mindworkplate.dto.messagebox.PmbLearningTaskBaseDetailDTO;
import
cn.com.glsx.dj.mindworkplate.enums.MindWorkplateServiceErrorEnum
;
import
cn.com.glsx.dj.mindworkplate.enums.messagebox.ModuleTypeEnums
;
import
cn.com.glsx.dj.mindworkplate.model.PadMessageBox
;
import
cn.com.glsx.dj.strategy.model.StrategyInfo
;
import
cn.com.glsx.dj.strategy.remote.StrategyStaffMessageRemote
;
import
cn.com.glsx.framework.core.beans.rpc.RpcResponse
;
import
cn.com.glsx.framework.core.exception.RpcServiceException
;
...
...
@@ -25,10 +26,22 @@ public class ExcellentCaseShareDetailHandler implements ModuleTypeDetailHandler
@Override
public
Object
getDetail
(
PadMessageBox
padMessageBox
)
{
// TODO: 实际实现应该调用优秀案例分享策略的业务接口获取详情
PmbLearningTaskBaseDetailDTO
<
ConversationBatchDTO
>
detail
=
new
PmbLearningTaskBaseDetailDTO
<>();
// 可能还需要其他业务字段的填充
return
detail
;
try
{
RpcResponse
<
Object
>
response
=
strategyStaffMessageRemote
.
getBusinessMessageDetailByMessageId
(
padMessageBox
.
getId
());
if
(
response
.
isSuccess
()
&&
response
.
getResult
()
!=
null
)
{
StrategyInfo
strategyInfo
=
(
StrategyInfo
)
response
.
getResult
();
PmbLearningTaskBaseDetailDTO
<
ConversationBatchDTO
>
detail
=
new
PmbLearningTaskBaseDetailDTO
<>();
detail
.
setTaskTitle
(
padMessageBox
.
getMsgTitle
());
detail
.
setTaskDeadline
(
padMessageBox
.
getTaskEndTime
());
return
detail
;
}
return
null
;
}
catch
(
Exception
e
)
{
log
.
error
(
"查询优秀案例分享策略详情异常,消息ID:{}"
,
padMessageBox
.
getId
(),
e
);
return
null
;
}
}
@Override
...
...
rpc-dj-mindworkplate/src/main/resources/META-INF/orm/PadMessageBoxMapper.xml
View file @
e22814b
...
...
@@ -24,7 +24,7 @@
<result
column=
"reminder_type"
property=
"reminderType"
jdbcType=
"TINYINT"
/>
<result
column=
"msg_title"
property=
"msgTitle"
jdbcType=
"VARCHAR"
/>
<result
column=
"task_start_time"
property=
"taskStartTime"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"
start_end_time"
property=
"start
EndTime"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"
task_end_time"
property=
"task
EndTime"
jdbcType=
"TIMESTAMP"
/>
</resultMap>
<resultMap
id=
"newPadMessageBoxDTOMap"
type=
"cn.com.glsx.dj.mindworkplate.dto.messagebox.NewPadMessageBoxDTO"
extends=
"BaseResultMap"
/>
...
...
@@ -78,7 +78,7 @@
-->
id, module_type, business_type, uuid, phone, name, status, created_by, created_time,
updated_by, updated_time, del_flag, popup_count, read_type, read_count, latest_read_time,
reminder_type, msg_title, task_start_time,
start
_end_time
reminder_type, msg_title, task_start_time,
task
_end_time
</sql>
<select
id=
"listMessageBoxRecordDetail"
parameterType=
"cn.com.glsx.dj.mindworkplate.dto.script.ScriptSearchDTO"
...
...
@@ -249,7 +249,7 @@
select
pmb.id, pmb.id as detail_id,
case when pmb.reminder_type = 1 then '新的长课程学习任务' else '长课程学习提醒' end title,
pmb.reminder_type as task_type, pmb.msg_title as task_name, pmb.
start
_end_time as finish_time,
pmb.reminder_type as task_type, pmb.msg_title as task_name, pmb.
task
_end_time as finish_time,
pmb.created_time, null as complete_status,null as punish_type, null as task_progress, null as course_total_count, null as total_duration,
pmb.status,pmb.module_type
from pad_message_box pmb
...
...
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