fix(warehouse): 支持全部往来单位类型筛选

This commit is contained in:
2026-08-03 15:29:17 +08:00
parent fe5e3de9b1
commit 8f5201112d
2 changed files with 23 additions and 2 deletions
@@ -23,8 +23,9 @@ public final class MasterDataQueries {
@Min(1) @Max(200) long size,
@Schema(description = "编码、名称、联系人或联系电话关键字", example = "示例客户")
@Size(max = 128) String keyword,
@Schema(description = "往来单位类型", allowableValues = {"CUSTOMER", "SUPPLIER", "BOTH"})
@Pattern(regexp = "^(CUSTOMER|SUPPLIER|BOTH)$") String type,
@Schema(description = "往来单位类型", allowableValues = {
"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
) {