新增 字段

This commit is contained in:
furongxin 2024-06-28 16:54:16 +08:00
parent 66437771ae
commit 264a1350e8
2 changed files with 6 additions and 4 deletions

View File

@ -14,6 +14,7 @@ import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.annotation.security.PermitAll;
import javax.validation.Valid;
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
@ -33,13 +34,12 @@ public class BpmOAEntryController {
@Resource
private BpmOAEntryService entryService;
@Resource
private FileApi fileApi;
@PostMapping("/create")
@Operation(summary = "创建请求申请")
@PermitAll
public CommonResult<Long> createEntry(@Valid @RequestBody BpmOAEntryCreateReqVO createReqVO) {
return success(entryService.createEntry(getLoginUserId(), createReqVO));

View File

@ -25,8 +25,7 @@ public class BpmOAEntryCreateReqVO {
@NotNull(message = "发起人的用户编号不能为空")
private Long userId;
@Schema(description = "发起人的部门编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "9099")
@NotNull(message = "发起人的部门编号不能为空")
@Schema(description = "发起人的部门编号", example = "9099")
private Long deptId;
@Schema(description = "新入职用户编号", example = "6311")
@ -35,6 +34,9 @@ public class BpmOAEntryCreateReqVO {
@Schema(description = "新入职用户部门编号", example = "10237")
private Long entryDeptId;
@Schema(description = "新入职用户岗位编号", example = "10237")
private Long entryPostId;
@Schema(description = "用户昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
@NotEmpty(message = "用户昵称不能为空")
private String nickname;