|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package com.sztzjy.financial_bigdata.controller.stu;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.IdUtil;
|
|
|
|
|
import org.apache.commons.lang3.StringEscapeUtils;
|
|
|
|
|
import com.sztzjy.financial_bigdata.annotation.AnonymousAccess;
|
|
|
|
|
import com.sztzjy.financial_bigdata.entity.StuTrainingExample;
|
|
|
|
|
import com.sztzjy.financial_bigdata.entity.StuTrainingWithBLOBs;
|
|
|
|
@ -114,13 +115,14 @@ public class StuKnowledgeNote {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@AnonymousAccess
|
|
|
|
|
@ApiOperation("知识概要-保存")
|
|
|
|
|
@ApiOperation("知识概要-保存和修改")
|
|
|
|
|
@PostMapping("saveSysKnowledgeSummary")
|
|
|
|
|
public ResultEntity<String> saveSysKnowledgeSummary(@ApiParam("ID必传") @RequestBody SysKnowledgeSummary sysKnowledgeSummary) {
|
|
|
|
|
if (StringUtils.isNotBlank(sysKnowledgeSummary.getChapterId())) {
|
|
|
|
|
if (StringUtils.isBlank(sysKnowledgeSummary.getChapterId())) {
|
|
|
|
|
return new ResultEntity<>(HttpStatus.BAD_REQUEST, "ID不能为空!");
|
|
|
|
|
}
|
|
|
|
|
SysKnowledgeSummary sysKnowledgeSummary1 = sysKnowledgeSummaryMapper.selectByPrimaryKey(sysKnowledgeSummary.getChapterId());
|
|
|
|
|
|
|
|
|
|
if (sysKnowledgeSummary1 == null) { //为空 保存
|
|
|
|
|
sysKnowledgeSummaryMapper.insert(sysKnowledgeSummary);
|
|
|
|
|
return new ResultEntity<>(HttpStatus.OK, "保存成功!");
|
|
|
|
|