package com.ruoyi.jarvis.service; import com.alibaba.fastjson2.JSONObject; import com.ruoyi.jarvis.domain.ErpGoofishOrder; import java.util.List; public interface IErpGoofishOrderService { void publishOrProcessNotify(String appid, Long timestamp, JSONObject body); /** * MQ 消费者或线程池:写库、拉详情、关联京东单、同步运单、尝试发货 */ void asyncPipelineAfterNotify(String appid, JSONObject notifyBody); List selectList(ErpGoofishOrder query); ErpGoofishOrder selectById(Long id); int pullOrdersForAppKey(String appKey, int lookbackHours); int pullAllEnabled(int lookbackHours); void refreshDetail(Long id); void retryShip(Long id); int syncWaybillAndTryShipBatch(int limit); void applyListOrNotifyItem(String appKey, JSONObject item, String lastNotifyJson); }