From 0223eccd042cffed2239f684bf67afe8dd0f9265 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=AD=E5=87=AF=E5=87=AF?= Date: Mon, 30 Dec 2024 18:45:50 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=9F=A5=E8=AF=A2=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/mapper/course/CourseDao.xml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/resources/mapper/course/CourseDao.xml b/src/main/resources/mapper/course/CourseDao.xml index c5e96f94..cc786738 100644 --- a/src/main/resources/mapper/course/CourseDao.xml +++ b/src/main/resources/mapper/course/CourseDao.xml @@ -38,11 +38,11 @@ c.wx_show as wxShow, c.dy_show as dyShow, c.sort, - 0 as goodNum, + round(10000*rand(),0) as goodNum, (select count(*) from course_details d where d.course_id=c.course_id ) as courseDetailsCount, null AS courseDetailsName, null AS courseDetailsId, - 0 as weekGoodNum, + round(10000*rand(),0) as weekGoodNum, 0 as isRecommend FROM course AS c @@ -93,10 +93,8 @@ and c.dy_status=4 - order by c.sort asc,c.create_time desc -