|
@@ -4,12 +4,16 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
4
|
4
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
5
|
5
|
import com.huiju.estateagents.entity.TaPerson;
|
6
|
6
|
import com.huiju.estateagents.entity.TaPersonVisitRecord;
|
|
7
|
+import com.huiju.estateagents.entity.TaRecommendCustomer;
|
7
|
8
|
import com.huiju.estateagents.mapper.TaPersonMapper;
|
8
|
9
|
import com.huiju.estateagents.mapper.TaPersonVisitRecordMapper;
|
|
10
|
+import com.huiju.estateagents.mapper.TaRecommendCustomerMapper;
|
9
|
11
|
import com.huiju.estateagents.service.ITaPersonVisitRecordService;
|
10
|
12
|
import org.springframework.beans.factory.annotation.Autowired;
|
11
|
13
|
import org.springframework.stereotype.Service;
|
12
|
14
|
|
|
15
|
+import java.util.List;
|
|
16
|
+
|
13
|
17
|
/**
|
14
|
18
|
* <p>
|
15
|
19
|
* 服务实现类
|
|
@@ -20,6 +24,26 @@ import org.springframework.stereotype.Service;
|
20
|
24
|
*/
|
21
|
25
|
@Service
|
22
|
26
|
public class TaPersonVisitRecordServiceImpl extends ServiceImpl<TaPersonVisitRecordMapper, TaPersonVisitRecord> implements ITaPersonVisitRecordService {
|
|
27
|
+
|
|
28
|
+ @Autowired
|
|
29
|
+ private TaRecommendCustomerMapper taRecommendCustomerMapper;
|
|
30
|
+
|
|
31
|
+ @Autowired
|
|
32
|
+ private TaPersonVisitRecordMapper personVisitRecordMapper;
|
|
33
|
+
|
|
34
|
+ /**
|
|
35
|
+ * 分页获取客户访问记录
|
|
36
|
+ *
|
|
37
|
+ * @param pg
|
|
38
|
+ * @param customerId
|
|
39
|
+ * @return
|
|
40
|
+ */
|
|
41
|
+ @Override
|
|
42
|
+ public IPage<TaPersonVisitRecord> getPersonVisitRecordList(IPage<TaPersonVisitRecord> pg, String customerId) {
|
|
43
|
+ TaRecommendCustomer taRecommendCustomer = taRecommendCustomerMapper.selectById(customerId);
|
|
44
|
+ IPage<TaPersonVisitRecord> result = personVisitRecordMapper.getPersonVisitRecordList(pg,taRecommendCustomer.getPersonId());
|
|
45
|
+ return result;
|
|
46
|
+ }
|
23
|
47
|
// @Autowired
|
24
|
48
|
// private TaPersonMapper taPersonMapper;
|
25
|
49
|
// @Autowired
|