This commit is contained in:
2026-08-21 11:43:03 +08:00
parent dceec6cbed
commit 5fd00d3151
25 changed files with 507 additions and 44 deletions
@@ -22,8 +22,14 @@ public final class PalletRequests {
@NotNull @DecimalMin("0.00") BigDecimal unitPrice,
@NotBlank String status,
Long locationId,
@Size(max = 500) String remark
@Size(max = 500) String remark,
@Size(max = 128) String fbaWarehouseCode
) {
public SaveRequest(String palletCode, String palletType, BigDecimal capacityCbm,
BigDecimal unitPrice, String status, Long locationId, String remark) {
this(palletCode, palletType, capacityCbm, unitPrice, status, locationId, remark, null);
}
public SaveRequest {
if (capacityCbm == null) capacityCbm = DEFAULT_CAPACITY;
}