|
@@ -1,26 +1,94 @@
|
|
package com.fs.live.service.impl;
|
|
package com.fs.live.service.impl;
|
|
|
|
|
|
|
|
+import java.sql.Timestamp;
|
|
|
|
+import java.time.LocalDateTime;
|
|
|
|
+import java.util.Collections;
|
|
|
|
+import java.util.Date;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
+
|
|
|
|
+import cn.hutool.core.bean.BeanUtil;
|
|
|
|
+import cn.hutool.core.date.DateTime;
|
|
|
|
+import com.fs.common.core.domain.R;
|
|
|
|
+import com.fs.common.exception.CustomException;
|
|
import com.fs.common.utils.DateUtils;
|
|
import com.fs.common.utils.DateUtils;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
|
+import com.fs.common.utils.StringUtils;
|
|
|
|
+import com.fs.core.utils.OrderCodeUtils;
|
|
|
|
+import com.fs.erp.dto.BaseResponse;
|
|
|
|
+import com.fs.erp.dto.ErpRefundUpdateRequest;
|
|
|
|
+import com.fs.erp.service.IErpOrderService;
|
|
|
|
+import com.fs.his.config.FsSysConfig;
|
|
|
|
+import com.fs.his.domain.*;
|
|
|
|
+import com.fs.his.dto.FsStoreAfterSalesProductDTO;
|
|
|
|
+import com.fs.his.enums.FsStoreAfterSalesStatusEnum;
|
|
|
|
+import com.fs.his.enums.FsStoreOrderStatusEnum;
|
|
|
|
+import com.fs.his.service.IFsUserService;
|
|
|
|
+import com.fs.his.utils.ConfigUtil;
|
|
|
|
+import com.fs.his.vo.FsStoreAfterSalesListUVO;
|
|
|
|
+import com.fs.live.domain.*;
|
|
|
|
+import com.fs.live.dto.LiveAfterSalesProductDTO;
|
|
|
|
+import com.fs.live.enums.LiveAfterSalesStatusEnum;
|
|
|
|
+import com.fs.live.mapper.LiveAfterSalesItemMapper;
|
|
|
|
+import com.fs.live.mapper.LiveAfterSalesLogsMapper;
|
|
|
|
+import com.fs.live.mapper.LiveOrderPaymentMapper;
|
|
|
|
+import com.fs.live.param.LiveAfterSalesApplyParam;
|
|
|
|
+import com.fs.live.param.LiveAfterSalesDeliveryParam;
|
|
|
|
+import com.fs.live.param.LiveAfterSalesListUParam;
|
|
|
|
+import com.fs.live.param.LiveAfterSalesRevokeParam;
|
|
|
|
+import com.fs.live.service.ILiveOrderItemService;
|
|
|
|
+import com.fs.live.service.ILiveOrderService;
|
|
|
|
+import com.fs.live.vo.LiveAfterSalesListUVO;
|
|
|
|
+import com.fs.live.vo.LiveOrderItemListUVO;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.beans.factory.annotation.Qualifier;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
import com.fs.live.mapper.LiveAfterSalesMapper;
|
|
import com.fs.live.mapper.LiveAfterSalesMapper;
|
|
-import com.fs.live.domain.LiveAfterSales;
|
|
|
|
import com.fs.live.service.ILiveAfterSalesService;
|
|
import com.fs.live.service.ILiveAfterSalesService;
|
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
|
+import org.springframework.transaction.interceptor.TransactionAspectSupport;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 售后记录Service业务层处理
|
|
* 售后记录Service业务层处理
|
|
- *
|
|
|
|
|
|
+ *
|
|
* @author fs
|
|
* @author fs
|
|
* @date 2025-07-08
|
|
* @date 2025-07-08
|
|
*/
|
|
*/
|
|
@Service
|
|
@Service
|
|
public class LiveAfterSalesServiceImpl extends ServiceImpl<LiveAfterSalesMapper, LiveAfterSales> implements ILiveAfterSalesService {
|
|
public class LiveAfterSalesServiceImpl extends ServiceImpl<LiveAfterSalesMapper, LiveAfterSales> implements ILiveAfterSalesService {
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private ILiveOrderService liveOrderService;
|
|
|
|
+
|
|
|
|
+ @Autowired
|
|
|
|
+ private ILiveOrderItemService liveOrderItemService;
|
|
|
|
+
|
|
|
|
+ @Autowired
|
|
|
|
+ private LiveAfterSalesMapper liveAfterSalesMapper;
|
|
|
|
+
|
|
|
|
+ @Autowired
|
|
|
|
+ private LiveAfterSalesLogsMapper liveAfterSalesLogsMapper;
|
|
|
|
+
|
|
|
|
+ @Autowired
|
|
|
|
+ private LiveAfterSalesItemMapper liveAfterSalesItemMapper;
|
|
|
|
+
|
|
|
|
+ @Autowired
|
|
|
|
+ private ConfigUtil configUtil;
|
|
|
|
+
|
|
|
|
+ @Autowired
|
|
|
|
+ private IFsUserService userService;
|
|
|
|
+
|
|
|
|
+ @Autowired
|
|
|
|
+ private IErpOrderService erpOrderService;
|
|
|
|
+ @Autowired
|
|
|
|
+ @Qualifier("hzOMSErpOrderServiceImpl")
|
|
|
|
+ private IErpOrderService hzOMSerpOrderService;
|
|
|
|
+
|
|
|
|
+ @Autowired
|
|
|
|
+ private LiveOrderPaymentMapper liveOrderPaymentMapper;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 查询售后记录
|
|
* 查询售后记录
|
|
- *
|
|
|
|
|
|
+ *
|
|
* @param id 售后记录主键
|
|
* @param id 售后记录主键
|
|
* @return 售后记录
|
|
* @return 售后记录
|
|
*/
|
|
*/
|
|
@@ -32,7 +100,7 @@ public class LiveAfterSalesServiceImpl extends ServiceImpl<LiveAfterSalesMapper,
|
|
|
|
|
|
/**
|
|
/**
|
|
* 查询售后记录列表
|
|
* 查询售后记录列表
|
|
- *
|
|
|
|
|
|
+ *
|
|
* @param liveAfterSales 售后记录
|
|
* @param liveAfterSales 售后记录
|
|
* @return 售后记录
|
|
* @return 售后记录
|
|
*/
|
|
*/
|
|
@@ -44,7 +112,7 @@ public class LiveAfterSalesServiceImpl extends ServiceImpl<LiveAfterSalesMapper,
|
|
|
|
|
|
/**
|
|
/**
|
|
* 新增售后记录
|
|
* 新增售后记录
|
|
- *
|
|
|
|
|
|
+ *
|
|
* @param liveAfterSales 售后记录
|
|
* @param liveAfterSales 售后记录
|
|
* @return 结果
|
|
* @return 结果
|
|
*/
|
|
*/
|
|
@@ -57,7 +125,7 @@ public class LiveAfterSalesServiceImpl extends ServiceImpl<LiveAfterSalesMapper,
|
|
|
|
|
|
/**
|
|
/**
|
|
* 修改售后记录
|
|
* 修改售后记录
|
|
- *
|
|
|
|
|
|
+ *
|
|
* @param liveAfterSales 售后记录
|
|
* @param liveAfterSales 售后记录
|
|
* @return 结果
|
|
* @return 结果
|
|
*/
|
|
*/
|
|
@@ -69,7 +137,7 @@ public class LiveAfterSalesServiceImpl extends ServiceImpl<LiveAfterSalesMapper,
|
|
|
|
|
|
/**
|
|
/**
|
|
* 批量删除售后记录
|
|
* 批量删除售后记录
|
|
- *
|
|
|
|
|
|
+ *
|
|
* @param ids 需要删除的售后记录主键
|
|
* @param ids 需要删除的售后记录主键
|
|
* @return 结果
|
|
* @return 结果
|
|
*/
|
|
*/
|
|
@@ -81,7 +149,7 @@ public class LiveAfterSalesServiceImpl extends ServiceImpl<LiveAfterSalesMapper,
|
|
|
|
|
|
/**
|
|
/**
|
|
* 删除售后记录信息
|
|
* 删除售后记录信息
|
|
- *
|
|
|
|
|
|
+ *
|
|
* @param id 售后记录主键
|
|
* @param id 售后记录主键
|
|
* @return 结果
|
|
* @return 结果
|
|
*/
|
|
*/
|
|
@@ -90,4 +158,226 @@ public class LiveAfterSalesServiceImpl extends ServiceImpl<LiveAfterSalesMapper,
|
|
{
|
|
{
|
|
return baseMapper.deleteLiveAfterSalesById(id);
|
|
return baseMapper.deleteLiveAfterSalesById(id);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public List<LiveAfterSalesListUVO> selectLiveAfterSalesListUVO(LiveAfterSalesListUParam param) {
|
|
|
|
+ List<LiveAfterSalesListUVO> list = liveAfterSalesMapper.selectLiveAfterSalesListUVO(param);
|
|
|
|
+ for (LiveAfterSalesListUVO vo : list) {
|
|
|
|
+ LiveAfterSalesItem map = new LiveAfterSalesItem();
|
|
|
|
+ map.setAfterSalesId(vo.getId());
|
|
|
|
+ List<LiveAfterSalesItem> items = liveAfterSalesItemMapper.selectLiveAfterSalesItemList(map);
|
|
|
|
+ vo.setItems(items);
|
|
|
|
+ }
|
|
|
|
+ return list;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public R addDelivery(LiveAfterSalesDeliveryParam param) {
|
|
|
|
+ LiveAfterSales storeAfterSales = liveAfterSalesMapper.selectLiveAfterSalesById(param.getId());
|
|
|
|
+ if (storeAfterSales == null) {
|
|
|
|
+ throw new CustomException("未查询到售后订单信息");
|
|
|
|
+ }
|
|
|
|
+ if (!storeAfterSales.getStatus().equals(FsStoreAfterSalesStatusEnum.STATUS_1.getValue())) {
|
|
|
|
+ throw new CustomException("未审核订单不能提交物流信息");
|
|
|
|
+ }
|
|
|
|
+ storeAfterSales.setStatus(2);
|
|
|
|
+ storeAfterSales.setDeliverySn(param.getDeliverySn());
|
|
|
|
+ storeAfterSales.setDeliveryName(param.getDeliveryName());
|
|
|
|
+
|
|
|
|
+ //操作记录
|
|
|
|
+ LiveAfterSalesLogs logs = new LiveAfterSalesLogs();
|
|
|
|
+ logs.setChangeTime(new DateTime());
|
|
|
|
+ logs.setChangeType(2);
|
|
|
|
+ FsUser user = userService.selectFsUserByUserId(storeAfterSales.getUserId());
|
|
|
|
+ logs.setOperator(user.getNickName());
|
|
|
|
+ logs.setStoreAfterSalesId(storeAfterSales.getId());
|
|
|
|
+ logs.setChangeMessage(FsStoreAfterSalesStatusEnum.STATUS_2.getDesc());
|
|
|
|
+ liveAfterSalesLogsMapper.insertLiveAfterSalesLogs(logs);
|
|
|
|
+
|
|
|
|
+ liveAfterSalesMapper.updateLiveAfterSales(storeAfterSales);
|
|
|
|
+ return R.ok();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ @Transactional
|
|
|
|
+ public R applyAfterSales(String uesrId, LiveAfterSalesApplyParam param) {
|
|
|
|
+ LiveOrder order = liveOrderService.selectLiveOrderByOrderId(String.valueOf(param.getOrderId()));
|
|
|
|
+ if (!order.getUserId().equals(uesrId)) {
|
|
|
|
+ throw new CustomException("非法操作");
|
|
|
|
+ }
|
|
|
|
+ if (order.getStatus() == 0) {
|
|
|
|
+ return R.error("未支付订单不能申请售后");
|
|
|
|
+ }
|
|
|
|
+ if (order.getStatus() == FsStoreOrderStatusEnum.STATUS_NE3.getValue()) {
|
|
|
|
+ return R.error("已取消订单不能申请售后");
|
|
|
|
+ }
|
|
|
|
+ if (order.getStatus() == FsStoreOrderStatusEnum.STATUS_NE2.getValue()) {
|
|
|
|
+ return R.error("已退款订单不能申请售后");
|
|
|
|
+ }
|
|
|
|
+ if (order.getStatus() == FsStoreOrderStatusEnum.STATUS_NE1.getValue()) {
|
|
|
|
+ return R.error("已提交申请,等待处理");
|
|
|
|
+ }
|
|
|
|
+ if (Integer.valueOf(order.getPayType()) == 3 && order.getStatus() >= FsStoreOrderStatusEnum.STATUS_3.getValue()) {
|
|
|
|
+ return R.error("货到付款已发货订单,不支持申请售后");
|
|
|
|
+ }
|
|
|
|
+ if (order.getIsAfterSales() == 0) {
|
|
|
|
+ return R.error("此订单已超过售后时间,不能提交售后");
|
|
|
|
+ }
|
|
|
|
+ LiveOrderItem liveOrderItem = new LiveOrderItem();
|
|
|
|
+ liveOrderItem.setOrderId(param.getOrderId());
|
|
|
|
+ List<LiveOrderItem> orderItems = liveOrderItemService.selectLiveOrderItemList(liveOrderItem);
|
|
|
|
+ for (LiveOrderItem item : orderItems) {
|
|
|
|
+ LiveAfterSalesProductDTO prosuctParam = param.getProductList().stream().filter(p -> p.getProductId().equals(item.getProductId())).findFirst().orElse(new LiveAfterSalesProductDTO());
|
|
|
|
+ if (prosuctParam.getProductId() != null) {
|
|
|
|
+// //商品优惠前总金额
|
|
|
|
+// BigDecimal totalAmountOfGoods = NumberUtil.mul(cartInfo.getPrice(), item.getNum());
|
|
|
|
+// //商品优惠总金额
|
|
|
|
+// BigDecimal commodityDiscountAmount = NumberUtil.mul(NumberUtil.div(totalAmountOfGoods, NumberUtil.sub(order.getTotalPrice(), order.getPayPostage())), order.getCouponPrice());
|
|
|
|
+// //商品优惠后总金额
|
|
|
|
+// totalPrice = NumberUtil.add(totalPrice, NumberUtil.sub(totalAmountOfGoods, commodityDiscountAmount));
|
|
|
|
+ item.setIsAfterSales(1);
|
|
|
|
+ LiveOrderItem orderItem = new LiveOrderItem();
|
|
|
|
+ BeanUtil.copyProperties(item, orderItem);
|
|
|
|
+ liveOrderItemService.updateLiveOrderItem(orderItem);
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ //更新订单状态
|
|
|
|
+ Integer orderStatus = order.getStatus();
|
|
|
|
+ order.setStatus(FsStoreOrderStatusEnum.STATUS_NE1.getValue());
|
|
|
|
+ order.setRefundStatus(FsStoreOrderStatusEnum.REFUND_STATUS_1.getValue().toString());
|
|
|
|
+ order.setRefundReason(param.getReasons());
|
|
|
|
+ order.setRefundExplain(param.getExplains());
|
|
|
|
+ order.setRefundTime(new Date());
|
|
|
|
+ liveOrderService.updateLiveOrder(order);
|
|
|
|
+ //生成售后订单
|
|
|
|
+ LiveAfterSales storeAfterSales = new LiveAfterSales();
|
|
|
|
+ storeAfterSales.setOrderId(order.getOrderId());
|
|
|
|
+ storeAfterSales.setStoreId(order.getStoreId());
|
|
|
|
+ storeAfterSales.setDeptId(order.getDeptId());
|
|
|
|
+ storeAfterSales.setRefundAmount(param.getRefundAmount());
|
|
|
|
+ storeAfterSales.setRefundType(param.getRefundType());
|
|
|
|
+ storeAfterSales.setReasons(param.getReasons());
|
|
|
|
+ storeAfterSales.setExplains(param.getExplains());
|
|
|
|
+ storeAfterSales.setExplainImg(param.getExplainImg());
|
|
|
|
+ storeAfterSales.setStatus(FsStoreAfterSalesStatusEnum.STATUS_0.getValue());
|
|
|
|
+ storeAfterSales.setSalesStatus(0);
|
|
|
|
+ storeAfterSales.setCreateTime(Timestamp.valueOf(LocalDateTime.now()));
|
|
|
|
+ storeAfterSales.setIsDel(0);
|
|
|
|
+ storeAfterSales.setUserId(Long.valueOf(uesrId));
|
|
|
|
+ storeAfterSales.setOrderStatus(orderStatus);
|
|
|
|
+ storeAfterSales.setCompanyId(order.getCompanyId());
|
|
|
|
+ storeAfterSales.setCompanyUserId(order.getCompanyUserId());
|
|
|
|
+ liveAfterSalesMapper.insertLiveAfterSales(storeAfterSales);
|
|
|
|
+ //售后商品详情
|
|
|
|
+ for (LiveAfterSalesProductDTO productParam : param.getProductList()) {
|
|
|
|
+ LiveOrderItem item = orderItems.stream().filter(p -> p.getProductId().equals(productParam.getProductId())).findFirst().orElse(new LiveOrderItem());
|
|
|
|
+ LiveAfterSalesItem storeAfterSalesItem = new LiveAfterSalesItem();
|
|
|
|
+ storeAfterSalesItem.setAfterSalesId(storeAfterSales.getId());
|
|
|
|
+ storeAfterSalesItem.setProductId(item.getProductId());
|
|
|
|
+ storeAfterSalesItem.setJsonInfo(item.getJsonInfo());
|
|
|
|
+ storeAfterSalesItem.setIsDel(0);
|
|
|
|
+ liveAfterSalesItemMapper.insertLiveAfterSalesItem(storeAfterSalesItem);
|
|
|
|
+ }
|
|
|
|
+ //操作记录
|
|
|
|
+ LiveAfterSalesLogs logs = new LiveAfterSalesLogs();
|
|
|
|
+ logs.setChangeTime(new DateTime());
|
|
|
|
+ logs.setChangeType(0);
|
|
|
|
+ FsUser user = userService.selectFsUserByUserId(Long.valueOf(order.getUserId()));
|
|
|
|
+ logs.setOperator(user.getNickName());
|
|
|
|
+ logs.setStoreAfterSalesId(storeAfterSales.getId());
|
|
|
|
+ logs.setChangeMessage(LiveAfterSalesStatusEnum.STATUS_0.getDesc());
|
|
|
|
+ liveAfterSalesLogsMapper.insertLiveAfterSalesLogs(logs);
|
|
|
|
+ if (order.getExtendOrderId() != null) {
|
|
|
|
+ ErpRefundUpdateRequest request = new ErpRefundUpdateRequest();
|
|
|
|
+ request.setTid(order.getOrderCode());
|
|
|
|
+ request.setOid(order.getOrderCode());
|
|
|
|
+ request.setRefund_state(1);
|
|
|
|
+ request.setStoreAfterSalesId(storeAfterSales.getId());
|
|
|
|
+ FsSysConfig sysConfig = configUtil.getSysConfig();
|
|
|
|
+ Integer erpType = sysConfig.getErpType();
|
|
|
|
+ BaseResponse response = null;
|
|
|
|
+ if (erpType == 1) {
|
|
|
|
+ response = erpOrderService.refundUpdate(request);
|
|
|
|
+ } else if (erpType == 3) {
|
|
|
|
+ //瀚智
|
|
|
|
+ response = hzOMSerpOrderService.refundUpdate(request);
|
|
|
|
+ }
|
|
|
|
+ if (response.getSuccess()) {
|
|
|
|
+ return R.ok();
|
|
|
|
+ } else {
|
|
|
|
+ TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
|
|
|
|
+ return R.error(response.getErrorDesc());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ //更新OMS
|
|
|
|
+ return R.ok();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public R revoke(String userId, LiveAfterSalesRevokeParam param) {
|
|
|
|
+ LiveAfterSales storeAfterSales = baseMapper.selectLiveAfterSalesById(param.getId());
|
|
|
|
+ if (storeAfterSales == null) {
|
|
|
|
+ throw new CustomException("未查询到售后订单信息");
|
|
|
|
+ }
|
|
|
|
+ if (storeAfterSales.getSalesStatus() != 0) {
|
|
|
|
+ throw new CustomException("非法操作");
|
|
|
|
+ }
|
|
|
|
+ if (storeAfterSales.getStatus().equals(LiveAfterSalesStatusEnum.STATUS_2.getValue()) || storeAfterSales.getStatus().equals(LiveAfterSalesStatusEnum.STATUS_3.getValue()) || storeAfterSales.getStatus().equals(FsStoreAfterSalesStatusEnum.STATUS_4.getValue())) {
|
|
|
|
+ throw new CustomException("已发货退款单不能撤销");
|
|
|
|
+ }
|
|
|
|
+ //只有未发货的可以撤销,
|
|
|
|
+ if (!storeAfterSales.getOrderStatus().equals(FsStoreOrderStatusEnum.STATUS_2.getValue())) {
|
|
|
|
+ throw new CustomException("只有未发货的订单可以撤销售后");
|
|
|
|
+ }
|
|
|
|
+ storeAfterSales.setSalesStatus(1);
|
|
|
|
+ LiveOrder order = liveOrderService.selectLiveOrderByOrderId(String.valueOf(storeAfterSales.getOrderId()));
|
|
|
|
+ order.setStatus(storeAfterSales.getOrderStatus());
|
|
|
|
+ order.setRefundStatus(FsStoreOrderStatusEnum.REFUND_STATUS_0.getValue().toString());
|
|
|
|
+ liveOrderService.updateLiveOrder(order);
|
|
|
|
+ //操作记录
|
|
|
|
+ LiveAfterSalesLogs logs = new LiveAfterSalesLogs();
|
|
|
|
+ logs.setChangeTime(new DateTime());
|
|
|
|
+ logs.setChangeType(5);
|
|
|
|
+ FsUser user = userService.selectFsUserByUserId(Long.valueOf(order.getUserId()));
|
|
|
|
+ logs.setOperator(user.getNickName());
|
|
|
|
+ logs.setStoreAfterSalesId(storeAfterSales.getId());
|
|
|
|
+ logs.setChangeMessage(FsStoreAfterSalesStatusEnum.STATUS_5.getDesc());
|
|
|
|
+ liveAfterSalesLogsMapper.insertLiveAfterSalesLogs(logs);
|
|
|
|
+ if (storeAfterSales.getOrderStatus().equals(FsStoreOrderStatusEnum.STATUS_2.getValue())) {
|
|
|
|
+ if (StringUtils.isNotEmpty(order.getExtendOrderId())) {
|
|
|
|
+ //更新订单code
|
|
|
|
+ String orderSn = OrderCodeUtils.getOrderSn();
|
|
|
|
+ if (StringUtils.isEmpty(orderSn)) {
|
|
|
|
+ return R.error("订单生成失败,请重试");
|
|
|
|
+ }
|
|
|
|
+ LiveOrder orderMap = new LiveOrder();
|
|
|
|
+ orderMap.setOrderId(order.getOrderId());
|
|
|
|
+ orderMap.setOrderCode(orderSn);
|
|
|
|
+ liveOrderService.updateLiveOrder(orderMap);
|
|
|
|
+ //生成新的订单
|
|
|
|
+
|
|
|
|
+ List<LiveOrderPayment> payments = liveOrderPaymentMapper.selectLiveOrderPaymentByPay(2, order.getOrderId());
|
|
|
|
+ for (LiveOrderPayment payment : payments) {
|
|
|
|
+ LiveOrderPayment livePayment = new LiveOrderPayment();
|
|
|
|
+ livePayment.setPaymentId(payment.getPaymentId());
|
|
|
|
+ livePayment.setBusinessCode(orderSn);
|
|
|
|
+ liveOrderPaymentMapper.updateLiveOrderPayment(livePayment);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ try {
|
|
|
|
+ liveOrderService.pushLiveOrder(order);
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ liveAfterSalesMapper.updateLiveAfterSales(storeAfterSales);
|
|
|
|
+ return R.ok();
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|