Browse Source

1、出差接口调整

dongpo 1 year ago
parent
commit
d93c35b890

+ 10 - 9
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/oa/business/vo/OaBusinessSaveReqVO.java

@@ -10,40 +10,41 @@ import java.math.BigDecimal;
 @Data
 @Data
 public class OaBusinessSaveReqVO {
 public class OaBusinessSaveReqVO {
 
 
-    @Schema(description = "出差表单主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
+    @Schema(description = "出差表单主键")
     private Long id;
     private Long id;
 
 
-    @Schema(description = "出差人id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
+    @Schema(description = "出差人id")
     @NotNull(message = "出差人id不能为空")
     @NotNull(message = "出差人id不能为空")
     private Long employeeId;
     private Long employeeId;
 
 
-    @Schema(description = "出差事由", requiredMode = Schema.RequiredMode.REQUIRED, example = "不香")
+    @Schema(description = "出差事由")
     @NotBlank(message = "出差事由不能为空")
     @NotBlank(message = "出差事由不能为空")
     private String reason;
     private String reason;
 
 
-    @Schema(description = "出差目的地", requiredMode = Schema.RequiredMode.REQUIRED)
+    @Schema(description = "出差目的地")
     @NotBlank(message = "出差目的地不能为空")
     @NotBlank(message = "出差目的地不能为空")
     private String destination;
     private String destination;
 
 
-    @Schema(description = "出差开始日期", requiredMode = Schema.RequiredMode.REQUIRED)
+    @Schema(description = "出差开始日期")
     @NotBlank(message = "出差开始日期不能为空")
     @NotBlank(message = "出差开始日期不能为空")
     private String startDate;
     private String startDate;
 
 
-    @Schema(description = "出差结束日期", requiredMode = Schema.RequiredMode.REQUIRED)
+    @Schema(description = "出差结束日期")
     @NotBlank(message = "出差结束日期不能为空")
     @NotBlank(message = "出差结束日期不能为空")
     private String endDate;
     private String endDate;
 
 
     @Schema(description = "出差天数(d)")
     @Schema(description = "出差天数(d)")
+    @NotBlank(message = "出差天数(d)不能为空")
     private String day;
     private String day;
 
 
-    @Schema(description = "出差预算费用,单位(元)", requiredMode = Schema.RequiredMode.REQUIRED)
+    @Schema(description = "出差预算费用,单位(元)")
     @NotNull(message = "出差预算费用,单位(元)不能为空")
     @NotNull(message = "出差预算费用,单位(元)不能为空")
     private BigDecimal estimatedCost;
     private BigDecimal estimatedCost;
 
 
-    @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED)
+    @Schema(description = "备注")
     private String remarks;
     private String remarks;
 
 
-    @Schema(description = "发起人选择的审批人", requiredMode = Schema.RequiredMode.REQUIRED)
+    @Schema(description = "发起人选择的审批人", example = "[100,1]")
     @NotEmpty(message = "发起人选择的审批人不能为空")
     @NotEmpty(message = "发起人选择的审批人不能为空")
     private List<Long> startUserSelectAssignees;
     private List<Long> startUserSelectAssignees;