|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package com.ibeetl.jlw.web;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.lang.Assert;
|
|
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
|
|
import cn.hutool.extra.validation.BeanValidationResult;
|
|
|
|
|
import cn.hutool.extra.validation.ValidationUtil;
|
|
|
|
|
import cn.hutool.json.JSONUtil;
|
|
|
|
@ -135,8 +136,8 @@ public class TeacherOpenCourseChatLogController{
|
|
|
|
|
@PostMapping(API + "/treeList.do")
|
|
|
|
|
public JsonResult<PageQuery> treeList(TeacherOpenCourseChatLogQuery condition, @SCoreUser CoreUser coreUser) {
|
|
|
|
|
PageQuery page = condition.getPageQuery();
|
|
|
|
|
// 只查询顶级的列表
|
|
|
|
|
condition.setTeacherOpenCourseChatLogParentId(0L);
|
|
|
|
|
// 为空则查询顶级
|
|
|
|
|
condition.setTeacherOpenCourseChatLogParentId(ObjectUtil.defaultIfNull(condition.getTeacherOpenCourseChatLogParentId(), 0L));
|
|
|
|
|
teacherOpenCourseChatLogService.queryByCondition(page);
|
|
|
|
|
return JsonResult.success(page);
|
|
|
|
|
}
|
|
|
|
@ -310,5 +311,15 @@ public class TeacherOpenCourseChatLogController{
|
|
|
|
|
return JsonResult.success();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping(MODEL + "/treeList.json")
|
|
|
|
|
@Function("teacherOpenCourseChatLog.query")
|
|
|
|
|
public JsonResult<PageQuery> treeListJson(TeacherOpenCourseChatLogQuery condition, @SCoreUser CoreUser coreUser) {
|
|
|
|
|
PageQuery page = condition.getPageQuery();
|
|
|
|
|
// 为空则查询顶级
|
|
|
|
|
condition.setTeacherOpenCourseChatLogParentId(ObjectUtil.defaultIfNull(condition.getTeacherOpenCourseChatLogParentId(), 0L));
|
|
|
|
|
teacherOpenCourseChatLogService.queryByCondition(page);
|
|
|
|
|
return JsonResult.success(page);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|