|
@@ -130,9 +130,12 @@ public class ResignServiceImpl implements ResignService {
|
|
|
@Transactional
|
|
|
@Override
|
|
|
public void update(ResignPageReqVO vo) {
|
|
|
- validateExists(vo.getId());
|
|
|
+ ResignDO aDo=resignDAO.selectById(vo.getId());
|
|
|
+ if (aDo == null) {
|
|
|
+ throw exception(RESIGN_NOT_EXISTS);
|
|
|
+ }
|
|
|
|
|
|
- ResignApplyDO resignApplyDO = resignApplyService.findByUserId(vo.getUserId());
|
|
|
+ ResignApplyDO resignApplyDO = resignApplyService.findByUserId(aDo.getUserId());
|
|
|
if(resignApplyDO==null){
|
|
|
throw exception(RESIGN_APPLY_FIRST);
|
|
|
}
|