mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-25 10:42:59 +08:00
日志
This commit is contained in:
@@ -348,10 +348,12 @@ public class CourseManageApi extends ApiBaseController{
|
||||
//填充必要的信息
|
||||
try {
|
||||
log.info("-------- 标签相关开始 ------- 课程ID = {} " , dto.getCourse().getId());
|
||||
log.info("-------- 课程版本号监控 -------传参中的 Version = {} " , dto.getCourse().getSysVersion());
|
||||
CurrentUser userInfo = getCurrent();
|
||||
Course oldCourse = StringUtils.isBlank(dto.getCourse().getId()) ? null : courseService.get(dto.getCourse().getId());
|
||||
log.info("-------- 标签相关 ------- oldtags = {} " , oldCourse.getTags());
|
||||
if(oldCourse!=null && StringUtils.isNotEmpty(oldCourse.getTags())){
|
||||
log.info("-------- 标签相关 ------- oldtags = {} " , oldCourse.getTags());
|
||||
log.info("-------- 旧课程版本号监控 -------old Version = {} " , oldCourse.getSysVersion());
|
||||
String[] tagArray = oldCourse.getTags().split(",");
|
||||
// 检查每个元素是否为纯数字
|
||||
for (String tag : tagArray) {
|
||||
@@ -374,6 +376,7 @@ public class CourseManageApi extends ApiBaseController{
|
||||
//修改后重置,重新提交审核,重新发布
|
||||
dto.getCourse().setPublished(false);
|
||||
dto.getCourse().setStatus(Course.STATUS_NONE);
|
||||
log.info("-------- 课程版本号监控 -------要保存的 Version = {} " , dto.getCourse().getSysVersion());
|
||||
courseService.update(dto);
|
||||
}
|
||||
String token = request.getHeader("Xboe-Access-Token");
|
||||
|
||||
@@ -1027,6 +1027,7 @@ public class CourseServiceImpl implements ICourseService {
|
||||
}
|
||||
}*/
|
||||
log.info("------ 课程update c = " + c);
|
||||
log.info("------ 课程update c version = " + c.getSysVersion());
|
||||
courseDao.update(c);
|
||||
c.setSysVersion(courseDao.getVersion(c.getId()));
|
||||
full.getCourse().setSysVersion(c.getSysVersion());
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.xboe.module.course.service.impl;
|
||||
|
||||
import com.aspose.slides.p2cbca448.old;
|
||||
import com.xboe.common.OrderCondition;
|
||||
import com.xboe.common.PageList;
|
||||
import com.xboe.core.CurrentUser;
|
||||
@@ -418,12 +419,16 @@ public class CourseTagServiceImpl implements ICourseTagService {
|
||||
List<String> newTagIds = getTagIdsFromCourse(newCourse);
|
||||
log.info(" --- 旧标签 oldTagIds = {} " , oldTagIds);
|
||||
log.info(" --- 新修改 newTagIds = {} " , newTagIds);
|
||||
if (oldCourse == null) {
|
||||
if (oldCourse == null || oldTagIds.isEmpty()) {
|
||||
log.info(" --- 新增课程 - 处理所有新标签 handleNewCourseTags 开始 ---" );
|
||||
// 新增课程 - 处理所有新标签
|
||||
handleNewCourseTags(newCourse, newTagIds, userInfo);
|
||||
log.info(" --- 新增课程 - 处理所有新标签 handleNewCourseTags 结束 ---" );
|
||||
} else {
|
||||
log.info(" --- 编辑课程 - 比较差异并处理 handleNewCourseTags 开始 ---" );
|
||||
// 编辑课程 - 比较差异并处理
|
||||
handleEditCourseTags(oldCourse, newCourse, oldTagIds, newTagIds, userInfo);
|
||||
log.info(" --- 编辑课程 - 比较差异并处理 handleNewCourseTags 结束 ---" );
|
||||
}
|
||||
log.info("完成课程标签更新: courseId={}", newCourse != null ? newCourse.getId() : "null");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user