完成已报名模块、且修正招工中间表类型

This commit is contained in:
2025-02-21 11:49:51 +08:00
parent a56e12ced2
commit 1fa1862e77
21 changed files with 406 additions and 39 deletions

View File

@ -32,6 +32,7 @@ import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalTime;
import java.util.ArrayList;
@ -317,7 +318,7 @@ public class WgzAppController {
}
/**
* 【首页】【项目详情】 项目详情·申请报名
* 【首页】【项目详情】 项目详情·申请报名(还未校验工种是否匹配工地岗位)
*/
@ApiOperation("【首页】【项目详情】 项目详情·申请报名)")
@PreAuthorize("@ss.hasPermi('wgzApp:user:userApplyForRegistration')")
@ -326,6 +327,45 @@ public class WgzAppController {
return AjaxResult.success(iBgtProjectRecruitApplyService.userApplyForRegistration(id));
}
/**
* 【首页】【已报名项目】 已报名项目
*/
@ApiOperation("【首页】【已报名项目】 已报名项目)")
@PreAuthorize("@ss.hasPermi('wgzApp:user:userRegisteredProject')")
@GetMapping("/WgzAppUserRegisteredProject")
public TableDataInfo<WgzAppRegisteredProjectRes> userRegisteredProject(@Validated WgzAppRegisteredProjectReq req) {
return iBgtProjectRecruitService.userRegisteredProject(req);
}
/**
* 【首页】【已报名项目】 已报名项目·取消报名
*/
@ApiOperation("【首页】【已报名项目】 已报名项目·取消报名)")
@PreAuthorize("@ss.hasPermi('wgzApp:user:userCancelRegistration')")
@DeleteMapping("/WgzAppUserCancelRegistration/{recruitId}")
public AjaxResult<Boolean> userCancelRegistration(@NotEmpty(message = "招工主键不能为空") @PathVariable Long recruitId) {
return AjaxResult.success(iBgtProjectRecruitApplyService.userCancelRegistration(recruitId));
}
/**
* 【首页】【已报名项目】 已报名项目·项目详情
*/
@ApiOperation("【首页】【已报名项目】 已报名项目·项目详情")
@PreAuthorize("@ss.hasPermi('wgzApp:user:userCancelRegistrationProjectDetails')")
@GetMapping("/WgzAppUserCancelRegistrationProjectDetails/{recruitId}")
public AjaxResult<WgzAppCancelRegistrationProjectDetailsRes> userCancelRegistrationProjectDetails(@NotEmpty(message = "招工主键不能为空") @PathVariable Long recruitId) {
return AjaxResult.success(iBgtProjectRecruitService.userCancelRegistrationProjectDetails(recruitId));
}
/**
* 【首页】【项目进行中】 项目进行中(分页,但是理论上这里始终只会有一条数据)
*/
@ApiOperation("【首页】【项目进行中】 项目进行中")
@PreAuthorize("@ss.hasPermi('wgzApp:user:userUnderway')")
@GetMapping("/WgzAppUserUnderway")
public TableDataInfo<WgzAppRegisteredProjectRes> userUnderway(@Validated WgzAppUnderwayReq req) {
return null;
}
/**