package com.stylefeng.guns.modular.system.service; import com.baomidou.mybatisplus.plugins.Page; import com.stylefeng.guns.modular.system.model.TCompany; import com.baomidou.mybatisplus.service.IService; import com.stylefeng.guns.modular.system.util.ResultUtil; import org.apache.ibatis.annotations.Param; import org.apache.poi.hssf.usermodel.HSSFWorkbook; import java.util.List; import java.util.Map; /** *

* 公司信息表 服务类 *

* * @author 吕雪 * @since 2020-06-06 */ public interface ITCompanyService extends IService { /** * 根据条件查询分公司列表 * @return */ List> getCompanyList(@Param("page") Page> page, @Param("beginTime") String beginTime, @Param("endTime") String endTime, @Param("name") String name, @Param("principalName") String principalName, @Param("principalPhone") String principalPhone, @Param("adminName") String adminName, @Param("adminPhone") String adminPhone, @Param("serviceStr") String serviceStr, @Param("state") Integer state); /** * 根据公司ID获取公司经营区域 * @param id * @return */ List> getCompanyScopeById(@Param("id") Integer id); /** * 根据条件查询加盟商列表 * @return */ List> getFranchiseeList(@Param("page") Page> page, @Param("beginTime") String beginTime, @Param("endTime") String endTime, @Param("name") String name, @Param("account") String account, @Param("principalName") String principalName, @Param("principalPhone") String principalPhone, @Param("serviceStr") String serviceStr, @Param("state") Integer state, @Param("roleType") Integer roleType, @Param("nowUserId") Integer nowUserId); /** * 根据企业id查询详情 * @param id * @return * @throws Exception */ ResultUtil selectCompanyInfoById(String id) throws Exception; /** * 获取运营汇总数据 * @param type * @param start * @param end * @param companyId * @param offset * @param limit * @return * @throws Exception */ Map queryOperationalData(Integer type, String start, String end, Integer companyId, Integer offset, Integer limit) throws Exception; /** * 下载运营汇总数据 * @param type * @param companyId * @return * @throws Exception */ HSSFWorkbook downloadOperationalData(Integer type, String start, String end, Integer companyId) throws Exception; }