|
|
@@ -58,10 +58,7 @@ import com.fs.live.vo.LiveOrderVo;
|
|
|
import com.fs.store.cache.IFsExpressCacheService;
|
|
|
import com.fs.store.domain.*;
|
|
|
import com.fs.store.dto.*;
|
|
|
-import com.fs.store.enums.OrderInfoEnum;
|
|
|
-import com.fs.store.enums.OrderLogEnum;
|
|
|
-import com.fs.store.enums.ShipperCodeEnum;
|
|
|
-import com.fs.store.enums.ShippingTempEnum;
|
|
|
+import com.fs.store.enums.*;
|
|
|
import com.fs.store.mapper.*;
|
|
|
import com.fs.store.param.FsStoreOrderAddTuiMoneyParam;
|
|
|
import com.fs.store.param.LiveOrderComputedParam;
|
|
|
@@ -984,8 +981,12 @@ public class LiveOrderServiceImpl implements ILiveOrderService {
|
|
|
return R.ok();
|
|
|
}
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private LiveAfterSalesLogsMapper liveAfterSalesLogsMapper;
|
|
|
+
|
|
|
@Override
|
|
|
- public R refundOrderMoney(Long orderId, LiveAfterSales liveAfterSales) {
|
|
|
+ @Transactional(rollbackFor = Exception.class,propagation = Propagation.REQUIRED)
|
|
|
+ public R refundOrderMoney(Long orderId, LiveAfterSales liveAfterSales,String operator) {
|
|
|
LiveOrder order = baseMapper.selectLiveOrderByOrderId(String.valueOf(orderId));
|
|
|
if(order.getStatus()==-2){
|
|
|
return R.error("已退款");
|
|
|
@@ -1040,6 +1041,17 @@ public class LiveOrderServiceImpl implements ILiveOrderService {
|
|
|
liveAfterSales.setStatus(4);
|
|
|
liveAfterSales.setSalesStatus(3);
|
|
|
liveAfterSalesMapper.updateLiveAfterSales(liveAfterSales);
|
|
|
+
|
|
|
+
|
|
|
+ LiveAfterSalesLogs storeAfterSalesStatus = new LiveAfterSalesLogs();
|
|
|
+ storeAfterSalesStatus.setStoreAfterSalesId(liveAfterSales.getId());
|
|
|
+ storeAfterSalesStatus.setChangeType(3);
|
|
|
+ storeAfterSalesStatus.setChangeMessage(AfterSalesStatusEnum.STATUS_4.getDesc());
|
|
|
+ storeAfterSalesStatus.setChangeTime(Timestamp.valueOf(LocalDateTime.now()));
|
|
|
+ storeAfterSalesStatus.setOperator(operator);
|
|
|
+ liveAfterSalesLogsMapper.insertLiveAfterSalesLogs(storeAfterSalesStatus);
|
|
|
+
|
|
|
+
|
|
|
return R.ok();
|
|
|
}
|
|
|
|