master
胡锐 6 months ago
commit 9ebd72fa74
  1. 3
      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 javax.annotation.Resource;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Map;
/** /**
* 创建订单业务 * 创建订单业务
@ -158,7 +159,7 @@ public class OrderCreateService {
if (goodsSpecs == null) { if (goodsSpecs == null) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的商品规格"); throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的商品规格");
} }
JSONObject object = (JSONObject) orderChild.getBusiness(); JSONObject object = new JSONObject((Map<String, Object>) orderChild.getBusiness());
orderChild.setMerId(goodsMsg.getMerId()); orderChild.setMerId(goodsMsg.getMerId());
orderChild.setProductName(goodsMsg.getTitle()); orderChild.setProductName(goodsMsg.getTitle());

Loading…
Cancel
Save