fix(phase4): enforce customer and pallet versions
This commit is contained in:
+10
-2
@@ -23,11 +23,19 @@ public final class PalletRequests {
|
||||
@NotBlank String status,
|
||||
Long locationId,
|
||||
@Size(max = 500) String remark,
|
||||
@Size(max = 128) String fbaWarehouseCode
|
||||
@Size(max = 128) String fbaWarehouseCode,
|
||||
@Min(0) Integer version
|
||||
) {
|
||||
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);
|
||||
this(palletCode, palletType, capacityCbm, unitPrice, status, locationId, remark, null, null);
|
||||
}
|
||||
|
||||
public SaveRequest(String palletCode, String palletType, BigDecimal capacityCbm,
|
||||
BigDecimal unitPrice, String status, Long locationId, String remark,
|
||||
String fbaWarehouseCode) {
|
||||
this(palletCode, palletType, capacityCbm, unitPrice, status, locationId, remark,
|
||||
fbaWarehouseCode, null);
|
||||
}
|
||||
|
||||
public SaveRequest {
|
||||
|
||||
Reference in New Issue
Block a user