订单加急小票打印
This commit is contained in:
@@ -71,6 +71,7 @@ public class OrderDetail implements Serializable {
|
|||||||
* 是否赠送 0否 1是
|
* 是否赠送 0否 1是
|
||||||
*/
|
*/
|
||||||
private Integer isGift;
|
private Integer isGift;
|
||||||
|
private boolean isUrgent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 折扣金额(商品优惠券抵扣金额)
|
* 折扣金额(商品优惠券抵扣金额)
|
||||||
|
|||||||
@@ -384,7 +384,7 @@ public interface PrinterImpl {
|
|||||||
* @return 元数据
|
* @return 元数据
|
||||||
*/
|
*/
|
||||||
default String buildDishPrintData(boolean isReturn, String pickupNumber, String date, String productName, String skuName,
|
default String buildDishPrintData(boolean isReturn, String pickupNumber, String date, String productName, String skuName,
|
||||||
BigDecimal number, String remark, String proGroupInfo, Long orderDetailId) {
|
BigDecimal number, String remark, String proGroupInfo, Long orderDetailId, boolean isUrgent) {
|
||||||
PrintSignLabel signLabelInfo = getSignLabelInfo();
|
PrintSignLabel signLabelInfo = getSignLabelInfo();
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
if (isReturn) {
|
if (isReturn) {
|
||||||
@@ -440,6 +440,10 @@ public interface PrinterImpl {
|
|||||||
// builder.append("<CS:32>(").append(i + 1).append(")").append(proName).append(" x ").append(qty).append("</CS><BR>");
|
// builder.append("<CS:32>(").append(i + 1).append(")").append(proName).append(" x ").append(qty).append("</CS><BR>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (isUrgent) {
|
||||||
|
builder.append(getFormatLabel("【加急】", signLabelInfo.center, signLabelInfo.bold))
|
||||||
|
.append(signLabelInfo.br);
|
||||||
|
}
|
||||||
builder.append(getFormatLabel("UP_ORDER_DETAIL:" + orderDetailId, signLabelInfo.center, signLabelInfo.qr))
|
builder.append(getFormatLabel("UP_ORDER_DETAIL:" + orderDetailId, signLabelInfo.center, signLabelInfo.qr))
|
||||||
.append(signLabelInfo.br);
|
.append(signLabelInfo.br);
|
||||||
builder.append(signLabelInfo.br)
|
builder.append(signLabelInfo.br)
|
||||||
|
|||||||
@@ -291,7 +291,11 @@ public class OrderInfoCustomServiceImpl implements OrderInfoCustomService {
|
|||||||
}
|
}
|
||||||
List<OrderDetail> orderDetails = cartService.getCartByTableCode(shopInfo.getId(), param.getTableCode(), param.getPlaceNum());
|
List<OrderDetail> orderDetails = cartService.getCartByTableCode(shopInfo.getId(), param.getTableCode(), param.getPlaceNum());
|
||||||
if (StrUtil.isNotBlank(param.getSubStatus())) {
|
if (StrUtil.isNotBlank(param.getSubStatus())) {
|
||||||
orderDetails.forEach(item -> item.setSubStatus(param.getSubStatus()));
|
if ("URGENT".equals(param.getSubStatus())) {
|
||||||
|
orderDetails.forEach(item -> item.setUrgent(true));
|
||||||
|
}else {
|
||||||
|
orderDetails.forEach(item -> item.setSubStatus(param.getSubStatus()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
AssertUtil.isListEmpty(orderDetails, "下单失败 购物车为空");
|
AssertUtil.isListEmpty(orderDetails, "下单失败 购物车为空");
|
||||||
processOrderDetails(orderDetails, param.getLimitRate());
|
processOrderDetails(orderDetails, param.getLimitRate());
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
sku_name, price,member_price,discount_sale_amount,unit_price, discount_amount, pack_amount, pay_amount,
|
sku_name, price,member_price,discount_sale_amount,unit_price, discount_amount, pack_amount, pay_amount,
|
||||||
return_amount, num, pack_number, coupon_num, is_time_discount,
|
return_amount, num, pack_number, coupon_num, is_time_discount,
|
||||||
return_num, refund_num, refund_no, discount_sale_note, status, place_num, is_temporary, is_print, is_wait_call,
|
return_num, refund_num, refund_no, discount_sale_note, status, place_num, is_temporary, is_print, is_wait_call,
|
||||||
pro_group_info, remark, refund_remark, create_time, update_time)
|
pro_group_info, remark, refund_remark, create_time, update_time, is_urgent, sub_status)
|
||||||
VALUES
|
VALUES
|
||||||
<foreach collection="orderDetails" item="entity" separator=",">
|
<foreach collection="orderDetails" item="entity" separator=",">
|
||||||
(#{orderId}, #{entity.shopId}, #{entity.productId}, #{entity.productImg}, #{entity.productName},
|
(#{orderId}, #{entity.shopId}, #{entity.productId}, #{entity.productImg}, #{entity.productName},
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
#{entity.couponNum}, #{entity.isTimeDiscount}, #{entity.returnNum}, #{entity.refundNum}, #{entity.refundNo},
|
#{entity.couponNum}, #{entity.isTimeDiscount}, #{entity.returnNum}, #{entity.refundNum}, #{entity.refundNo},
|
||||||
#{entity.discountSaleNote}, #{entity.status}, #{entity.placeNum}, #{entity.isTemporary}, #{entity.isPrint},
|
#{entity.discountSaleNote}, #{entity.status}, #{entity.placeNum}, #{entity.isTemporary}, #{entity.isPrint},
|
||||||
#{entity.isWaitCall}, #{entity.proGroupInfo}, #{entity.remark}, #{entity.refundRemark},
|
#{entity.isWaitCall}, #{entity.proGroupInfo}, #{entity.remark}, #{entity.refundRemark},
|
||||||
now(), now())
|
now(), now(), #{isUrgent}, #{subStatus})
|
||||||
</foreach>
|
</foreach>
|
||||||
</insert>
|
</insert>
|
||||||
<select id="getOrderDetailPrint" resultType="com.czg.order.vo.OrderDetailPrintVo">
|
<select id="getOrderDetailPrint" resultType="com.czg.order.vo.OrderDetailPrintVo">
|
||||||
|
|||||||
Reference in New Issue
Block a user