package com.doumee.service.business; 
 | 
  
 | 
import com.doumee.core.model.PageData; 
 | 
import com.doumee.core.model.PageWrap; 
 | 
import com.doumee.dao.admin.request.UpdateShopSortDTO; 
 | 
import com.doumee.dao.business.model.Shop; 
 | 
import com.doumee.dao.business.vo.ShopTreeVo; 
 | 
import com.doumee.dao.web.reqeust.EditShopDTO; 
 | 
import com.doumee.dao.web.reqeust.ShopQueryByLLDTO; 
 | 
import org.springframework.web.multipart.MultipartFile; 
 | 
  
 | 
import java.util.List; 
 | 
  
 | 
/** 
 | 
 * 志邦组织信息表Service定义 
 | 
 * @author 江蹄蹄 
 | 
 * @date 2024/07/04 14:40 
 | 
 */ 
 | 
public interface ShopService { 
 | 
  
 | 
    /** 
 | 
     * 创建 
 | 
     *  
 | 
     * @param shop 实体对象 
 | 
     * @return Long 
 | 
     */ 
 | 
    Long create(Shop shop); 
 | 
  
 | 
    /** 
 | 
     * 主键删除 
 | 
     * 
 | 
     * @param id 主键 
 | 
     */ 
 | 
    void deleteById(Long id); 
 | 
  
 | 
    /** 
 | 
     * 删除 
 | 
     * 
 | 
     * @param shop 实体对象 
 | 
     */ 
 | 
    void delete(Shop shop); 
 | 
  
 | 
    /** 
 | 
     * 批量主键删除 
 | 
     * 
 | 
     * @param ids 主键集 
 | 
     */ 
 | 
    void deleteByIdInBatch(List<Long> ids); 
 | 
  
 | 
    /** 
 | 
     * 主键更新 
 | 
     * 
 | 
     * @param shop 实体对象 
 | 
     */ 
 | 
    void updateById(Shop shop); 
 | 
  
 | 
    /** 
 | 
     * 批量主键更新 
 | 
     * 
 | 
     * @param shops 实体集 
 | 
     */ 
 | 
    void updateByIdInBatch(List<Shop> shops); 
 | 
  
 | 
    /** 
 | 
     * 主键查询 
 | 
     * 
 | 
     * @param id 主键 
 | 
     * @return Shop 
 | 
     */ 
 | 
    Shop findById(Long id); 
 | 
  
 | 
    /** 
 | 
     * 条件查询单条记录 
 | 
     * 
 | 
     * @param shop 实体对象 
 | 
     * @return Shop 
 | 
     */ 
 | 
    Shop findOne(Shop shop); 
 | 
  
 | 
    /** 
 | 
     * 条件查询 
 | 
     * 
 | 
     * @param shop 实体对象 
 | 
     * @return List<Shop> 
 | 
     */ 
 | 
    List<Shop> findList(Shop shop); 
 | 
   
 | 
    /** 
 | 
     * 分页查询 
 | 
     * 
 | 
     * @param pageWrap 分页对象 
 | 
     * @return PageData<Shop> 
 | 
     */ 
 | 
    PageData<Shop> findPage(PageWrap<Shop> pageWrap); 
 | 
  
 | 
    List<Shop> getUserShopList(Long userId); 
 | 
  
 | 
    /** 
 | 
     * 条件统计 
 | 
     * 
 | 
     * @param shop 实体对象 
 | 
     * @return long 
 | 
     */ 
 | 
    long count(Shop shop); 
 | 
  
 | 
    List<ShopTreeVo> shopTreeCache(Integer type); 
 | 
    List<ShopTreeVo> shopTree(Integer type); 
 | 
    String importFcodeBatch(MultipartFile file); 
 | 
    String importCategoryBatch(MultipartFile file); 
 | 
    void updateSort(UpdateShopSortDTO dto); 
 | 
  
 | 
    String importBatch(MultipartFile file); 
 | 
  
 | 
    void dealShopNamePath(); 
 | 
  
 | 
    List<Shop> listByParent(String parentId); 
 | 
  
 | 
    /** 
 | 
     * 根据经纬度 获取门店列表 
 | 
     * @param pageWrap 
 | 
     * @return 
 | 
     */ 
 | 
    PageData<Shop> queryShopByLL(PageWrap<Shop> pageWrap); 
 | 
  
 | 
    /** 
 | 
     * 门店详情 
 | 
     * @param id 
 | 
     * @return 
 | 
     */ 
 | 
    Shop shopDetail(Long id,Long memberId); 
 | 
  
 | 
    /** 
 | 
     * 修改门店信息 
 | 
     * @param editShopDTO 
 | 
     */ 
 | 
    void updShop(EditShopDTO editShopDTO); 
 | 
  
 | 
  
 | 
} 
 |