Blame view

fw-valhalla-dao/src/main/java/cn/fw/valhalla/dao/mapper/CustomerMapper.java 2.42 KB
9ad4f1a4   张志伟   :art:
1
2
  package cn.fw.valhalla.dao.mapper;
  
67ad6e9a   张志伟   :art:
3
  import cn.fw.valhalla.domain.db.customer.Customer;
03c1a9b3   张志伟   :sparkles:
4
  import cn.fw.valhalla.domain.dto.CustomerDetailDto;
240a6575   张志伟   :sparkles:
5
  import cn.fw.valhalla.domain.dto.StammkundeAnalyseDTO;
03c1a9b3   张志伟   :sparkles:
6
7
  import cn.fw.valhalla.domain.query.CustomCustomerQuery;
  import cn.fw.valhalla.domain.query.CustomerQueryVO;
240a6575   张志伟   :sparkles:
8
  import cn.fw.valhalla.domain.query.StammkundeAnalyseQueryVO;
03c1a9b3   张志伟   :sparkles:
9
  import cn.fw.valhalla.domain.vo.customer.CustomerListVO;
3bddceac   夏天   查询保有客档案sdk
10
  import cn.fw.valhalla.sdk.param.CusCntReq;
1983befb   张志伟   feat(api): :spark...
11
  import cn.fw.valhalla.sdk.result.BasicsCustomerDTO;
3bddceac   夏天   查询保有客档案sdk
12
  import cn.fw.valhalla.sdk.result.CusCntResult;
9ad4f1a4   张志伟   :art:
13
  import com.baomidou.mybatisplus.core.mapper.BaseMapper;
67ad6e9a   张志伟   :art:
14
  import org.apache.ibatis.annotations.Param;
9ad4f1a4   张志伟   :art:
15
  import org.springframework.stereotype.Repository;
67ad6e9a   张志伟   :art:
16
17
  
  import java.util.List;
9ad4f1a4   张志伟   :art:
18
19
20
21
22
23
24
25
26
  
  /**
   * @author : kurisu
   * @className : CustomerMapper
   * @description : 车辆档案信息
   * @date: 2020-08-11 16:57
   */
  @Repository
  public interface CustomerMapper extends BaseMapper<Customer> {
67ad6e9a   张志伟   :art:
27
28
29
      /**
       * app分页查询
       *
d1659148   张志伟   ✨ 战败池 100%
30
31
       * @param startIndex
       * @param pageSize
67ad6e9a   张志伟   :art:
32
33
34
35
       * @param queryVO
       * @return
       */
      List<CustomerListVO> getAppPageList(@Param("startIndex") Integer startIndex, @Param("pageSize") Integer pageSize, @Param("condition") CustomerQueryVO queryVO);
240a6575   张志伟   :sparkles:
36
37
38
  
      /**
       * 查询指定条件的客户
03c1a9b3   张志伟   :sparkles:
39
       *
240a6575   张志伟   :sparkles:
40
41
42
43
       * @param queryVO
       * @return
       */
      List<StammkundeAnalyseDTO> analyseList(@Param("condition") StammkundeAnalyseQueryVO queryVO);
03c1a9b3   张志伟   :sparkles:
44
45
46
47
48
49
50
51
  
      /**
       * 查询自定义参数的档案信息
       *
       * @param query
       * @return
       */
      List<CustomerDetailDto> queryCustomList(@Param("condition") CustomCustomerQuery query);
1983befb   张志伟   feat(api): :spark...
52
  
1ca0a771   张志伟   新增查询档案数量接口
53
54
55
56
57
58
59
      /**
       * 查询自定义参数的档案数量
       *
       * @param query
       * @return
       */
      Long queryCustomCount(@Param("condition") CustomCustomerQuery query);
1983befb   张志伟   feat(api): :spark...
60
61
62
63
64
65
66
67
68
  
      /**
       * 关键字全匹配查询
       *
       * @param keyword
       * @param groupId
       * @return
       */
      List<BasicsCustomerDTO> queryByKeyword(@Param("keyword") String keyword, @Param("groupId") Long groupId);
3bddceac   夏天   查询保有客档案sdk
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
  
      /**
       * 查询门店保有客数量
       *
       * @param cusCntReq 门店保有客数量
       * @return 门店保有客数据
       */
      List<CusCntResult> queryShopCusCnt(@Param("req") CusCntReq cusCntReq);
  
      /**
       * 查询服务顾问保有客数量
       *
       * @param cusCntReq 服务顾问保有客数量
       * @return 服务顾问保有客数据
       */
      List<CusCntResult> queryAdviserCusCnt(@Param("req") CusCntReq cusCntReq);
  
9ad4f1a4   张志伟   :art:
86
  }