forked from linlinjava/litemall
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
306 additions
and
6 deletions.
There are no files selected for viewing
294 changes: 294 additions & 0 deletions
294
litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallCartData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,294 @@ | ||
package org.linlinjava.litemall.db.domain; | ||
|
||
import java.math.BigDecimal; | ||
import java.time.LocalDateTime; | ||
|
||
/** | ||
* 临时数据传输结构 | ||
* 在原有LitemallCart属性上增加一个库存信息 | ||
* */ | ||
|
||
|
||
public class LitemallCartData { | ||
/** | ||
* This field was generated by MyBatis Generator. | ||
* This field corresponds to the database table litemall_cart | ||
* | ||
* @mbg.generated | ||
*/ | ||
public static final Boolean IS_DELETED = LitemallCart.Deleted.IS_DELETED.value(); | ||
|
||
/** | ||
* This field was generated by MyBatis Generator. | ||
* This field corresponds to the database table litemall_cart | ||
* | ||
* @mbg.generated | ||
*/ | ||
public static final Boolean NOT_DELETED = LitemallCart.Deleted.NOT_DELETED.value(); | ||
|
||
/** | ||
* | ||
* This field was generated by MyBatis Generator. | ||
* This field corresponds to the database column litemall_cart.id | ||
* | ||
* @mbg.generated | ||
*/ | ||
private Integer id; | ||
|
||
/** | ||
* | ||
* This field was generated by MyBatis Generator. | ||
* This field corresponds to the database column litemall_cart.user_id | ||
* | ||
* @mbg.generated | ||
*/ | ||
private Integer userId; | ||
|
||
/** | ||
* | ||
* This field was generated by MyBatis Generator. | ||
* This field corresponds to the database column litemall_cart.goods_id | ||
* | ||
* @mbg.generated | ||
*/ | ||
private Integer goodsId; | ||
|
||
/** | ||
* | ||
* This field was generated by MyBatis Generator. | ||
* This field corresponds to the database column litemall_cart.goods_sn | ||
* | ||
* @mbg.generated | ||
*/ | ||
private String goodsSn; | ||
|
||
/** | ||
* | ||
* This field was generated by MyBatis Generator. | ||
* This field corresponds to the database column litemall_cart.goods_name | ||
* | ||
* @mbg.generated | ||
*/ | ||
private String goodsName; | ||
|
||
/** | ||
* | ||
* This field was generated by MyBatis Generator. | ||
* This field corresponds to the database column litemall_cart.product_id | ||
* | ||
* @mbg.generated | ||
*/ | ||
private Integer productId; | ||
|
||
/** | ||
* | ||
* This field was generated by MyBatis Generator. | ||
* This field corresponds to the database column litemall_cart.price | ||
* | ||
* @mbg.generated | ||
*/ | ||
private BigDecimal price; | ||
|
||
/** | ||
* | ||
* This field was generated by MyBatis Generator. | ||
* This field corresponds to the database column litemall_cart.number | ||
* | ||
* @mbg.generated | ||
*/ | ||
private Short number; | ||
|
||
/** | ||
* | ||
* This field was generated by MyBatis Generator. | ||
* This field corresponds to the database column litemall_cart.specifications | ||
* | ||
* @mbg.generated | ||
*/ | ||
private String[] specifications; | ||
|
||
/** | ||
* | ||
* This field was generated by MyBatis Generator. | ||
* This field corresponds to the database column litemall_cart.checked | ||
* | ||
* @mbg.generated | ||
*/ | ||
private Boolean checked; | ||
|
||
/** | ||
* | ||
* This field was generated by MyBatis Generator. | ||
* This field corresponds to the database column litemall_cart.pic_url | ||
* | ||
* @mbg.generated | ||
*/ | ||
private String picUrl; | ||
|
||
/** | ||
* | ||
* This field was generated by MyBatis Generator. | ||
* This field corresponds to the database column litemall_cart.add_time | ||
* | ||
* @mbg.generated | ||
*/ | ||
private LocalDateTime addTime; | ||
|
||
/** | ||
* | ||
* This field was generated by MyBatis Generator. | ||
* This field corresponds to the database column litemall_cart.update_time | ||
* | ||
* @mbg.generated | ||
*/ | ||
private LocalDateTime updateTime; | ||
|
||
/** | ||
* | ||
* This field was generated by MyBatis Generator. | ||
* This field corresponds to the database column litemall_cart.deleted | ||
* | ||
* @mbg.generated | ||
*/ | ||
private Boolean deleted; | ||
|
||
private Short stock;//库存 | ||
|
||
public LitemallCartData(LitemallCart litemallCart,Short stock) { | ||
this.stock = stock; | ||
this.addTime = litemallCart.getAddTime(); | ||
this.deleted = litemallCart.getDeleted(); | ||
this.id = litemallCart.getId(); | ||
this.number = litemallCart.getNumber(); | ||
this.checked = litemallCart.getChecked(); | ||
this.goodsId = litemallCart.getGoodsId(); | ||
this.goodsName = litemallCart.getGoodsName(); | ||
this.goodsSn = litemallCart.getGoodsSn(); | ||
this.picUrl = litemallCart.getPicUrl(); | ||
this.price = litemallCart.getPrice(); | ||
this.specifications = litemallCart.getSpecifications(); | ||
this.productId = litemallCart.getProductId(); //商品id | ||
this.updateTime = litemallCart.getUpdateTime(); | ||
this.userId = litemallCart.getUserId(); | ||
} | ||
|
||
public Integer getId() { | ||
return id; | ||
} | ||
|
||
public void setId(Integer id) { | ||
this.id = id; | ||
} | ||
|
||
public Integer getUserId() { | ||
return userId; | ||
} | ||
|
||
public void setUserId(Integer userId) { | ||
this.userId = userId; | ||
} | ||
|
||
public Integer getGoodsId() { | ||
return goodsId; | ||
} | ||
|
||
public void setGoodsId(Integer goodsId) { | ||
this.goodsId = goodsId; | ||
} | ||
|
||
public String getGoodsSn() { | ||
return goodsSn; | ||
} | ||
|
||
public void setGoodsSn(String goodsSn) { | ||
this.goodsSn = goodsSn; | ||
} | ||
|
||
public String getGoodsName() { | ||
return goodsName; | ||
} | ||
|
||
public void setGoodsName(String goodsName) { | ||
this.goodsName = goodsName; | ||
} | ||
|
||
public Integer getProductId() { | ||
return productId; | ||
} | ||
|
||
public void setProductId(Integer productId) { | ||
this.productId = productId; | ||
} | ||
|
||
public BigDecimal getPrice() { | ||
return price; | ||
} | ||
|
||
public void setPrice(BigDecimal price) { | ||
this.price = price; | ||
} | ||
|
||
public Short getNumber() { | ||
return number; | ||
} | ||
|
||
public void setNumber(Short number) { | ||
this.number = number; | ||
} | ||
|
||
public String[] getSpecifications() { | ||
return specifications; | ||
} | ||
|
||
public void setSpecifications(String[] specifications) { | ||
this.specifications = specifications; | ||
} | ||
|
||
public Boolean getChecked() { | ||
return checked; | ||
} | ||
|
||
public void setChecked(Boolean checked) { | ||
this.checked = checked; | ||
} | ||
|
||
public String getPicUrl() { | ||
return picUrl; | ||
} | ||
|
||
public void setPicUrl(String picUrl) { | ||
this.picUrl = picUrl; | ||
} | ||
|
||
public LocalDateTime getAddTime() { | ||
return addTime; | ||
} | ||
|
||
public void setAddTime(LocalDateTime addTime) { | ||
this.addTime = addTime; | ||
} | ||
|
||
public LocalDateTime getUpdateTime() { | ||
return updateTime; | ||
} | ||
|
||
public void setUpdateTime(LocalDateTime updateTime) { | ||
this.updateTime = updateTime; | ||
} | ||
|
||
public Boolean getDeleted() { | ||
return deleted; | ||
} | ||
|
||
public void setDeleted(Boolean deleted) { | ||
this.deleted = deleted; | ||
} | ||
|
||
public Short getStock() { | ||
return stock; | ||
} | ||
|
||
public void setStock(Short stock) { | ||
this.stock = stock; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters