Blame view

fw-valhalla-service/src/main/java/cn/fw/valhalla/service/data/CustomerService.java 3.63 KB
9e476657   张志伟   :art:
1
2
  package cn.fw.valhalla.service.data;
  
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
  import cn.fw.valhalla.domain.query.CustomCustomerQuery;
67ad6e9a   张志伟   :art:
7
  import cn.fw.valhalla.domain.query.CustomerQueryVO;
240a6575   张志伟   :sparkles:
8
  import cn.fw.valhalla.domain.query.StammkundeAnalyseQueryVO;
395e025e   张志伟   :art:
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;
395e025e   张志伟   :art:
13
  import com.baomidou.mybatisplus.extension.service.IService;
2b628098   张志伟   🚀 v1.0.1 服务顾问离职分配...
14
15
  import org.springframework.lang.NonNull;
  import org.springframework.lang.Nullable;
1331548a   张志伟   :sparkles:
16
  import org.springframework.transaction.annotation.Transactional;
67ad6e9a   张志伟   :art:
17
18
  
  import java.util.List;
9e476657   张志伟   :art:
19
20
21
22
23
24
25
26
  
  /**
   * @author : kurisu
   * @className : CustomerService
   * @description : 档案
   * @date: 2020-08-12 11:19
   */
  public interface CustomerService extends IService<Customer> {
67ad6e9a   张志伟   :art:
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
  
      /**
       * 分页查询查询
       *
       * @param startIndex
       * @param pageSize
       * @param queryVO
       * @return
       */
      List<CustomerListVO> getAppPageList(Integer startIndex, Integer pageSize, CustomerQueryVO queryVO);
  
      /**
       * 根据id查询
       *
       * @param id
       * @return
       */
      Customer queryById(Long id);
  
      /**
71d72b4c   张志伟   :bug:
47
       * 查询档案需要无效的
240a6575   张志伟   :sparkles:
48
       *
71d72b4c   张志伟   :bug:
49
50
51
52
53
54
       * @param id
       * @return
       */
      Customer queryByIdWithInvalid(Long id);
  
      /**
67ad6e9a   张志伟   :art:
55
56
57
       * 根据车牌号查询档案信息
       *
       * @param plateNo
758162a4   张志伟   :art:
58
       * @param groupId
67ad6e9a   张志伟   :art:
59
60
       * @return
       */
758162a4   张志伟   :art:
61
      Customer queryByPlateNo(String plateNo, Long groupId);
67ad6e9a   张志伟   :art:
62
63
64
65
66
  
      /**
       * 根据车牌号查询档案信息
       *
       * @param frameNo
758162a4   张志伟   :art:
67
       * @param groupId
67ad6e9a   张志伟   :art:
68
69
       * @return
       */
758162a4   张志伟   :art:
70
71
72
      Customer queryByFrameNo(String frameNo, Long groupId);
  
      /**
3145890c   张志伟   :alien:
73
74
75
76
77
78
79
80
81
       * 根据车牌号查询档案信息
       *
       * @param engineNo
       * @param groupId
       * @return
       */
      Customer queryByEngineNo(String engineNo, Long groupId);
  
      /**
758162a4   张志伟   :art:
82
83
84
85
86
87
       * 根据baseId查询档案信息
       *
       * @param baseId
       * @return
       */
      List<Customer> queryByBaseId(Long baseId);
6c848e1d   张志伟   :art:
88
89
90
91
92
93
94
  
      /**
       * 禁用档案
       *
       * @param customerId
       */
      void forbidden(Long customerId);
376d3231   张志伟   ✨ 主动放弃跟进 100%
95
96
97
98
  
      /**
       * 禁用档案
       *
598e44a8   张志伟   :sparkles:
99
       * @param plateNo
376d3231   张志伟   ✨ 主动放弃跟进 100%
100
       */
598e44a8   张志伟   :sparkles:
101
      void forbiddenPlate(String plateNo);
2b628098   张志伟   🚀 v1.0.1 服务顾问离职分配...
102
103
104
  
      /**
       * 查询服务顾问所有档案
395e025e   张志伟   :art:
105
       *
2b628098   张志伟   🚀 v1.0.1 服务顾问离职分配...
106
107
108
109
110
       * @param adviserId
       * @return
       */
      @Nullable
      List<Customer> queryByAdviserId(@NonNull Long adviserId);
240a6575   张志伟   :sparkles:
111
112
113
114
115
116
117
118
  
      /**
       * 查询指定条件的客户信息
       *
       * @param queryVO
       * @return
       */
      List<StammkundeAnalyseDTO> analyseList(StammkundeAnalyseQueryVO queryVO);
03c1a9b3   张志伟   :sparkles:
119
120
121
122
123
124
125
126
  
      /**
       * 查询自定义参数的档案信息
       *
       * @param query
       * @return
       */
      List<CustomerDetailDto> queryCustomList(CustomCustomerQuery query);
1ca0a771   张志伟   新增查询档案数量接口
127
128
129
  
      /**
       * 查询自定义参数的档案数量
1983befb   张志伟   feat(api): :spark...
130
       *
1ca0a771   张志伟   新增查询档案数量接口
131
132
133
134
       * @param query
       * @return
       */
      Long queryCustomListCount(CustomCustomerQuery query);
1983befb   张志伟   feat(api): :spark...
135
136
137
138
139
140
141
142
143
  
      /**
       * 关键字全匹配查询
       *
       * @param keyword
       * @param groupId
       * @return
       */
      List<BasicsCustomerDTO> queryByKeyword(String keyword, Long groupId);
1331548a   张志伟   :sparkles:
144
145
146
  
      /**
       * 分配线索后重新更新档案的服务顾问
5b538595   张志伟   feature(*): 新增查询线...
147
       *
1331548a   张志伟   :sparkles:
148
149
150
151
152
153
154
       * @param vinList
       * @param userId
       * @param shopId
       * @param groupId
       */
      @Transactional(rollbackFor = Exception.class)
      void afterDistributePubClue(List<String> vinList, Long userId, Long shopId, Long groupId);
3bddceac   夏天   查询保有客档案sdk
155
156
157
158
159
160
161
162
  
      /**
       * 查询保有客数量
       * @param req 查询参数
       * @return 保有客数量
       */
      List<CusCntResult> queryCusCnt(CusCntReq req);
  
9e476657   张志伟   :art:
163
  }