|
@@ -199,7 +199,9 @@ public class OrganizationServiceImpl extends BaseServiceImpl<Integer, Organizati
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public void del(Integer id) {
|
|
|
Integer count = examOrganizationRelationDao.findByOrganId(id);
|
|
|
+ Organization organization = organDao.get(id);
|
|
|
if(count == null || count == 0){
|
|
|
+ sysUserDao.delEmployeeRole(organization.getUserId());
|
|
|
organDao.delete(id);
|
|
|
}else {
|
|
|
throw new BizException("删除失败:存在考试项目,无法删除");
|