订单加急小票打印
This commit is contained in:
@@ -384,7 +384,7 @@ public interface PrinterImpl {
|
||||
* @return 元数据
|
||||
*/
|
||||
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();
|
||||
StringBuilder builder = new StringBuilder();
|
||||
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>");
|
||||
}
|
||||
}
|
||||
if (isUrgent) {
|
||||
builder.append(getFormatLabel("【加急】", signLabelInfo.center, signLabelInfo.bold))
|
||||
.append(signLabelInfo.br);
|
||||
}
|
||||
builder.append(getFormatLabel("UP_ORDER_DETAIL:" + orderDetailId, signLabelInfo.center, signLabelInfo.qr))
|
||||
.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());
|
||||
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, "下单失败 购物车为空");
|
||||
processOrderDetails(orderDetails, param.getLimitRate());
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
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_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
|
||||
<foreach collection="orderDetails" item="entity" separator=",">
|
||||
(#{orderId}, #{entity.shopId}, #{entity.productId}, #{entity.productImg}, #{entity.productName},
|
||||
@@ -19,7 +19,7 @@
|
||||
#{entity.couponNum}, #{entity.isTimeDiscount}, #{entity.returnNum}, #{entity.refundNum}, #{entity.refundNo},
|
||||
#{entity.discountSaleNote}, #{entity.status}, #{entity.placeNum}, #{entity.isTemporary}, #{entity.isPrint},
|
||||
#{entity.isWaitCall}, #{entity.proGroupInfo}, #{entity.remark}, #{entity.refundRemark},
|
||||
now(), now())
|
||||
now(), now(), #{isUrgent}, #{subStatus})
|
||||
</foreach>
|
||||
</insert>
|
||||
<select id="getOrderDetailPrint" resultType="com.czg.order.vo.OrderDetailPrintVo">
|
||||
|
||||
Reference in New Issue
Block a user