Blame view

fw-valhalla-service/src/main/java/cn/fw/valhalla/service/data/StammkundePoolService.java 2.46 KB
7c9f5c47   张志伟   :art:
1
2
3
  package cn.fw.valhalla.service.data;
  
  import cn.fw.valhalla.domain.db.pool.StammkundePool;
18a818bd   张志伟   :construction:
4
  import cn.fw.valhalla.domain.dto.StammkundeDto;
39e85d50   张志伟   :art:
5
  import cn.fw.valhalla.domain.dto.StammkundePoolDTO;
bfac3874   xianpengcheng   public_report_dat...
6
7
  import cn.fw.valhalla.domain.dto.StammkundePoolReportDTO;
  import cn.fw.valhalla.domain.dto.StammkundePoolReportQueryDTO;
1b7b7d85   张志伟   ✨ v1.1.1 调整保有客池查...
8
  import cn.fw.valhalla.domain.enums.DefeatReasonEnum;
39e85d50   张志伟   :art:
9
  import cn.fw.valhalla.domain.query.StammkundePoolQueryVO;
7c9f5c47   张志伟   :art:
10
  import com.baomidou.mybatisplus.extension.service.IService;
fab1c500   张志伟   :ambulance:
11
  import org.springframework.lang.NonNull;
7c9f5c47   张志伟   :art:
12
  
39e85d50   张志伟   :art:
13
14
  import java.util.List;
  
7c9f5c47   张志伟   :art:
15
16
17
18
19
20
21
  /**
   * @author : kurisu
   * @className : StammkundePoolService
   * @description : 保有客池
   * @date: 2020-11-11 17:24
   */
  public interface StammkundePoolService extends IService<StammkundePool> {
8587e21d   张志伟   :art:
22
      /**
18a818bd   张志伟   :construction:
23
       * 作废有效档案(没有新的顾问接手档案的情况)
39e85d50   张志伟   :art:
24
       *
8587e21d   张志伟   :art:
25
26
       * @param customerId
       * @param groupId
1b7b7d85   张志伟   ✨ v1.1.1 调整保有客池查...
27
       * @param reason
8587e21d   张志伟   :art:
28
29
       * @return
       */
1b7b7d85   张志伟   ✨ v1.1.1 调整保有客池查...
30
      boolean reject(Long customerId, Long groupId, DefeatReasonEnum reason);
39e85d50   张志伟   :art:
31
  
b688a252   张志伟   :art:
32
      /**
18a818bd   张志伟   :construction:
33
       * 作废档案
fab1c500   张志伟   :ambulance:
34
       *
18a818bd   张志伟   :construction:
35
36
37
38
39
40
       * @param dto
       * @return
       */
      boolean reject(StammkundeDto dto);
  
      /**
b688a252   张志伟   :art:
41
       * 作废有效档案
39e85d50   张志伟   :art:
42
       *
b688a252   张志伟   :art:
43
44
45
       * @param userId
       * @param shopId
       * @param groupId
1b7b7d85   张志伟   ✨ v1.1.1 调整保有客池查...
46
       * @param reason
b688a252   张志伟   :art:
47
48
       * @return
       */
1b7b7d85   张志伟   ✨ v1.1.1 调整保有客池查...
49
      boolean reject(Long userId, Long shopId, Long groupId, DefeatReasonEnum reason);
9b497427   张志伟   :art:
50
51
52
  
      /**
       * 激活档案
39e85d50   张志伟   :art:
53
       *
9b497427   张志伟   :art:
54
55
56
57
58
       * @param customerId
       * @param groupId
       * @param shopId
       */
      void aktiv(Long customerId, Long groupId, Long shopId);
dac2e8b1   张志伟   :art:
59
60
61
  
      /**
       * 激活档案
39e85d50   张志伟   :art:
62
       *
dac2e8b1   张志伟   :art:
63
64
65
66
67
68
       * @param id
       */
      void aktiv(Long id);
  
      /**
       * 查询可激活的档案
39e85d50   张志伟   :art:
69
       *
dac2e8b1   张志伟   :art:
70
71
72
73
74
75
       * @param customerId
       * @param groupId
       * @param shopId
       * @return
       */
      StammkundePool queryAktivAble(Long customerId, Long groupId, Long shopId);
39e85d50   张志伟   :art:
76
77
78
79
80
81
82
83
  
      /**
       * 保有客池
       *
       * @param queryVO
       * @return
       */
      List<StammkundePoolDTO> stammkundeList(StammkundePoolQueryVO queryVO);
cc14a87c   张志伟   :art:
84
85
86
  
      /**
       * 保有客池总数
fab1c500   张志伟   :ambulance:
87
       *
cc14a87c   张志伟   :art:
88
89
90
91
       * @param queryVO
       * @return
       */
      long stammkundeListCount(StammkundePoolQueryVO queryVO);
fab1c500   张志伟   :ambulance:
92
93
94
95
96
97
98
99
100
  
      /**
       * 删除保有客数据
       * 用于档案回滚的场景
       *
       * @param customerId
       * @param groupId
       */
      void removeByCustomerId(@NonNull Long customerId, @NonNull Long groupId);
bfac3874   xianpengcheng   public_report_dat...
101
102
103
104
105
106
107
  
      /**
       * 查询渠道到店统计
       * @param dto
       * @return
       */
      List<StammkundePoolReportDTO> countStammkundePoolList(StammkundePoolReportQueryDTO dto);
7c9f5c47   张志伟   :art:
108
  }