|
|
@@ -28,11 +28,21 @@ public class RiceOperationRecord extends BaseEntity {
|
|
|
private RiceOperationType type;
|
|
|
|
|
|
@ApiModelProperty("数量")
|
|
|
- private Long amount;
|
|
|
+ private Long amount=0L;
|
|
|
|
|
|
@ApiModelProperty("操作前的数量")
|
|
|
- private Long beforeAmount;
|
|
|
+ private Long beforeAmount=0L;
|
|
|
|
|
|
@ApiModelProperty("操作后的数量")
|
|
|
- private Long afterAmount;
|
|
|
+ private Long afterAmount=0L;
|
|
|
+
|
|
|
+ public Long getAfterAmount() {
|
|
|
+ return afterAmount == null ? 0L : afterAmount;
|
|
|
+ }
|
|
|
+ public Long getBeforeAmount() {
|
|
|
+ return beforeAmount == null ? 0L : beforeAmount;
|
|
|
+ }
|
|
|
+ public Long getAmount() {
|
|
|
+ return amount == null ? 0L : amount;
|
|
|
+ }
|
|
|
}
|