fix: 增加面厨打

This commit is contained in:
张松 2024-11-28 14:27:15 +08:00
parent 04473738b7
commit be710b8379
4 changed files with 5 additions and 3 deletions

View File

@ -83,7 +83,7 @@ public class TbCashierCart implements Serializable {
private String unit;
private BigDecimal discountSaleAmount;
private String discountSaleNote;
private Boolean isPrint;
private Integer isPrint;
private String useCouponInfo;
private int isThirdCoupon;

View File

@ -57,6 +57,7 @@ public class TbOrderDetail implements Serializable {
private String useCouponInfo;
private BigDecimal canReturnAmount;
private BigDecimal returnAmount;
private Integer isPrint;
}

View File

@ -26,5 +26,5 @@ public class CartVo {
private String masterId;
private String tableId;
private Integer orderId;
private Boolean isPrint;
private Integer isPrint;
}

View File

@ -216,7 +216,7 @@ public class OrderService {
@Transactional(rollbackFor = Exception.class)
public Result createCart(String masterId, Integer productId, Integer shopId, Integer skuId, BigDecimal number,
String userId, String clientType, Integer cartId, String isGift, String isPack, String uuid, String type, String tableId, Boolean isPrint) {
String userId, String clientType, Integer cartId, String isGift, String isPack, String uuid, String type, String tableId, Integer isPrint) {
if (number == null) {
return Result.fail(CodeEnum.PARAM);
}
@ -934,6 +934,7 @@ public class OrderService {
saleAmount = saleAmount.add(shopInfo.getTableFee());
}
orderDetail.setIsPrint(cashierCart.getIsPrint());
orderDetail.setMemberPrice(cashierCart.getMemberPrice());
orderDetail.setCreateTime(new Date());
orderDetail.setNum(cashierCart.getNumber());