/** 审核职位招聘 */ public String checkPosts() { this.model = postsService.getEntity(sid); int sta = model.getApprovalStatus(); model.setApprovalStatus(status); postsService.updateEntity(model); model.setApprovalStatus(sta); return "checkPostsAction"; }
/** 用户查询发布的职位 */ public String findMyPostsList() { if (status == 1 || status == -1) { model.setApprovalStatus(status); } this.myPosts = postsService.findMyPostsList(model); return "postsFind"; }
/** 职位详情 */ public String previewPosts() { this.model = postsService.getEntity(sid); if (user != null && jobApplicationService.isExistResume(user.getId(), sid)) { existResume = true; } return "previewPosts"; }
/** 修改职位 */ public String saveOrUpdatePosts() { this.sid = model.getId(); // 保持关联 model.setEnterprise(enterprise); model.setLastDate(new Date()); model.setApprovalStatus(-1); postsService.saveOrUpdateEntity(model); return SUCCESS; }
/** 编辑职位 */ public String editPosts() { this.model = postsService.getEntity(sid); return "postsPage"; }
/** 企业查看发布的职位 */ public String myPosts() { this.myPosts = postsService.findMyPosts(enterprise); return "myPostsListPage"; }
/** 删除职位 */ public String delPosts() { this.model = postsService.getEntity(sid); postsService.deleteEntity(model); return SUCCESS; }