From b59f5fa5f5a1e6652feedcaf586db4e07f053cba Mon Sep 17 00:00:00 2001 From: yuanye <418471657@qq.com> Date: Tue, 21 May 2024 16:02:10 +0800 Subject: [PATCH] Changes --- .../main/java/com/hfkj/service/order/OrderCreateService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/service/src/main/java/com/hfkj/service/order/OrderCreateService.java b/service/src/main/java/com/hfkj/service/order/OrderCreateService.java index 734df66..45fc06c 100644 --- a/service/src/main/java/com/hfkj/service/order/OrderCreateService.java +++ b/service/src/main/java/com/hfkj/service/order/OrderCreateService.java @@ -29,6 +29,7 @@ import org.springframework.transaction.annotation.Transactional; import javax.annotation.Resource; import java.math.BigDecimal; +import java.util.Map; /** * 创建订单业务 @@ -158,7 +159,7 @@ public class OrderCreateService { if (goodsSpecs == null) { throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的商品规格"); } - JSONObject object = (JSONObject) orderChild.getBusiness(); + JSONObject object = new JSONObject((Map) orderChild.getBusiness()); orderChild.setMerId(goodsMsg.getMerId()); orderChild.setProductName(goodsMsg.getTitle());