多个引用导致json序列化错误

This commit is contained in:
2024-09-27 15:59:31 +08:00
parent 6bca177eae
commit 97c525228c

View File

@@ -1,5 +1,6 @@
package com.chaozhanggui.system.cashierservice.service;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.thread.ThreadUtil;
import cn.hutool.core.util.StrUtil;
@@ -371,7 +372,7 @@ public class CartService {
data.put("msg", "成功");
data.put("type", "addcart");
data.put("data", jsonArray);
data.put("seatFee", seatCost);
data.put("seatFee", BeanUtil.copyProperties(seatCost, TbCashierCart.class));
data.put("amount", amount);
data.put("reqData", jsonObject);
PushToAppChannelHandlerAdapter.getInstance().AppSendInfo(JSONObject.toJSONString(data), tableCartKey, "", false);