Commit 469f242b by 杨卫

feat(strategy): 添加策略生命周期手动触发接口并优化督导带教功能

- 新增triggerProcessType接口用于手动触发策略生命周期处理(调试用)
- 将StrategyMaintenanceJob.processType方法改为public以便外部调用
- 优化LearningLifecycle中无人员时的日志记录和返回处理
- 修复StrategyCreatedConsumer中带教时间的空值检查逻辑
- 移除督导带教中的推送课程相关字段和验证逻辑
- 更新StrategyStaffRelMapper.xml添加rel_type字段映射
- 调整MentoringStrategyParam文档说明,移除推送课程相关描述
1 parent 24c04190
...@@ -344,4 +344,20 @@ public class StrategyInfoController { ...@@ -344,4 +344,20 @@ public class StrategyInfoController {
return RopResponse.error(e.getMessage()); return RopResponse.error(e.getMessage());
} }
} }
@ApiOperation("手动触发策略生命周期处理(调试用)")
@ServiceMethod(method = "dj.api.strategy.maintenance.trigger", needInSession = NeedInSessionType.NO, ignoreSign = IgnoreSignType.YES)
public RopResponse<String> triggerProcessType(StrategyProcessTypeRequest request) {
try {
RpcResponse<String> response = strategyInfoRemote.triggerProcessType(request.getTypes());
if (response.isFailed()) {
log.error("手动触发策略生命周期处理失败: {}", response.getMessage());
return RopResponse.error(response.getError(), response.getMessage());
}
return RopResponse.success(response.getResult());
} catch (Exception e) {
log.error("=====dj.api.strategy.maintenance.trigger exception:{}", e.getMessage(), e);
return RopResponse.error(e.getMessage());
}
}
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!