初始化

master
liyuxin 2024-08-25 20:57:58 +08:00
parent 73efcde96f
commit d48f75347f
2 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View File

@ -5,6 +5,7 @@ target/
### IntelliJ IDEA ###
.idea/
logs
### Eclipse ###
.apt_generated
.classpath

View File

@ -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())