消息数据转换
This commit is contained in:
@@ -82,15 +82,15 @@ public class PrintMqListener {
|
||||
public void otherPrint(String data) {
|
||||
JSONObject jsonObject = JSONObject.parseObject(data);
|
||||
Long shopId = jsonObject.getLong("shopId");
|
||||
Object o = jsonObject.getObject("data", Object.class);
|
||||
String printTypeEnum = jsonObject.getString("printTypeEnum");
|
||||
JSONObject data2 = jsonObject.getJSONObject("data");
|
||||
PrinterHandler.PrintTypeEnum typeEnum = PrinterHandler.PrintTypeEnum.valueOf(printTypeEnum);
|
||||
SysPrintData sysPrintData = new SysPrintData();
|
||||
sysPrintData.setShopId(shopId);
|
||||
sysPrintData.setData(JSONObject.toJSONString(o));
|
||||
sysPrintData.setData(data2.toJSONString());
|
||||
sysPrintData.setType(typeEnum.toString());
|
||||
printDataService.save(sysPrintData);
|
||||
rabbitPublisher.sendOtherPrintLocalMsg(shopId, printTypeEnum, sysPrintData.getId());
|
||||
printConfig.otherHandler(shopId, o, typeEnum);
|
||||
printConfig.otherHandler(shopId, data2, typeEnum);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user