guoyu/Test/bat/检查课件时长.bat

36 lines
1.0 KiB
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
chcp 65001 >nul
echo ========================================
echo 课件时长检查工具
echo ========================================
echo.
echo 这个工具帮助你检查课件时长配置
echo.
echo 【问题说明】
echo 如果课件duration=0会导致
echo 1. 学习进度计算不准确显示14.29%%等奇怪数字)
echo 2. 完成判断依赖推断时长,不够准确
echo.
echo 【解决方案】
echo 1. 使用MySQL客户端连接数据库
echo 2. 执行 "修复课件时长.sql" 中的SQL语句
echo 3. 或者在后台管理系统中编辑课件,设置正确时长
echo.
echo ========================================
echo.
echo 快速检查SQL复制到MySQL中执行
echo.
echo SELECT
echo id,
echo courseware_name AS 课件名称,
echo duration AS 时长秒,
echo ROUND(duration / 60, 2) AS 时长分钟,
echo file_path AS 文件路径
echo FROM study_courseware
echo WHERE course_id = 1 AND type = 'video'
echo ORDER BY courseware_order;
echo.
echo ========================================
echo.
pause