package com.ruoyi.jarvis.service;

import java.util.Map;

import com.ruoyi.jarvis.domain.JDOrder;
import com.ruoyi.jarvis.domain.dto.QuickRecordModelShopOption;

import java.util.List;

/**
 * 型号与店铺前缀拆分、归一化及历史数据迁移。
 */
public interface IJDOrderModelShopService {

    List<QuickRecordModelShopOption> loadShopOptions();

    void normalizeOrder(JDOrder order);

    String fullModel(JDOrder order);

    String lookupModelBase(String rawModel);

    /** 一键迁移：将 model_number 末尾匹配的店铺前缀写入 model_shop 并从 model_number 截掉 */
    Map<String, Object> migrateExistingOrders();
}
