|
@@ -408,10 +408,6 @@ public class SubmitServiceImpl implements SubmitService {
|
|
// 2买家确认
|
|
// 2买家确认
|
|
mainOrder.setConfirmFlag(2);
|
|
mainOrder.setConfirmFlag(2);
|
|
}
|
|
}
|
|
- if (1 == organizeId) {
|
|
|
|
- // 联合丽格订单
|
|
|
|
- mainOrder.setOrderType(3);
|
|
|
|
- }
|
|
|
|
// 抵扣采美豆数量
|
|
// 抵扣采美豆数量
|
|
mainOrder.setUserBeans(orderParamBo.getOffsetBeans());
|
|
mainOrder.setUserBeans(orderParamBo.getOffsetBeans());
|
|
// 默认可以线上支付:0可以 1不可以
|
|
// 默认可以线上支付:0可以 1不可以
|
|
@@ -2191,6 +2187,10 @@ public class SubmitServiceImpl implements SubmitService {
|
|
AtomicReference<Double> shouldPayShopAmount = new AtomicReference<>(0d);
|
|
AtomicReference<Double> shouldPayShopAmount = new AtomicReference<>(0d);
|
|
// 订单商品列表
|
|
// 订单商品列表
|
|
List<OrderProductPo> orderProductList = new ArrayList<>();
|
|
List<OrderProductPo> orderProductList = new ArrayList<>();
|
|
|
|
+ // 能否修改
|
|
|
|
+ AtomicBoolean isOrder = new AtomicBoolean(false);
|
|
|
|
+ // 价格修改异常的商品集合
|
|
|
|
+ List<OrderProductVo> abnormalProductList = new ArrayList<>();
|
|
|
|
|
|
for (OrderProductVo orderProduct : orderProducts) {
|
|
for (OrderProductVo orderProduct : orderProducts) {
|
|
Integer skuId = orderProduct.getSkuId();
|
|
Integer skuId = orderProduct.getSkuId();
|
|
@@ -2218,6 +2218,21 @@ public class SubmitServiceImpl implements SubmitService {
|
|
if (null == product) {
|
|
if (null == product) {
|
|
return ResponseJson.error("订单商品不存在!", null);
|
|
return ResponseJson.error("订单商品不存在!", null);
|
|
}
|
|
}
|
|
|
|
+ // 价格修改限制
|
|
|
|
+ CmOrganizeSkuPo SkuInfo = shipMapper.getOrganizeSkuInfo(skuId, orderProduct.getOrganizeId());
|
|
|
|
+ // 该商品成本计算
|
|
|
|
+ if (null != SkuInfo) {
|
|
|
|
+ // 商品为固定成本
|
|
|
|
+ if ( StringUtils.isNotBlank(SkuInfo.getCostCheckFlag()) && "1".equals(SkuInfo.getCostCheckFlag())) {
|
|
|
|
+ // 系统商城商品的成本之和
|
|
|
|
+ double sysProductPrice = MathUtil.add(SkuInfo.getCostPrice(), MathUtil.add(SkuInfo.getCmCostPrice(), SkuInfo.getOrganizeCostPrice())).doubleValue();
|
|
|
|
+ // 系统商品成本之和小于修改的价格,修改价格异常,不允许下单
|
|
|
|
+ if (MathUtil.compare(sysProductPrice, orderProduct.getPrice()) > 0) {
|
|
|
|
+ isOrder.set(true);
|
|
|
|
+ abnormalProductList.add(orderProduct);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
// 是否添加税费,不含税商品 开票需添加税费
|
|
// 是否添加税费,不含税商品 开票需添加税费
|
|
boolean taxFlag = false;
|
|
boolean taxFlag = false;
|
|
@@ -2403,6 +2418,10 @@ public class SubmitServiceImpl implements SubmitService {
|
|
// 加入订单商品列表
|
|
// 加入订单商品列表
|
|
orderProductList.add(product);
|
|
orderProductList.add(product);
|
|
}
|
|
}
|
|
|
|
+ // 存在不修改商品价格异常商品,不可修改为该价格
|
|
|
|
+ if (isOrder.get()) {
|
|
|
|
+ return ResponseJson.error(-1 , "订单商品价格修改异常", abnormalProductList);
|
|
|
|
+ }
|
|
|
|
|
|
// 佣金 采美应收
|
|
// 佣金 采美应收
|
|
shopOrder.setBrokerage(brokerage.get());
|
|
shopOrder.setBrokerage(brokerage.get());
|
|
@@ -2476,14 +2495,15 @@ public class SubmitServiceImpl implements SubmitService {
|
|
public ResponseJson<Map<String, Object>> shopGenerateOrder(SubmitDto submitDto) {
|
|
public ResponseJson<Map<String, Object>> shopGenerateOrder(SubmitDto submitDto) {
|
|
log.info("submitDto===" + submitDto);
|
|
log.info("submitDto===" + submitDto);
|
|
|
|
|
|
- // 用户组织Id
|
|
|
|
JSONArray orderInfo = null;
|
|
JSONArray orderInfo = null;
|
|
JSONObject payInfo = null;
|
|
JSONObject payInfo = null;
|
|
JSONObject orderInvoice = null;
|
|
JSONObject orderInvoice = null;
|
|
|
|
+ JSONObject addressInfo = null;
|
|
try {
|
|
try {
|
|
orderInfo = parseArray(submitDto.getOrderInfo());
|
|
orderInfo = parseArray(submitDto.getOrderInfo());
|
|
payInfo = parseObject(submitDto.getPayInfo());
|
|
payInfo = parseObject(submitDto.getPayInfo());
|
|
orderInvoice = parseObject(submitDto.getOrderInvoice());
|
|
orderInvoice = parseObject(submitDto.getOrderInvoice());
|
|
|
|
+ addressInfo = parseObject(submitDto.getAddressInfo());
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
log.error("订单参数解析异常try-catch:", e);
|
|
log.error("订单参数解析异常try-catch:", e);
|
|
return ResponseJson.error("订单参数解析异常!", null);
|
|
return ResponseJson.error("订单参数解析异常!", null);
|
|
@@ -2497,6 +2517,9 @@ public class SubmitServiceImpl implements SubmitService {
|
|
if (null == orderInvoice || orderInvoice.isEmpty()) {
|
|
if (null == orderInvoice || orderInvoice.isEmpty()) {
|
|
return ResponseJson.error("发票信息数据异常!", null);
|
|
return ResponseJson.error("发票信息数据异常!", null);
|
|
}
|
|
}
|
|
|
|
+ if (null == addressInfo || addressInfo.isEmpty()) {
|
|
|
|
+ return ResponseJson.error("地址信息数据异常!", null);
|
|
|
|
+ }
|
|
// 打印参数
|
|
// 打印参数
|
|
log.info("******************** 【供应商给机构下单】提交订单参数:" + submitDto);
|
|
log.info("******************** 【供应商给机构下单】提交订单参数:" + submitDto);
|
|
// 机构用户
|
|
// 机构用户
|
|
@@ -2505,6 +2528,8 @@ public class SubmitServiceImpl implements SubmitService {
|
|
orderParamBo.setOrderSource(submitDto.getOrderSource());
|
|
orderParamBo.setOrderSource(submitDto.getOrderSource());
|
|
//订单商品
|
|
//订单商品
|
|
orderParamBo.setOrderInfo(orderInfo);
|
|
orderParamBo.setOrderInfo(orderInfo);
|
|
|
|
+ // 订单地址
|
|
|
|
+ orderParamBo.setAddressInfo(addressInfo);
|
|
//订单应付总额
|
|
//订单应付总额
|
|
String orderShouldPayFee = (String) payInfo.get("orderShouldPayFee");
|
|
String orderShouldPayFee = (String) payInfo.get("orderShouldPayFee");
|
|
orderParamBo.setOrderShouldPayFee(Double.parseDouble(orderShouldPayFee));
|
|
orderParamBo.setOrderShouldPayFee(Double.parseDouble(orderShouldPayFee));
|
|
@@ -2563,18 +2588,9 @@ public class SubmitServiceImpl implements SubmitService {
|
|
}
|
|
}
|
|
orderParamBo.setOrderInvoice(invoice);
|
|
orderParamBo.setOrderInvoice(invoice);
|
|
}
|
|
}
|
|
- // 返佣订单标识 0非返佣订单,1返佣订单,2普通订单含有返佣服务费
|
|
|
|
- Integer rebateFlag = (Integer) payInfo.get("rebateFlag");
|
|
|
|
- // rebateflag=2时,有rebateFee
|
|
|
|
- if (null != rebateFlag && 2 == rebateFlag) {
|
|
|
|
- String re = (String) payInfo.get("rebateFee");
|
|
|
|
- Double rebateFee = Double.parseDouble(re);
|
|
|
|
- orderParamBo.setRebateFee(rebateFee);
|
|
|
|
- }
|
|
|
|
- orderParamBo.setRebateFlag(rebateFlag);
|
|
|
|
|
|
+ orderParamBo.setRebateFlag(0);
|
|
// 售后条款id
|
|
// 售后条款id
|
|
Integer clauseId = (Integer) payInfo.get("clauseId");
|
|
Integer clauseId = (Integer) payInfo.get("clauseId");
|
|
- Integer isColdChina = (Integer) payInfo.get("isColdChina");
|
|
|
|
orderParamBo.setClauseId(clauseId);
|
|
orderParamBo.setClauseId(clauseId);
|
|
// 购买类型:(1自主下单,2直接购买 3协销下单)
|
|
// 购买类型:(1自主下单,2直接购买 3协销下单)
|
|
orderParamBo.setCartType(submitDto.getCartType());
|
|
orderParamBo.setCartType(submitDto.getCartType());
|
|
@@ -2596,7 +2612,6 @@ public class SubmitServiceImpl implements SubmitService {
|
|
orderParamBo.setClubCouponId(submitDto.getClubCouponId());
|
|
orderParamBo.setClubCouponId(submitDto.getClubCouponId());
|
|
orderParamBo.setOrderSeen(submitDto.getOrderSeen());
|
|
orderParamBo.setOrderSeen(submitDto.getOrderSeen());
|
|
orderParamBo.setOrderMiniType(submitDto.getOrderMiniType());
|
|
orderParamBo.setOrderMiniType(submitDto.getOrderMiniType());
|
|
- orderParamBo.setIsColdChain(isColdChina);
|
|
|
|
/*
|
|
/*
|
|
* 保存订单
|
|
* 保存订单
|
|
*/
|
|
*/
|
|
@@ -2638,8 +2653,6 @@ public class SubmitServiceImpl implements SubmitService {
|
|
mainOrder.setOrderSubmitType(3);
|
|
mainOrder.setOrderSubmitType(3);
|
|
// 订单未确认
|
|
// 订单未确认
|
|
mainOrder.setConfirmFlag(0);
|
|
mainOrder.setConfirmFlag(0);
|
|
- // 联合丽格订单
|
|
|
|
- mainOrder.setOrderType(3);
|
|
|
|
// 抵扣采美豆数量
|
|
// 抵扣采美豆数量
|
|
mainOrder.setUserBeans(0);
|
|
mainOrder.setUserBeans(0);
|
|
// 默认可以线上支付:0可以 1不可以
|
|
// 默认可以线上支付:0可以 1不可以
|
|
@@ -2710,9 +2723,7 @@ public class SubmitServiceImpl implements SubmitService {
|
|
|
|
|
|
// 余额抵扣金额
|
|
// 余额抵扣金额
|
|
AtomicReference<Double> balance = new AtomicReference(0);
|
|
AtomicReference<Double> balance = new AtomicReference(0);
|
|
- if (1 == orderParamBo.getBalancePayFlag()) {
|
|
|
|
- balance.set(orderParamBo.getAbleUserMoney());
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
// 子订单订单列表
|
|
// 子订单订单列表
|
|
List<OrderShopPo> shopOrderList = new ArrayList<>();
|
|
List<OrderShopPo> shopOrderList = new ArrayList<>();
|
|
JSONArray orderInfo = orderParamBo.getOrderInfo();
|
|
JSONArray orderInfo = orderParamBo.getOrderInfo();
|
|
@@ -2790,7 +2801,9 @@ public class SubmitServiceImpl implements SubmitService {
|
|
Integer productNum = (Integer) productTemp.get("productNum");
|
|
Integer productNum = (Integer) productTemp.get("productNum");
|
|
Integer presentNum = (Integer) productTemp.get("presentNum");
|
|
Integer presentNum = (Integer) productTemp.get("presentNum");
|
|
Integer productType = (Integer) productTemp.get("productType");
|
|
Integer productType = (Integer) productTemp.get("productType");
|
|
- Double price = (Double) productTemp.get("price");
|
|
|
|
|
|
+ // 转换价格格式
|
|
|
|
+ String rate = productTemp.get("price").toString();
|
|
|
|
+ Double price = Double.parseDouble(rate);
|
|
productType = (null == productType) ? 0 : productType;
|
|
productType = (null == productType) ? 0 : productType;
|
|
if (null == skuId) {
|
|
if (null == skuId) {
|
|
return ResponseJson.error("订单商品数据异常!", null);
|
|
return ResponseJson.error("订单商品数据异常!", null);
|
|
@@ -2798,6 +2811,9 @@ public class SubmitServiceImpl implements SubmitService {
|
|
if (null == productNum || productNum == 0) {
|
|
if (null == productNum || productNum == 0) {
|
|
return ResponseJson.error("商品购买数量异常!", null);
|
|
return ResponseJson.error("商品购买数量异常!", null);
|
|
}
|
|
}
|
|
|
|
+ if (null == price) {
|
|
|
|
+ return ResponseJson.error("商品购买!", null);
|
|
|
|
+ }
|
|
// 统计商品总数量
|
|
// 统计商品总数量
|
|
productCount.updateAndGet(v -> v + productNum);
|
|
productCount.updateAndGet(v -> v + productNum);
|
|
// 赠品数
|
|
// 赠品数
|
|
@@ -2812,10 +2828,6 @@ public class SubmitServiceImpl implements SubmitService {
|
|
return ResponseJson.error("订单商品不存在!", null);
|
|
return ResponseJson.error("订单商品不存在!", null);
|
|
}
|
|
}
|
|
|
|
|
|
- // 是否二手商品
|
|
|
|
- if (null != product.getProductCategory() && 2 == product.getProductCategory()) {
|
|
|
|
- secondHandOrderFlag = true;
|
|
|
|
- }
|
|
|
|
// 是否添加税费,不含税商品 开票需添加税费
|
|
// 是否添加税费,不含税商品 开票需添加税费
|
|
boolean taxFlag = (Integer.valueOf(0).equals(product.getIncludedTax()) && (Integer.valueOf(1).equals(product.getInvoiceType()) || Integer.valueOf(2).equals(product.getInvoiceType())));
|
|
boolean taxFlag = (Integer.valueOf(0).equals(product.getIncludedTax()) && (Integer.valueOf(1).equals(product.getInvoiceType()) || Integer.valueOf(2).equals(product.getInvoiceType())));
|
|
|
|
|
|
@@ -3117,6 +3129,9 @@ public class SubmitServiceImpl implements SubmitService {
|
|
// 实际支付金额(商品金额+运费-余额抵扣)
|
|
// 实际支付金额(商品金额+运费-余额抵扣)
|
|
mainOrder.setPayableAmount(payableAmount.get());
|
|
mainOrder.setPayableAmount(payableAmount.get());
|
|
|
|
|
|
|
|
+ log.info("payTotalFee.get()=------=-=-====" + payTotalFee.get());
|
|
|
|
+ // 真实支付金额赋值为订单总额
|
|
|
|
+ payableAmount.set(payTotalFee.get());
|
|
// 是否返佣订单
|
|
// 是否返佣订单
|
|
Integer rebateFlag = (null == orderParamBo.getRebateFlag() ? 0 : orderParamBo.getRebateFlag());
|
|
Integer rebateFlag = (null == orderParamBo.getRebateFlag() ? 0 : orderParamBo.getRebateFlag());
|
|
mainOrder.setRebateFlag(rebateFlag);
|
|
mainOrder.setRebateFlag(rebateFlag);
|
|
@@ -3148,14 +3163,14 @@ public class SubmitServiceImpl implements SubmitService {
|
|
}
|
|
}
|
|
// 设置组织Id
|
|
// 设置组织Id
|
|
mainOrder.setOrganizeId(organizeId);
|
|
mainOrder.setOrganizeId(organizeId);
|
|
- if (null == mainOrder.getUserId()) {
|
|
|
|
|
|
+ /*if (null == mainOrder.getUserId()) {
|
|
// 设置手动回滚事务
|
|
// 设置手动回滚事务
|
|
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
|
|
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
|
|
return ResponseJson.error("用户Id为空!", null);
|
|
return ResponseJson.error("用户Id为空!", null);
|
|
}
|
|
}
|
|
// 根据用户 Id 查询机构 Id
|
|
// 根据用户 Id 查询机构 Id
|
|
Integer clubId = submitMapper.getClubId(mainOrder.getUserId());
|
|
Integer clubId = submitMapper.getClubId(mainOrder.getUserId());
|
|
- mainOrder.setClubId(clubId);
|
|
|
|
|
|
+ mainOrder.setClubId(clubId);*/
|
|
|
|
|
|
/**
|
|
/**
|
|
* 保存主订单数据,返回订单Id
|
|
* 保存主订单数据,返回订单Id
|
|
@@ -3265,11 +3280,9 @@ public class SubmitServiceImpl implements SubmitService {
|
|
// 设置组织Id
|
|
// 设置组织Id
|
|
shopOrder.setOrganizeId(organizeId);
|
|
shopOrder.setOrganizeId(organizeId);
|
|
// 分帐号
|
|
// 分帐号
|
|
- if (0 != organizeId) {
|
|
|
|
- // 联合丽格
|
|
|
|
- shopOrder.setRealPay(shopOrder.getNeedPayAmount());
|
|
|
|
- }
|
|
|
|
- shopOrder.setClubId(clubId);
|
|
|
|
|
|
+ // 联合丽格
|
|
|
|
+ shopOrder.setRealPay(shopOrder.getNeedPayAmount());
|
|
|
|
+ // shopOrder.setClubId(clubId);
|
|
/*
|
|
/*
|
|
* 保存子订单
|
|
* 保存子订单
|
|
*/
|
|
*/
|
|
@@ -3335,13 +3348,6 @@ public class SubmitServiceImpl implements SubmitService {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- /*
|
|
|
|
- * 机构用户 写入价格库
|
|
|
|
- */
|
|
|
|
- if (3 != orderParamBo.getCartType() && 1 != orderProduct.getSvipPriceFlag() && 0 == organizeId) {
|
|
|
|
- // 写入复购价格库
|
|
|
|
- productService.savePurchasePrice(mainOrder, orderProduct, secondHandOrderFlag, "【提交订单】");
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -3362,51 +3368,51 @@ public class SubmitServiceImpl implements SubmitService {
|
|
Integer onlinePayFlag = onlinePay.get() ? 0 : 1;
|
|
Integer onlinePayFlag = onlinePay.get() ? 0 : 1;
|
|
// 组织 是否线上判定
|
|
// 组织 是否线上判定
|
|
boolean item = true;
|
|
boolean item = true;
|
|
- if (0 != organizeId) {
|
|
|
|
- // 子订单分帐号
|
|
|
|
- for (OrderShopPo shopOrder : shopOrderList) {
|
|
|
|
- if (StringUtils.isEmpty(shopOrder.getSplitCode()) || StringUtils.isBlank(shopOrder.getSplitCode())) {
|
|
|
|
- item = false;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- if (item) {
|
|
|
|
- onlinePayFlag = 0;
|
|
|
|
- } else {
|
|
|
|
- onlinePayFlag = 1;
|
|
|
|
|
|
+ // 子订单分帐号
|
|
|
|
+ for (OrderShopPo shopOrder : shopOrderList) {
|
|
|
|
+ if (StringUtils.isEmpty(shopOrder.getSplitCode()) || StringUtils.isBlank(shopOrder.getSplitCode())) {
|
|
|
|
+ item = false;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ if (item) {
|
|
|
|
+ onlinePayFlag = 0;
|
|
|
|
+ } else {
|
|
|
|
+ onlinePayFlag = 1;
|
|
|
|
+ }
|
|
submitMapper.updateOnlinePayFlag(onlinePayFlag, mainOrder.getOrderId());
|
|
submitMapper.updateOnlinePayFlag(onlinePayFlag, mainOrder.getOrderId());
|
|
// 更新子订单线上支付
|
|
// 更新子订单线上支付
|
|
- if (0 != organizeId && item) {
|
|
|
|
|
|
+ if (item) {
|
|
String onlinePayWays = "1,2,3,4,5";
|
|
String onlinePayWays = "1,2,3,4,5";
|
|
submitMapper.updateOnlinePayWays(onlinePayWays, mainOrder.getOrderId());
|
|
submitMapper.updateOnlinePayWays(onlinePayWays, mainOrder.getOrderId());
|
|
}
|
|
}
|
|
/*
|
|
/*
|
|
* todo 保存 订单收货用户信息 下单时没有用户信息
|
|
* todo 保存 订单收货用户信息 下单时没有用户信息
|
|
*/
|
|
*/
|
|
- AddressVo address = submitMapper.getAddressDetailById(orderParamBo.getAddressId());
|
|
|
|
- if (null != address) {
|
|
|
|
- String userName = baseMapper.getUserNameByUserId(mainOrder.getUserId());
|
|
|
|
|
|
+ JSONObject addressinfo = orderParamBo.getAddressInfo();
|
|
|
|
+ try {
|
|
|
|
+ // 获取地址信息
|
|
|
|
+ Integer provinceId = (Integer) addressinfo.get("provinceId");
|
|
|
|
+ Integer cityId = (Integer) addressinfo.get("cityId");
|
|
|
|
+ Integer townId = (Integer) addressinfo.get("townId");
|
|
|
|
+ AddressVo address = submitMapper.getAddressById(provinceId, cityId, townId);
|
|
//保存地址信息
|
|
//保存地址信息
|
|
OrderUserInfoPo userInfo = new OrderUserInfoPo();
|
|
OrderUserInfoPo userInfo = new OrderUserInfoPo();
|
|
userInfo.setOrderId(mainOrder.getOrderId());
|
|
userInfo.setOrderId(mainOrder.getOrderId());
|
|
- userInfo.setClubId(mainOrder.getClubId());
|
|
|
|
- userInfo.setUserId(mainOrder.getUserId());
|
|
|
|
- userInfo.setName(userName);
|
|
|
|
- userInfo.setReceiver(address.getReceiver());
|
|
|
|
- userInfo.setMobile(address.getMobile());
|
|
|
|
- userInfo.setTownId(address.getTownId());
|
|
|
|
|
|
+ userInfo.setReceiver((String) addressinfo.get("receiver"));
|
|
|
|
+ userInfo.setMobile((String) addressinfo.get("mobile"));
|
|
|
|
+ userInfo.setTownId(townId);
|
|
userInfo.setProvince(address.getProvince());
|
|
userInfo.setProvince(address.getProvince());
|
|
userInfo.setCity(address.getCity());
|
|
userInfo.setCity(address.getCity());
|
|
userInfo.setTown(address.getTown());
|
|
userInfo.setTown(address.getTown());
|
|
- userInfo.setAddress(address.getAddress());
|
|
|
|
|
|
+ userInfo.setAddress((String) addressinfo.get("address"));
|
|
// 保存 订单收货用户信息
|
|
// 保存 订单收货用户信息
|
|
submitMapper.insertOrderUserInfo(userInfo);
|
|
submitMapper.insertOrderUserInfo(userInfo);
|
|
log.info("【提交订单】>>>>>>>>>>>>>>>>>>>>>>>>>>保存订单用户地址(insert[bp_order_userinfo])orderId:" + mainOrder.getOrderId());
|
|
log.info("【提交订单】>>>>>>>>>>>>>>>>>>>>>>>>>>保存订单用户地址(insert[bp_order_userinfo])orderId:" + mainOrder.getOrderId());
|
|
- } else {
|
|
|
|
|
|
+ } catch ( Exception e) {
|
|
|
|
+ e.printStackTrace();
|
|
//设置手动回滚事务
|
|
//设置手动回滚事务
|
|
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
|
|
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
|
|
- return ResponseJson.error("订单地址异常!", null);
|
|
|
|
|
|
+ return ResponseJson.error("订单收货地址数据解析异常", null);
|
|
}
|
|
}
|
|
|
|
|
|
/*
|
|
/*
|
|
@@ -3440,6 +3446,7 @@ public class SubmitServiceImpl implements SubmitService {
|
|
*/
|
|
*/
|
|
Map<String, Object> info = new HashMap<>();
|
|
Map<String, Object> info = new HashMap<>();
|
|
info.put("orderId", mainOrder.getOrderId());
|
|
info.put("orderId", mainOrder.getOrderId());
|
|
|
|
+ info.put("shopOrderId", shopOrderList.get(0).getShopOrderId());
|
|
info.put("orderNo", mainOrder.getOrderNo());
|
|
info.put("orderNo", mainOrder.getOrderNo());
|
|
info.put("orderMark", "#" + mainOrder.getOrderId() + "#");
|
|
info.put("orderMark", "#" + mainOrder.getOrderId() + "#");
|
|
//应付订单金额
|
|
//应付订单金额
|