岗位申请业务逻辑

This commit is contained in:
2025-12-17 11:05:23 +08:00
parent c1598e19db
commit d2cb77460d
18 changed files with 1042 additions and 46 deletions

View File

@@ -4,8 +4,10 @@ import com.vetti.common.annotation.Log;
import com.vetti.common.core.controller.BaseController;
import com.vetti.common.core.domain.R;
import com.vetti.common.core.page.TableDataInfo;
import com.vetti.common.core.page.TableWebDataInfo;
import com.vetti.common.enums.BusinessType;
import com.vetti.hotake.domain.HotakeInitScreQuestionsReplyRecordInfo;
import com.vetti.hotake.domain.vo.HotakeInitScreQuestionsReplyRecordInfoVo;
import com.vetti.hotake.service.IHotakeInitScreQuestionsReplyRecordInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@@ -33,11 +35,11 @@ public class HotakeInitScreQuestionsReplyRecordInfoController extends BaseContro
*/
@ApiOperation("查询初步筛选问题回答记录信息列表")
@GetMapping("/getPageList")
public TableDataInfo pageList(HotakeInitScreQuestionsReplyRecordInfo hotakeInitScreQuestionsReplyRecordInfo)
public TableWebDataInfo pageList(HotakeInitScreQuestionsReplyRecordInfo hotakeInitScreQuestionsReplyRecordInfo)
{
startPage();
List<HotakeInitScreQuestionsReplyRecordInfo> list = hotakeInitScreQuestionsReplyRecordInfoService.selectHotakeInitScreQuestionsReplyRecordInfoList(hotakeInitScreQuestionsReplyRecordInfo);
return getDataTable(list);
return getWebDataTable(list);
}
/**
@@ -95,4 +97,16 @@ public class HotakeInitScreQuestionsReplyRecordInfoController extends BaseContro
{
return R.ok(hotakeInitScreQuestionsReplyRecordInfoService.deleteHotakeInitScreQuestionsReplyRecordInfoByIds(ids));
}
/**
* 初步筛选问题回答记录信息批量保存
*/
@ApiOperation("初步筛选问题回答记录信息批量保存")
@Log(title = "初步筛选问题回答记录信息批量保存", businessType = BusinessType.INSERT)
@PostMapping("/save")
public R<?> save(@RequestBody HotakeInitScreQuestionsReplyRecordInfoVo initScreQuestionsReplyRecordInfoVo)
{
return R.ok(hotakeInitScreQuestionsReplyRecordInfoService.saveHotakeInitScreQuestionsReplyRecordInfo(initScreQuestionsReplyRecordInfoVo));
}
}

View File

