配置一周视频bug修复

This commit is contained in:
GUO 2024-06-19 23:19:43 +08:00
parent 0272bb9a63
commit 77134286e0

View File

@ -93,8 +93,11 @@ public class EducationConfigWeekVideoServiceImpl extends ServiceImpl<EducationCo
@Override @Override
public void saveObj(EducationConfigWeekVideo educationConfigWeekVideo) { public void saveObj(EducationConfigWeekVideo educationConfigWeekVideo) {
EducationConfigWeekVideo v = educationConfigWeekVideoMapper.selectOne(new LambdaQueryWrapper<EducationConfigWeekVideo>() EducationConfigWeekVideo v = educationConfigWeekVideoMapper.selectOne(new LambdaQueryWrapper<EducationConfigWeekVideo>()
.eq(EducationConfigWeekVideo::getProjectSn, educationConfigWeekVideo.getProjectSn())); .eq(EducationConfigWeekVideo::getProjectSn, educationConfigWeekVideo.getProjectSn())
.eq(EducationConfigWeekVideo::getType, educationConfigWeekVideo.getType())
);
if (v != null) { if (v != null) {
educationConfigWeekVideo.setId(v.getId());
edit(educationConfigWeekVideo); edit(educationConfigWeekVideo);
} else { } else {
add(educationConfigWeekVideo); add(educationConfigWeekVideo);