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