@@ -0,0 +1,96 @@
package com.vetti.web.controller.hotake;
import com.vetti.common.annotation.Log;
import com.vetti.common.core.controller.BaseController;
import com.vetti.common.core.domain.R;
import com.vetti.common.core.page.TableWebDataInfo;
import com.vetti.common.enums.BusinessType;
import com.vetti.hotake.domain.HotakeRolesApplyInfo;
import com.vetti.hotake.service.IHotakeRolesApplyInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 候选人岗位申请信息Controller
*
* @author wangxiangshun
* @date 2025-12-17
*/
@Api(tags ="候选人岗位申请信息")
@RestController
@RequestMapping("/hotake/rolesApplyInfo")
public class HotakeRolesApplyInfoController extends BaseController
{
@Autowired
private IHotakeRolesApplyInfoService hotakeRolesApplyInfoService;
/**
* 查询候选人岗位申请信息列表
*/
@ApiOperation("查询候选人岗位申请信息列表")
@GetMapping("/getPageList")
public TableWebDataInfo<HotakeRolesApplyInfo> pageList(HotakeRolesApplyInfo hotakeRolesApplyInfo)
{
startPage();
List<HotakeRolesApplyInfo> list = hotakeRolesApplyInfoService.selectHotakeRolesApplyInfoList(hotakeRolesApplyInfo);
return getWebDataTable(list);
}
/**
* 查询候选人岗位申请信息列表
*/
@ApiOperation("查询候选人岗位申请信息列表(无分页)")
@GetMapping("/getList")
public R<List<HotakeRolesApplyInfo>> list(HotakeRolesApplyInfo hotakeRolesApplyInfo)
{
List<HotakeRolesApplyInfo> list = hotakeRolesApplyInfoService.selectHotakeRolesApplyInfoList(hotakeRolesApplyInfo);
return R.ok(list,"");
}
/**
* 获取候选人岗位申请信息详细信息
*/
@ApiOperation("获取候选人岗位申请信息详细信息")
@GetMapping(value = "/{id}")
public R<HotakeRolesApplyInfo> getInfo(@PathVariable("id") Long id)
{
return R.ok(hotakeRolesApplyInfoService.selectHotakeRolesApplyInfoById(id),"");
}
/**
* 新增候选人岗位申请信息
*/
@ApiOperation("新增候选人岗位申请信息")
@Log(title = "候选人岗位申请信息", businessType = BusinessType.INSERT)
@PostMapping
public R<HotakeRolesApplyInfo> add(@RequestBody HotakeRolesApplyInfo hotakeRolesApplyInfo)
{
return R.ok(hotakeRolesApplyInfoService.insertHotakeRolesApplyInfo(hotakeRolesApplyInfo));
}
/**
* 修改候选人岗位申请信息
*/
@ApiOperation("修改候选人岗位申请信息")
@Log(title = "候选人岗位申请信息", businessType = BusinessType.UPDATE)
@PutMapping
public R<HotakeRolesApplyInfo> edit(@RequestBody HotakeRolesApplyInfo hotakeRolesApplyInfo)
{
return R.ok(hotakeRolesApplyInfoService.updateHotakeRolesApplyInfo(hotakeRolesApplyInfo));
}
/**
* 删除候选人岗位申请信息
*/
@ApiOperation("删除候选人岗位申请信息")
@Log(title = "候选人岗位申请信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public R<?> remove(@PathVariable Long[] ids)
{
return R.ok(hotakeRolesApplyInfoService.deleteHotakeRolesApplyInfoByIds(ids));
}
}

View File

@@ -61,7 +61,7 @@ public class HotakeRolesInfoController extends BaseController
/**
* 查询岗位信息列表
*/
@ApiOperation("查询岗位信息列表")
@ApiOperation("查询岗位信息列表(首页)")
@GetMapping("/home/getPageList")
public TableWebDataInfo<HotakeRolesInfo> listHomePage(HotakeRolesInfo hotakeRolesInfo)
{
@@ -73,7 +73,7 @@ public class HotakeRolesInfoController extends BaseController
/**
* 查询岗位信息列表(无分页)
*/
@ApiOperation("查询岗位信息列表(无分页)")
@ApiOperation("查询岗位信息列表(无分页-首页)")
@GetMapping("/home/getList")
public R<List<HotakeRolesInfo>> listHome(HotakeRolesInfo hotakeRolesInfo)
{

View File

@@ -3,6 +3,7 @@ package com.vetti.web.controller.system;
import cn.hutool.core.collection.CollectionUtil;
import com.vetti.common.core.controller.BaseController;
import com.vetti.common.core.domain.AjaxResult;
import com.vetti.common.core.domain.R;
import com.vetti.common.core.domain.entity.SysUser;
import com.vetti.common.exception.ServiceException;
import com.vetti.common.service.verification.VerificationService;
@@ -61,13 +62,14 @@ public class VerificationController extends BaseController {
/**
* 验证邮箱验证码
*/
@ApiOperation("验证邮箱验证码")
@PostMapping("/email/verify")
public AjaxResult verifyCode(@RequestParam String email, @RequestParam String code) {
public R<?> verifyCode(@RequestParam String email, @RequestParam String code) {
boolean isValid = verificationEmailService.verifyCode(email, code);
if (isValid) {
return AjaxResult.success(MessageUtils.messageCustomize("systemVerificationEmailController10003"));
return R.ok(MessageUtils.messageCustomize("systemVerificationEmailController10003"));
} else {
return AjaxResult.error(MessageUtils.messageCustomize("systemVerificationEmailController10004"));
return R.fail(MessageUtils.messageCustomize("systemVerificationEmailController10004"));
}
}