puzhibing
2022-08-22 1421f8e9c308c4741cb396309035009393b5b036
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
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;
 
/**
 * <p>
 * 公司信息表 服务类
 * </p>
 *
 * @author 吕雪
 * @since 2020-06-06
 */
public interface ITCompanyService extends IService<TCompany> {
 
    /**
     * 根据条件查询分公司列表
     * @return
     */
    List<Map<String,Object>> getCompanyList(@Param("page") Page<Map<String, Object>> 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<Map<String,Object>> getCompanyScopeById(@Param("id") Integer id);
 
    /**
     * 根据条件查询加盟商列表
     * @return
     */
    List<Map<String,Object>> getFranchiseeList(@Param("page") Page<Map<String, Object>> 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<String, Object> 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;
}