From 91f78cb59e1954cbc6e5e1526321c2e248dc9361 Mon Sep 17 00:00:00 2001 From: daihh Date: Tue, 1 Nov 2022 00:47:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../study/service/impl/StudyCourseServiceImpl.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/servers/boe-server-all/src/main/java/com/xboe/school/study/service/impl/StudyCourseServiceImpl.java b/servers/boe-server-all/src/main/java/com/xboe/school/study/service/impl/StudyCourseServiceImpl.java index 18992cb8..d4729cd5 100644 --- a/servers/boe-server-all/src/main/java/com/xboe/school/study/service/impl/StudyCourseServiceImpl.java +++ b/servers/boe-server-all/src/main/java/com/xboe/school/study/service/impl/StudyCourseServiceImpl.java @@ -397,9 +397,9 @@ public class StudyCourseServiceImpl implements IStudyCourseService{ StringBuilder str=new StringBuilder(); if(!studyCourseQuery.getIds().isEmpty()){ for (String id:studyCourseQuery.getAids()){ - str.append("'"); + //str.append("'"); str.append(id); - str.append("'"); + //str.append("'"); str.append(","); } @@ -411,9 +411,9 @@ public class StudyCourseServiceImpl implements IStudyCourseService{ StringBuilder str1=new StringBuilder(); if(!studyCourseQuery.getAids().isEmpty()){ for (String id:studyCourseQuery.getIds()){ - str1.append("'"); + //str1.append("'"); str1.append(id); - str1.append("'"); + //str1.append("'"); str1.append(","); } @@ -422,8 +422,6 @@ public class StudyCourseServiceImpl implements IStudyCourseService{ str1.deleteCharAt(str1.length()-1); } - - String sql="select sc.id,sc.course_id,sc.course_type,sc.course_name,sc.aid,sc.aname,sc.source,sc.add_time,sc.start_time,sc.finish_time,sc.progress," + "sc.total_duration,sc.last_score,sc.status,sc.status_time,sc.last_time," + "c.score,c.cover_img from boe_course as c left join boe_study_course as sc on sc.course_id=c.id where " +