OrderMaster创建如下(按课程视频),然后test OrderMasterRepository的时候就一直新建报错。
BTW,SQL建表的时候create_time是和课程给的SQL一毛一样的
@Entity
@Data
@DynamicUpdate
public class OrderMaster {
@Id
private String orderId;
private String buyerName;
private String buyerPhone;
private String buyerAddress;
private String buyerOpenid;
private BigDecimal orderAmount;
private Integer orderStatus = OrderStatusEnum.NEW.getCode();
private Integer payStatus = PayStatusEnum.WAIT.getCode();
private Date createTime;
private Date updateTime;
}