|
|
@@ -21,6 +21,7 @@ import com.fs.erp.dto.ErpOrderQueryRequert;
|
|
|
import com.fs.erp.dto.ErpOrderQueryResponse;
|
|
|
import com.fs.erp.service.IErpOrderService;
|
|
|
import com.fs.erp.utils.ErpContextHolder;
|
|
|
+import com.fs.express.FsStoreDeliversService;
|
|
|
import com.fs.live.domain.LiveOrder;
|
|
|
import com.fs.live.domain.LiveOrderItem;
|
|
|
import com.fs.live.domain.LiveOrderLogs;
|
|
|
@@ -33,6 +34,7 @@ import com.fs.live.service.ILiveOrderService;
|
|
|
import com.fs.live.vo.LiveGoodsVo;
|
|
|
import com.fs.live.vo.LiveOrderPaymentVo;
|
|
|
import com.fs.live.vo.LiveOrderVo;
|
|
|
+import com.fs.store.domain.FsStoreDelivers;
|
|
|
import com.fs.store.domain.FsStoreOrder;
|
|
|
import com.fs.store.domain.FsStoreOrderStatus;
|
|
|
import com.fs.store.domain.FsUser;
|
|
|
@@ -101,6 +103,8 @@ public class LiveOrderController extends BaseController
|
|
|
// @Qualifier("wdtErpOrderServiceImpl")
|
|
|
// private IErpOrderService wdtOrderService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private FsStoreDeliversService fsStoreDeliversService;
|
|
|
/**
|
|
|
* 查询订单列表
|
|
|
*/
|
|
|
@@ -427,6 +431,30 @@ public class LiveOrderController extends BaseController
|
|
|
return liveOrderService.finishOrder(param.getOrderId());
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 修改物流
|
|
|
+ * @param deliveryDTO
|
|
|
+ * @return AjaxResult
|
|
|
+ */
|
|
|
+ @Log(title = "修改物流", businessType = BusinessType.UPDATE)
|
|
|
+ @PreAuthorize("@ss.hasPermi('store:storeOrder:editDeliveryId')")
|
|
|
+ @PutMapping("/editDeliveryId")
|
|
|
+ public AjaxResult editDeliveryId(@RequestBody FsStoreDelivers deliveryDTO) {
|
|
|
+ LiveOrder liveOrder = liveOrderService.selectLiveOrderByOrderId(String.valueOf(deliveryDTO.getOrderId()));
|
|
|
+
|
|
|
+ liveOrder.setDeliverySn(deliveryDTO.getDeliverId());
|
|
|
+ liveOrder.setDeliveryName(deliveryDTO.getDeliverName());
|
|
|
+ liveOrder.setDeliveryCode(deliveryDTO.getDeliverSn());
|
|
|
+ liveOrderService.updateLiveOrder(liveOrder);
|
|
|
+
|
|
|
+
|
|
|
+ fsStoreDeliversService.editDeliveryId(deliveryDTO);
|
|
|
+ fsStoreDeliversService.syncDeliverInfo(deliveryDTO.getOrderId(),deliveryDTO.getType());
|
|
|
+ fsStoreDeliversService.finishOrder(deliveryDTO.getOrderId(),deliveryDTO.getType());
|
|
|
+ return AjaxResult.success();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
@Log(title = "手动推管易", businessType = BusinessType.INSERT)
|
|
|
@ApiOperation("创建ERP订单")
|
|
|
// @PreAuthorize("@ss.hasPermi('store:storeOrder:createErpOrder')")
|