Bläddra i källkod

Merge branch 'dev_1_3_2_20220815'

liujunchi 3 år sedan
förälder
incheckning
680089709c

+ 2 - 2
cooleshow-user/user-biz/src/main/resources/config/mybatis/CourseScheduleMapper.xml

@@ -805,8 +805,8 @@
     <select id="queryCourseHomeOfMonth" parameterType="map"
             resultType="com.yonge.cooleshow.biz.dal.vo.CourseHomeVo$CourseHomeInfoVo">
         select class_date_                                                            as `date`,
-               ifnull(case when status_ in ('NOT_START', 'ING') then count(1) end, 0) as undoneCount,
-               ifnull(case when status_ = 'COMPLETE' then count(1) end, 0)            as doneCount
+        sum( CASE WHEN status_ IN ( 'NOT_START', 'ING' ) THEN  1  else 0   END ) AS undoneCount,
+        sum( CASE WHEN status_ = 'COMPLETE' THEN  1 else 0 END ) AS doneCount
         from course_schedule
         where type_ = #{param.type}
           and status_ in ('NOT_START', 'ING', 'COMPLETE')