@Entity @Table(name="destockings") @Data public class Destocking extends AbstractAuditing { @Id private String id; @NotNull private String client; @NotNull private String country; private String boardSize; private String boardHeight; private Integer boardQuantity; private Date expectedArrivalDate; private Integer packageQuantity; private Integer parcelQuantity; private Double weight; private Date stockOutAt; @Enumerated(EnumType.STRING) private Status status = Status.STOCK_IN; private String comment; @ApiModelProperty(value = "干线费用", readOnly = true) private Double deliveryFee = 0d; }
使用实体类的时候给默认值
最新推荐文章于 2024-05-25 18:27:20 发布