1.排队取号 取消接口修改
This commit is contained in:
@@ -87,7 +87,7 @@ public class PrintMechineConsumer {
|
|||||||
log.info("打印机列表,{}", ArrayUtil.toString(list));
|
log.info("打印机列表,{}", ArrayUtil.toString(list));
|
||||||
log.info("待打印订单信息, {}", orderInfo);
|
log.info("待打印订单信息, {}", orderInfo);
|
||||||
|
|
||||||
list.parallelStream().forEach(tbPrintMachineWithBLOBs->{
|
list.forEach(tbPrintMachineWithBLOBs->{
|
||||||
if (!"network".equals(tbPrintMachineWithBLOBs.getConnectionType())) {
|
if (!"network".equals(tbPrintMachineWithBLOBs.getConnectionType())) {
|
||||||
log.error("非网络打印机:{},{}",tbPrintMachineWithBLOBs.getAddress(),tbPrintMachineWithBLOBs.getConnectionType());
|
log.error("非网络打印机:{},{}",tbPrintMachineWithBLOBs.getAddress(),tbPrintMachineWithBLOBs.getConnectionType());
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
<select id="selectInfoByOpenId"
|
<select id="selectInfoByOpenId"
|
||||||
resultType="com.chaozhanggui.system.cashierservice.entity.vo.CallQueueInfoVO">
|
resultType="com.chaozhanggui.system.cashierservice.entity.vo.CallQueueInfoVO">
|
||||||
SELECT
|
SELECT
|
||||||
d.shop_name, d.logo, d.status as shop_state,
|
d.shop_name, d.logo, d.status as shop_state,
|
||||||
a.call_num,
|
a.call_num,
|
||||||
a.id, -- 用户的排队记录ID
|
a.id, -- 用户的排队记录ID
|
||||||
a.state,
|
a.state,
|
||||||
@@ -46,11 +46,12 @@
|
|||||||
COUNT(c.id) * b.wait_time AS wait_time -- 预计等待时间
|
COUNT(c.id) * b.wait_time AS wait_time -- 预计等待时间
|
||||||
FROM
|
FROM
|
||||||
tb_call_queue a
|
tb_call_queue a
|
||||||
|
left join tb_shop_info d on a.shop_id=d.id
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
tb_call_table b ON a.call_table_id = b.id
|
tb_call_table b ON a.call_table_id = b.id
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
tb_call_queue c ON c.call_table_id = a.call_table_id
|
tb_call_queue c ON c.call_table_id = a.call_table_id
|
||||||
left join tb_shop_info d on a.shop_id=d.id
|
|
||||||
AND c.create_time < a.create_time
|
AND c.create_time < a.create_time
|
||||||
AND c.state IN (0, 1) -- 前面的人
|
AND c.state IN (0, 1) -- 前面的人
|
||||||
WHERE
|
WHERE
|
||||||
|
|||||||
Reference in New Issue
Block a user