|
|
@@ -8,6 +8,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import lombok.Data;
|
|
|
import lombok.NoArgsConstructor;
|
|
|
+import org.hibernate.annotations.ColumnDefault;
|
|
|
|
|
|
import javax.persistence.Entity;
|
|
|
import javax.persistence.EnumType;
|
|
|
@@ -28,12 +29,15 @@ public class RiceOperationRecord extends BaseEntity {
|
|
|
private RiceOperationType type;
|
|
|
|
|
|
@ApiModelProperty("数量")
|
|
|
+ @ColumnDefault("0")
|
|
|
private Long amount=0L;
|
|
|
|
|
|
@ApiModelProperty("操作前的数量")
|
|
|
+ @ColumnDefault("0")
|
|
|
private Long beforeAmount=0L;
|
|
|
|
|
|
@ApiModelProperty("操作后的数量")
|
|
|
+ @ColumnDefault("0")
|
|
|
private Long afterAmount=0L;
|
|
|
|
|
|
public Long getAfterAmount() {
|