mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-09 02:46:50 +08:00
日志调试
This commit is contained in:
@@ -264,15 +264,19 @@ public class CoursePortalApi extends ApiBaseController{
|
|||||||
boolean pass = false;
|
boolean pass = false;
|
||||||
if(!preview) {
|
if(!preview) {
|
||||||
log.debug("=--------- 开始查询受众信息 ---------------------------------");
|
log.debug("=--------- 开始查询受众信息 ---------------------------------");
|
||||||
|
log.error("=--------- 开始查询受众信息 ---------------------------------");
|
||||||
String token = request.getHeader("token");
|
String token = request.getHeader("token");
|
||||||
log.debug("=--------- 获取token token = " + token);
|
log.debug("=--------- 获取token token = " + token);
|
||||||
|
log.error("=--------- 获取token token = " + token);
|
||||||
if (!courseCrowdList.isEmpty()) {
|
if (!courseCrowdList.isEmpty()) {
|
||||||
for (CourseCrowd c : courseCrowdList) {
|
for (CourseCrowd c : courseCrowdList) {
|
||||||
//同一个受众,同一个只会有一条记录,所以这里就直接查询了
|
//同一个受众,同一个只会有一条记录,所以这里就直接查询了
|
||||||
// List<UserGroupItem> hasItem = userGroupService.findByGroupIdAndAid(c.getGroupId(),aid);
|
// List<UserGroupItem> hasItem = userGroupService.findByGroupIdAndAid(c.getGroupId(),aid);
|
||||||
log.debug("=--------- 开始调研用户中心受众接口 groupId = " + c.getGroupId());
|
log.debug("=--------- 开始调研用户中心受众接口 groupId = " + c.getGroupId());
|
||||||
|
log.error("=--------- 开始调研用户中心受众接口 groupId = " + c.getGroupId());
|
||||||
List<AuditList> allAudienceList = thirdApi.getAllAudienceList(AuditListParam.builder().audienceId(c.getGroupId()).pageSize(1000).pageNo(1).build(), token);
|
List<AuditList> allAudienceList = thirdApi.getAllAudienceList(AuditListParam.builder().audienceId(c.getGroupId()).pageSize(1000).pageNo(1).build(), token);
|
||||||
log.debug("=--------- allAudienceList: " +allAudienceList);
|
log.debug("=--------- allAudienceList: " +allAudienceList);
|
||||||
|
log.error("=--------- allAudienceList: " +allAudienceList);
|
||||||
List<Long> userIdList = allAudienceList.stream().map(AuditList::getUserId).collect(Collectors.toList());
|
List<Long> userIdList = allAudienceList.stream().map(AuditList::getUserId).collect(Collectors.toList());
|
||||||
if (userIdList.contains(aid)) {
|
if (userIdList.contains(aid)) {
|
||||||
pass = true;
|
pass = true;
|
||||||
@@ -290,6 +294,7 @@ public class CoursePortalApi extends ApiBaseController{
|
|||||||
}
|
}
|
||||||
|
|
||||||
log.debug("=--------- 是否有权限查看此课程: " +pass);
|
log.debug("=--------- 是否有权限查看此课程: " +pass);
|
||||||
|
log.error("=--------- 是否有权限查看此课程: " +pass);
|
||||||
List<CourseContent> cclist=contentService.getByCourseId(id);
|
List<CourseContent> cclist=contentService.getByCourseId(id);
|
||||||
List<CourseSection> sectionlist=sectionService.getByCourseId(id);
|
List<CourseSection> sectionlist=sectionService.getByCourseId(id);
|
||||||
List<CourseTeacher> teachers=courseService.findTeachersByCourseId(id);
|
List<CourseTeacher> teachers=courseService.findTeachersByCourseId(id);
|
||||||
|
|||||||
@@ -171,6 +171,8 @@ public class StudyCourseApi extends ApiBaseController{
|
|||||||
|
|
||||||
boolean pass = false;
|
boolean pass = false;
|
||||||
if (!courseCrowdList.isEmpty()) {
|
if (!courseCrowdList.isEmpty()) {
|
||||||
|
log.debug("=---studyIndex------ 开始查询受众信息 ---------------------------------");
|
||||||
|
log.error("=----studyIndex----- 开始查询受众信息 ---------------------------------");
|
||||||
String token = request.getHeader("token");
|
String token = request.getHeader("token");
|
||||||
for (CourseCrowd c : courseCrowdList) {
|
for (CourseCrowd c : courseCrowdList) {
|
||||||
//同一个受众,同一个只会有一条记录,所以这里就直接查询了
|
//同一个受众,同一个只会有一条记录,所以这里就直接查询了
|
||||||
|
|||||||
Reference in New Issue
Block a user