Browse Source

vip定制课

zouxuan 7 months ago
parent
commit
dbc24d1641

+ 2 - 2
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/StudentServiceImpl.java

@@ -1112,8 +1112,8 @@ public class StudentServiceImpl extends ServiceImpl<StudentDao, Student> impleme
     public StudentIndexWrapper.SummaryDto indexSummary(Long userId) {
         Date now = new Date();
         //获取学员本周练习时长
-        Date monday = DateUtil.getWeekDayWithDate(now,2);
-        Date sunday = DateUtil.getWeekDayWithDate(now,1);
+        Date monday = DateUtil.getWeekDayWithDate(now,Calendar.MONDAY);
+        Date sunday = DateUtil.getWeekDayWithDate(now,Calendar.SUNDAY);
         StudentIndexWrapper.SummaryDto summaryDto = new StudentIndexWrapper.SummaryDto();
         //统计学员本周练习时长
         summaryDto.setRecordTime(sysMusicCompareRecordService.getDao().countStudentPracticeTime(userId, monday, sunday));

+ 1 - 1
cooleshow-user/user-biz/src/main/resources/config/mybatis/TeacherFreeTimeMapper.xml

@@ -71,7 +71,7 @@
                 AND tsp.course_type_ = #{param.courseType}
             </if>
             <if test="param.search != null and param.search != ''">
-                AND u.real_name_ LIKE CONCAT('%',#{param.search},'%')
+                AND u.username_ LIKE CONCAT('%',#{param.search},'%')
             </if>
         </where>
         <if test="param.sortField != null and param.sortField != ''">