Commit 38789c2d authored by luzhuang's avatar luzhuang

报名培训

parent 5a483c9f
......@@ -22,4 +22,6 @@ public class ChapterDTO {
@ApiModelProperty(value = "等级,1:章 2:节")
private Byte chapterLevel;
private String isTest;
}
......@@ -181,6 +181,7 @@ public class BChapterServiceImpl implements BChapterService {
model.setChapterName(chapterDTO.getChapterName());
model.setPid(chapterDTO.getPid());
model.setChapterLevel(chapterDTO.getChapterLevel());
model.setIsTest(chapterDTO.getIsTest());
// if ("2".equals(dto.getType())||"4".equals(dto.getType())){
// mtCotactApiRequestClient.fileChange(dto);
......@@ -219,6 +220,7 @@ public class BChapterServiceImpl implements BChapterService {
bFile.setLessonId(model.getLessonId());
UserUtil.setCurrentPersistOperation(bFile);
//新建节数据插入到chapter表
chapterDTO.setIsTest(dto.getType());
line = bChapterRepository.insertSelective(model);
//先判断该课程的第一章的第一节是否是本节 更新blesson表中course_time字段
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment