|
|
@@ -160,6 +160,11 @@ public class CurriculumServiceImpl implements CurriculumService {
|
|
|
}
|
|
|
}else {
|
|
|
//更新主表
|
|
|
+ //如果班级发生变更
|
|
|
+ String oldClazzId = curriculumMapper.selectMain(main.getId()).getClazzId();
|
|
|
+ if (!main.getClazzId().equals(oldClazzId)){
|
|
|
+ curriculumMapper.updateDetailClazzIdByMainId(Long.parseLong(main.getClazzId()), main.getId());
|
|
|
+ }
|
|
|
curriculumMapper.updateByPrimaryKeySelective(main);
|
|
|
if (!CollectionUtils.isEmpty(items)) {
|
|
|
List<CurriculumDetailDTO> insertList = new ArrayList<CurriculumDetailDTO>();
|