瀏覽代碼

Merge branch 'feature/0703' into saas

yuanliang 2 年之前
父節點
當前提交
50257df6bc

+ 3 - 0
mec-biz/src/main/java/com/ym/mec/biz/service/impl/CourseShareServiceImpl.java

@@ -16,6 +16,7 @@ import com.ym.mec.biz.dal.entity.CourseShare;
 import com.ym.mec.biz.dal.entity.Organization;
 import com.ym.mec.biz.dal.entity.Student;
 import com.ym.mec.biz.dal.enums.JoinCourseType;
+import com.ym.mec.biz.dal.enums.StudentMusicGroupStatusEnum;
 import com.ym.mec.biz.dal.page.CourseShareQueryInfo;
 import com.ym.mec.biz.service.CourseShareService;
 import com.ym.mec.biz.service.SysUserService;
@@ -116,6 +117,7 @@ public class CourseShareServiceImpl extends BaseServiceImpl<Integer, CourseShare
         }
         HashMap<String, Object> params = new HashMap<>();
         MapUtil.populateMap(params, courseShareDto);
+        params.put("musicGroupStatusList", Collections.singletonList(StudentMusicGroupStatusEnum.NORMAL.getCode()));
         List<StudentManageListDto> studentList = courseShareDao.selectStudentByParam(params);
         List<Integer> userIdList = studentList.stream()
                 .map(StudentManageListDto::getUserId).distinct().collect(Collectors.toList());
@@ -143,6 +145,7 @@ public class CourseShareServiceImpl extends BaseServiceImpl<Integer, CourseShare
         Map<String, Object> param = new HashMap<>();
         MapUtil.populateMap(param, shareQueryInfo);
         param.put(TENANT_ID, courseSchedule.getTenantId());
+        param.put("musicGroupStatusList", Collections.singletonList(StudentMusicGroupStatusEnum.NORMAL.getCode()));
         Page<StudentManageListDto> pageInfo = PageUtil.getPageInfo(param);
         return PageUtil.pageInfo(courseShareDao.selectStudentByParam(pageInfo, param));
     }

+ 6 - 0
mec-biz/src/main/resources/config/mybatis/CourseShareMapper.xml

@@ -132,6 +132,12 @@
         <if test="param.teamIds != null and param.teamIds.trim() != ''">
             and find_in_set(a.id_ ,#{param.teamIds})
         </if>
+        <if test="param.musicGroupStatusList != null and param.musicGroupStatusList.size() > 0">
+            AND b.music_group_status_ IN
+            <foreach collection="param.musicGroupStatusList" item="item" open="(" close=")" separator=",">
+                #{item}
+            </foreach>
+        </if>
         group by b.user_id_) sr on sr.user_id_ = s.user_id_
         <where>
             <if test="param.tenantId != null ">