优化
This commit is contained in:
@@ -28,7 +28,16 @@ public final class MasterDataQueries {
|
||||
@Pattern(regexp = "^(CUSTOMER|SUPPLIER|BOTH|CARRIER|CUSTOMS_BROKER|SHIPPER|CONSIGNEE)$") String type,
|
||||
@Schema(description = "状态", allowableValues = {"ACTIVE", "INACTIVE"})
|
||||
@Pattern(regexp = "^(ACTIVE|INACTIVE)$") String status
|
||||
,
|
||||
@Schema(description = "往来单位类型集合(可重复传参)", allowableValues = {
|
||||
"CUSTOMER", "SUPPLIER", "CARRIER", "CUSTOMS_BROKER", "SHIPPER", "CONSIGNEE"})
|
||||
@Size(max = 6) List<@Pattern(regexp = "^(CUSTOMER|SUPPLIER|CARRIER|CUSTOMS_BROKER|SHIPPER|CONSIGNEE)$") String> types
|
||||
) {
|
||||
/** 保持旧版五参数构造契约兼容。 */
|
||||
public PartnerPageQuery(long page, long size, String keyword, String type, String status) {
|
||||
this(page, size, keyword, type, status, null);
|
||||
}
|
||||
|
||||
public PartnerPageQuery {
|
||||
if (page == 0) {
|
||||
page = 1;
|
||||
|
||||
Reference in New Issue
Block a user