|
|
@@ -96,10 +96,10 @@ public class ClassServiceImpl implements ClassService{
|
|
|
detail.setClazz_id(clazz.getClazz_id());
|
|
|
Integer count = 0;
|
|
|
count = sysClazzMapper.teacherClazz(detail.getSubject_name(),clazz.getClazz_id());
|
|
|
- if(count > 0){
|
|
|
- throw new BizException(BizExceptionCode.REPEAT_SUBJECTS);
|
|
|
- }
|
|
|
if (StringUtils.isEmpty(detail.getTeacher_clazz_id()) || "0".equals(detail.getTeacher_clazz_id().toString())) {
|
|
|
+ if(count > 0){
|
|
|
+ throw new BizException(BizExceptionCode.REPEAT_SUBJECTS);
|
|
|
+ }
|
|
|
insertDetails.add(detail);
|
|
|
} else {
|
|
|
updateDetails.add(detail);
|