|
|
|
@ -79,6 +79,11 @@ public class InviteServieImpl extends ServiceImpl<InviteMapper, Invite> implemen
|
|
|
|
|
* */
|
|
|
|
|
@Override
|
|
|
|
|
public int addInvite(InviteVo vo) {
|
|
|
|
|
/*判断目录名是否为空*/
|
|
|
|
|
if (vo.getInviteName().isEmpty())
|
|
|
|
|
{
|
|
|
|
|
throw new ServiceException("400","就业名不能为空");
|
|
|
|
|
}
|
|
|
|
|
//查询就业名称是否已经存在
|
|
|
|
|
int count = inviteMapper.selectByName(vo.getInviteName());
|
|
|
|
|
if (count>0)
|
|
|
|
@ -102,7 +107,7 @@ public class InviteServieImpl extends ServiceImpl<InviteMapper, Invite> implemen
|
|
|
|
|
return insert;
|
|
|
|
|
}else
|
|
|
|
|
{
|
|
|
|
|
throw new ServiceException("400","添加下载失败");
|
|
|
|
|
throw new ServiceException("400","添加就业失败");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|