mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-10 19:36:50 +08:00
课程受众权限日志
This commit is contained in:
@@ -166,15 +166,16 @@ public class StudyCourseApi extends ApiBaseController{
|
||||
if(crowd!=null && crowd) {
|
||||
rs.put("crowds",courseCrowdList);
|
||||
}
|
||||
|
||||
log.error("---------------课程的受众------------ courseCrowdList = " + courseCrowdList);
|
||||
StudyCourse studyCourse = service.findByCourseIdAndAid(course.getId(), aid);
|
||||
|
||||
log.error("--------------------------- studyCourse = " + studyCourse);
|
||||
// 无受众 所有人可看
|
||||
// 此课程是否包含此aid用户
|
||||
// 例外情况判断
|
||||
boolean pass = false;
|
||||
if (!courseCrowdList.isEmpty()) {
|
||||
List<String> audienceList = Arrays.asList(audiences.split(",")); // 此用户所在受众组
|
||||
log.error("---------------参数------------ audienceList = " + audienceList);
|
||||
for (CourseCrowd c : courseCrowdList) {
|
||||
for (String audience :audienceList){
|
||||
if (Objects.isNull(studyCourse) || c.getGroupId().equals(audience)) {
|
||||
|
||||
Reference in New Issue
Block a user