|
|
@ -58,16 +58,12 @@ public class ApiOrderServiceImpl implements ApiOrderService { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor=Exception.class,propagation= Propagation.REQUIRES_NEW) |
|
|
|
|
|
|
|
public ApiOrder createOrder(JSONObject object) throws Exception { |
|
|
|
public ApiOrder createOrder(JSONObject object) throws Exception { |
|
|
|
|
|
|
|
|
|
|
|
ApiOrder apiOrder = new ApiOrder(); |
|
|
|
ApiOrder apiOrder = new ApiOrder(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获取下单内容
|
|
|
|
// 获取下单内容
|
|
|
|
JSONObject dataObject = JSONObject.parseObject(object.getString("content")); |
|
|
|
JSONObject dataObject = JSONObject.parseObject(object.getString("content")); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CreateOrderModel createOrderModel = new CreateOrderModel(); |
|
|
|
CreateOrderModel createOrderModel = new CreateOrderModel(); |
|
|
|
createOrderModel.setChildOrderList(new ArrayList<>()); |
|
|
|
createOrderModel.setChildOrderList(new ArrayList<>()); |
|
|
|
|
|
|
|
|
|
|
|