From 8567fa9ecca63f0ebeb382f56ca8e22cd0b5d50b Mon Sep 17 00:00:00 2001 From: zhaolongfei <2651195677@qq.com> Date: Tue, 18 Jun 2024 13:47:46 +0800 Subject: [PATCH] =?UTF-8?q?content=E8=A1=A8=E6=B7=BB=E5=8A=A0processVideo?= =?UTF-8?q?=E5=AD=97=E6=AE=B5,=E6=B7=BB=E5=8A=A0=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../course/service/impl/CourseContentServiceImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/servers/boe-server-all/src/main/java/com/xboe/module/course/service/impl/CourseContentServiceImpl.java b/servers/boe-server-all/src/main/java/com/xboe/module/course/service/impl/CourseContentServiceImpl.java index 8f171090..a4b980b7 100644 --- a/servers/boe-server-all/src/main/java/com/xboe/module/course/service/impl/CourseContentServiceImpl.java +++ b/servers/boe-server-all/src/main/java/com/xboe/module/course/service/impl/CourseContentServiceImpl.java @@ -144,12 +144,12 @@ public class CourseContentServiceImpl implements ICourseContentService { } @Override - public void updateProcessVideo(String id, String courseId, Float processVideo) { + public void updateProcessVideo(String id, String courseId, Float progressVideo) { // 处理 processVideo 为 null 的情况 - if (processVideo == null) { - processVideo = 0.0f; + if (progressVideo == null) { + progressVideo = 0.00f; } - String sql = "UPDATE boe_course_content SET progress_video = "+ processVideo+" WHERE id = "+ id+" AND course_id = "+ courseId+" "; + String sql = "UPDATE boe_course_content SET progress_video = "+ progressVideo+" WHERE id = "+ id+" AND course_id = "+ courseId+" "; ccDao.sqlUpdate(sql); }