初始化
parent
73efcde96f
commit
d48f75347f
|
@ -5,6 +5,7 @@ target/
|
|||
|
||||
### IntelliJ IDEA ###
|
||||
.idea/
|
||||
logs
|
||||
### Eclipse ###
|
||||
.apt_generated
|
||||
.classpath
|
||||
|
|
|
@ -31,8 +31,8 @@ public class Product extends BaseEntity {
|
|||
/**
|
||||
* 商品ID
|
||||
*/
|
||||
@TableId(value = "product_id",type = IdType.AUTO)
|
||||
private Long productId;
|
||||
@TableId(value = "id",type = IdType.AUTO)
|
||||
private Long id;
|
||||
/**
|
||||
* 商品名称
|
||||
*/
|
||||
|
@ -90,7 +90,7 @@ public class Product extends BaseEntity {
|
|||
|
||||
return Product
|
||||
.builder()
|
||||
.productId(productId.get())
|
||||
.id(productId.get())
|
||||
.productName(productUpdReq.getProductName())
|
||||
.productPrice(productUpdReq.getProductPrice())
|
||||
.stock(productUpdReq.getStock())
|
||||
|
|
Loading…
Reference in New Issue