|
@@ -95,6 +95,9 @@ public class SchoolServiceImpl extends ServiceImpl<SchoolDao, SchoolEntity> impl
|
|
|
if (StringUtils.isBlank(domain.getName())) {
|
|
|
throw new StatusException("学校名称不能为空");
|
|
|
}
|
|
|
+ if (domain.getEnable()==null) {
|
|
|
+ throw new StatusException("启用禁用不能为空");
|
|
|
+ }
|
|
|
SchoolEntity ue = null;
|
|
|
if (domain.getId() != null) {
|
|
|
ue = this.getById(domain.getId());
|
|
@@ -107,8 +110,8 @@ public class SchoolServiceImpl extends ServiceImpl<SchoolDao, SchoolEntity> impl
|
|
|
}
|
|
|
ue = new SchoolEntity();
|
|
|
ue.setCode(domain.getCode());
|
|
|
- ue.setEnable(true);
|
|
|
}
|
|
|
+ ue.setEnable(domain.getEnable());
|
|
|
ue.setName(domain.getName());
|
|
|
ue.setContacts(domain.getContacts());
|
|
|
ue.setTelephone(domain.getTelephone());
|