Commit e22814b1 by 谢海旭

v5.6.0版本 策略中心

1 parent 5e22d55d
......@@ -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 startEndTime;
private Date taskEndTime;
}
\ No newline at end of file
......@@ -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
......
......@@ -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="startEndTime" jdbcType="TIMESTAMP"/>
<result column="task_end_time" property="taskEndTime" 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
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!