package com.haha.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.haha.entity.ErpShop;

/**
 * ERP 店铺信息服务接口
 */
public interface ErpShopService extends IService<ErpShop> {

    void syncFromErp();

    IPage<ErpShop> listAll(String keyword, Integer boundStatus, Integer bindEnabled, int page, int pageSize);

    void bindDevice(Long deviceId, Long erpShopId);

    void unbindDevice(Long deviceId);

    /** 一键解绑所有设备 */
    int unbindAll();

    java.util.Map<String, Integer> autoBind();

    /** 批量修改允许绑定标识 */
    int batchUpdateBindEnabled(java.util.List<Long> erpShopIds, int bindEnabled);
}
