|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
package com.ibeetl.jlw.service;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
|
|
import cn.jlw.util.ToolUtils;
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
@ -137,13 +138,19 @@ public class TeacherOpenCourseKnowledgePointRelationService extends CoreBaseServ
|
|
|
|
|
* 新增,解绑绑定知识点
|
|
|
|
|
*
|
|
|
|
|
* @param pointRelationQuery true 添加绑定 false 修改绑定
|
|
|
|
|
* @param type 添加实现 2
|
|
|
|
|
* @param type 添加实操 2
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@Transactional
|
|
|
|
|
public JsonResult addBindingKnowledge(TeacherOpenCourseKnowledgePointRelationQuery pointRelationQuery, boolean isBindingKnowledgePoint,int type) {
|
|
|
|
|
|
|
|
|
|
String teacherOpenCourseKnowledgePointIdPlural = Objects.isNull(pointRelationQuery.getTeacherOpenCourseKnowledgePointIdPlural()) ? "" : pointRelationQuery.getTeacherOpenCourseKnowledgePointIdPlural();
|
|
|
|
|
if (ObjectUtil.isEmpty(teacherOpenCourseKnowledgePointIdPlural)){
|
|
|
|
|
JsonResult jsonResult = new JsonResult();
|
|
|
|
|
jsonResult.setCode(JsonReturnCode.SUCCESS.getCode());
|
|
|
|
|
jsonResult.setMsg("获取绑定ID失败");
|
|
|
|
|
return jsonResult;
|
|
|
|
|
}
|
|
|
|
|
String[] knowledgePointIdPlural = teacherOpenCourseKnowledgePointIdPlural.split(",");
|
|
|
|
|
|
|
|
|
|
if (isBindingKnowledgePoint) {
|
|
|
|
|