fix(warehouse): keep partner query record bindable

This commit is contained in:
2026-08-08 11:51:52 +08:00
parent 7c0f2fc5f5
commit 1a2f598c9a
3 changed files with 6 additions and 12 deletions
@@ -27,17 +27,11 @@ public final class MasterDataQueries {
"CUSTOMER", "SUPPLIER", "BOTH", "CARRIER", "CUSTOMS_BROKER", "SHIPPER", "CONSIGNEE"})
@Pattern(regexp = "^(CUSTOMER|SUPPLIER|BOTH|CARRIER|CUSTOMS_BROKER|SHIPPER|CONSIGNEE)$") String type,
@Schema(description = "状态", allowableValues = {"ACTIVE", "INACTIVE"})
@Pattern(regexp = "^(ACTIVE|INACTIVE)$") String status
,
@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;