暂存提交
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package com.baiyue.firstleg.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.Max;
|
||||
import jakarta.validation.constraints.Min;
|
||||
import jakarta.validation.constraints.Size;
|
||||
import jakarta.validation.constraints.Pattern;
|
||||
|
||||
/** 头程履约任务分页查询条件。 */
|
||||
@Schema(name = "FulfillmentTaskQuery", description = "头程履约任务分页查询条件")
|
||||
public record FulfillmentTaskQuery(
|
||||
@Schema(description = "订单号关键字") @Size(max = 64) String keyword,
|
||||
@Schema(description = "任务状态")
|
||||
@Size(max = 24) @Pattern(regexp = "PENDING_ASSIGNMENT|ASSIGNED|PROCESSING|COMPLETED|CANCELLED") String status,
|
||||
@Schema(description = "负责人用户ID") Long assigneeId,
|
||||
@Schema(description = "页码", defaultValue = "1") @Min(1) long page,
|
||||
@Schema(description = "每页条数", defaultValue = "20") @Min(1) @Max(200) long size
|
||||
) {
|
||||
public FulfillmentTaskQuery {
|
||||
if (page == 0) {
|
||||
page = 1;
|
||||
}
|
||||
if (size == 0) {
|
||||
size = 20;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user