浏览代码

bug修复

cy 3 年之前
父节点
当前提交
706cd369c4

+ 0 - 11
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/dto/search/MyCourseSearch.java

@@ -36,9 +36,6 @@ public class MyCourseSearch extends QueryInfo {
     @ApiModelProperty(value = "评价学员id")
     private List<Long> repliedIds;
 
-    @ApiModelProperty(value = "评价课程id")
-    private List<Long> classIds;
-
     @ApiModelProperty(value = "学生姓名")
     private String studentName;
 
@@ -48,14 +45,6 @@ public class MyCourseSearch extends QueryInfo {
     @ApiModelProperty(value = "结束时间")
     private String endDate;
 
-    public List<Long> getClassIds() {
-        return classIds;
-    }
-
-    public void setClassIds(List<Long> classIds) {
-        this.classIds = classIds;
-    }
-
     public String getStartDate() {
         return startDate;
     }

+ 0 - 3
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/CourseScheduleServiceImpl.java

@@ -652,8 +652,6 @@ public class CourseScheduleServiceImpl extends ServiceImpl<CourseScheduleDao, Co
     public IPage<MyCourseVo> queryTeacherPracticeCourse(IPage<MyCourseVo> page, MyCourseSearch search) {
         //查询所有已评价学生id
         List<Long> studentList = repliedDao.selectAll();
-        //查询所有已评价课程id
-        List<Long> classList = repliedDao.selectAllClass();
 
         Integer replied = search.getReplied();
         if (replied != null) {
@@ -663,7 +661,6 @@ public class CourseScheduleServiceImpl extends ServiceImpl<CourseScheduleDao, Co
                     search.setRepliedIds(null);
                 } else {
                     search.setRepliedIds(studentList);
-                    search.setClassIds(classList);
                 }
             }
 

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

@@ -212,12 +212,6 @@
                 #{repliedIds}
             </foreach>
         </if>
-        <if test="param.classIds !=null and param.classIds.size>0">
-            AND p.course_id_ IN
-            <foreach collection="param.classIds" item="classIds" open="(" close=")" separator=",">
-                #{classIds}
-            </foreach>
-        </if>
         <if test="param.studentName !=null and param.studentName !=''">
             AND u.username_ LIKE CONCAT('%', #{param.studentName}, '%')
         </if>