打印机类型
This commit is contained in:
@@ -42,6 +42,5 @@ public class OrderDetailSmallVO implements Serializable {
|
|||||||
private LocalDateTime dishOutTime;
|
private LocalDateTime dishOutTime;
|
||||||
private LocalDateTime foodServeTime;
|
private LocalDateTime foodServeTime;
|
||||||
private Integer isTemporary;
|
private Integer isTemporary;
|
||||||
private String printStatus;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -187,7 +187,7 @@ public class PrintMachineLogServiceImpl extends ServiceImpl<PrintMachineLogMappe
|
|||||||
|
|
||||||
Map<Integer, String> yxxStatusMap = MapUtil.builder(0, "离线(设备上线后自动补打)").put(1, "在线").put(2, "获取失败").put(3, "未激活").put(4, "设备已禁用").build();
|
Map<Integer, String> yxxStatusMap = MapUtil.builder(0, "离线(设备上线后自动补打)").put(1, "在线").put(2, "获取失败").put(3, "未激活").put(4, "设备已禁用").build();
|
||||||
// 云想印
|
// 云想印
|
||||||
if ("云享印".equals(config.getContentType())) {
|
if ("云想印".equals(config.getContentType())) {
|
||||||
cn.hutool.json.JSONObject resp = JSONUtil.parseObj(respJson);
|
cn.hutool.json.JSONObject resp = JSONUtil.parseObj(respJson);
|
||||||
int code = resp.getInt("code");
|
int code = resp.getInt("code");
|
||||||
cn.hutool.json.JSONObject data = resp.getJSONObject("data").getJSONObject("data");
|
cn.hutool.json.JSONObject data = resp.getJSONObject("data").getJSONObject("data");
|
||||||
@@ -240,7 +240,7 @@ public class PrintMachineLogServiceImpl extends ServiceImpl<PrintMachineLogMappe
|
|||||||
super.save(entity);
|
super.save(entity);
|
||||||
|
|
||||||
// 云想印
|
// 云想印
|
||||||
if ("云享印".equals(config.getContentType())) {
|
if ("云想印".equals(config.getContentType())) {
|
||||||
// 延迟3ms,复查打印状态 (用户可以根据设备信息查询到当前设备的在线情况(注:该接口只能提供参考,设备的离线状态是在设备离线3分钟后才会生效))
|
// 延迟3ms,复查打印状态 (用户可以根据设备信息查询到当前设备的在线情况(注:该接口只能提供参考,设备的离线状态是在设备离线3分钟后才会生效))
|
||||||
ThreadUtil.safeSleep(1000 * 5);
|
ThreadUtil.safeSleep(1000 * 5);
|
||||||
String jsonStr = checkPrintStatus(config.getAddress(), entity.getTaskId());
|
String jsonStr = checkPrintStatus(config.getAddress(), entity.getTaskId());
|
||||||
|
|||||||
Reference in New Issue
Block a user