排队叫号打印
This commit is contained in:
@@ -8,6 +8,7 @@ import cn.hutool.extra.qrcode.QrConfig;
|
||||
import com.czg.account.dto.calltable.*;
|
||||
import com.czg.account.entity.*;
|
||||
import com.czg.account.service.*;
|
||||
import com.czg.config.RabbitPublisher;
|
||||
import com.czg.config.RedisCst;
|
||||
import com.czg.exception.ApiNotPrintException;
|
||||
import com.czg.resp.CzgResult;
|
||||
@@ -59,6 +60,8 @@ public class CallTableServiceImpl extends ServiceImpl<CallTableMapper, CallTable
|
||||
private CallConfigService callConfigService;
|
||||
@Resource
|
||||
private CallQueueMapper callQueueMapper;
|
||||
@Resource
|
||||
private RabbitPublisher rabbitPublisher;
|
||||
|
||||
@Override
|
||||
public CallTablePage get(Long shopId, Long callTableId, Integer state) {
|
||||
@@ -215,8 +218,8 @@ public class CallTableServiceImpl extends ServiceImpl<CallTableMapper, CallTable
|
||||
|
||||
callQueueService.save(callQueue);
|
||||
|
||||
// todo 打印排号票信息
|
||||
// rabbitMsgUtils.printCallNumTicket(callQueue.getId(), callQueue.getShopId());
|
||||
// 打印排号票信息
|
||||
rabbitPublisher.printCallNumTicket(callQueue.getId());
|
||||
|
||||
return new CallTableNumDTO().setTableName(callTable.getName()).setTableNote(callTable.getNote())
|
||||
.setCallNum(callQueue.getCallNum());
|
||||
|
||||
Reference in New Issue
Block a user