fix(课程管理):CourseCatalog.vue:删除客户端权限复算(服务端 scope=catalog 是唯一权威口径);目录加载失败时空态明确提示「课程目录加载失败…请联系管理员检查服务版本与数据库迁移」,不再静默显示“暂无课程”。
deploy-hxtesting / build-and-deploy (push) Successful in 1m13s
deploy-hxtesting / build-and-deploy (push) Successful in 1m13s
后端权限 SQL:部门命中增加部门名回退(调用方部门名与权限部门按 org_depts 反查同名即命中,仍是同部门,无越权)。 迁移 000164 增补存量回填:旧版本时代“已审核+已有课件”但停在待发布的课程自动补发布(新流程没有发布按钮,这批课不回填会永远卡住)。 前端 onPublish:授课时间/地点校验改为“课程级字段 或 场次排期值”任一存在即放行(新增 firstUsableSession,与列表列同一取值逻辑)。 后端 PublishCourse:同样在校验前以 FirstCourseSession(新增仓储方法,排期中优先)兜底,防止前端放过、后端仍拦截。
This commit is contained in:
1 parent
6defb1f2c6
commit
a448598df5
7 files changed
+112
-38
No files matched your search
@@ -25,4 +25,14 @@ WHERE deleted_at IS NULL
|
||||
AND materials = '[]'::jsonb
|
||||
AND (COALESCE(file_key, '') <> '' OR COALESCE(knowledge_id, '') <> '');
|
||||
|
||||
-- 「审核即发布」存量回填(2026-11-26 复测):旧版本时代已审核确认且已有课件的
|
||||
-- 课程,新流程已移除「发布」按钮(审核通过即自动发布),此批课程需补齐发布
|
||||
-- 状态,否则将永远停留在「待发布」且无发布入口。
|
||||
UPDATE tr_course_library
|
||||
SET publish_status = 'published'
|
||||
WHERE deleted_at IS NULL
|
||||
AND verify_status = 'confirmed'
|
||||
AND publish_status = 'draft'
|
||||
AND (COALESCE(file_key, '') <> '' OR COALESCE(knowledge_id, '') <> '' OR materials <> '[]'::jsonb);
|
||||
|
||||
COMMENT ON COLUMN tr_course_library.materials IS 'Course library materials (000164 multi-courseware JSON array, append-only); primary file columns mirror the latest entry';
|
||||
Reference in new issue
Block a user