fix: 称重商品购物车增加标识
This commit is contained in:
@@ -185,6 +185,9 @@ public class TbCashierCart implements Serializable {
|
|||||||
private String proGroupInfo;
|
private String proGroupInfo;
|
||||||
// 商品类型
|
// 商品类型
|
||||||
private String typeEnum;
|
private String typeEnum;
|
||||||
|
// 是否称重商品
|
||||||
|
private Integer isWeight;
|
||||||
|
|
||||||
|
|
||||||
public void copy(TbCashierCart source) {
|
public void copy(TbCashierCart source) {
|
||||||
BeanUtil.copyProperties(source, this, CopyOptions.create().setIgnoreNullValue(true));
|
BeanUtil.copyProperties(source, this, CopyOptions.create().setIgnoreNullValue(true));
|
||||||
|
|||||||
@@ -142,6 +142,7 @@ public class TbOrderDetail implements Serializable {
|
|||||||
private Integer isThirdCoupon;
|
private Integer isThirdCoupon;
|
||||||
private Integer isWaitCall;
|
private Integer isWaitCall;
|
||||||
private String proGroupInfo;
|
private String proGroupInfo;
|
||||||
|
private Integer isWeight;
|
||||||
|
|
||||||
public void copy(TbOrderDetail source){
|
public void copy(TbOrderDetail source){
|
||||||
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
|
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
|
||||||
|
|||||||
@@ -638,6 +638,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
|||||||
if (tbShopUnit != null) {
|
if (tbShopUnit != null) {
|
||||||
tbCashierCart.setUnit(tbShopUnit.getName());
|
tbCashierCart.setUnit(tbShopUnit.getName());
|
||||||
}
|
}
|
||||||
|
tbCashierCart.setIsWeight("weigh".equals(product.getType()) ? 1 : 0);
|
||||||
tbCashierCart.setTypeEnum(product.getTypeEnum());
|
tbCashierCart.setTypeEnum(product.getTypeEnum());
|
||||||
tbCashierCart.setUseType(shopEatTypeInfoDTO.getUseType());
|
tbCashierCart.setUseType(shopEatTypeInfoDTO.getUseType());
|
||||||
tbCashierCart.setCoverImg(product.getCoverImg());
|
tbCashierCart.setCoverImg(product.getCoverImg());
|
||||||
@@ -1699,6 +1700,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
|||||||
orderDetail.setProductId(Integer.valueOf(cashierCart.getProductId()));
|
orderDetail.setProductId(Integer.valueOf(cashierCart.getProductId()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
orderDetail.setIsWeight(cashierCart.getIsWeight());
|
||||||
orderDetail.setProGroupInfo(cashierCart.getProGroupInfo());
|
orderDetail.setProGroupInfo(cashierCart.getProGroupInfo());
|
||||||
orderDetail.setDiscountSaleAmount(cashierCart.getDiscountSaleAmount());
|
orderDetail.setDiscountSaleAmount(cashierCart.getDiscountSaleAmount());
|
||||||
orderDetail.setIsWaitCall(cashierCart.getIsWaitCall());
|
orderDetail.setIsWaitCall(cashierCart.getIsWaitCall());
|
||||||
|
|||||||
Reference in New Issue
Block a user