|
@@ -2,10 +2,12 @@ package com.huiju.welcome.service.impl;
|
2
|
2
|
|
3
|
3
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
4
|
4
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
5
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
5
|
6
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
7
|
+import com.huiju.welcome.common.base.ResponseBean;
|
|
8
|
+import com.huiju.welcome.mapper.TaCustomerMapper;
|
6
|
9
|
import com.huiju.welcome.mapper.TaMainUsherRecordMapper;
|
7
|
10
|
import com.huiju.welcome.model.TaCustomer;
|
8
|
|
-import com.huiju.welcome.model.TaFirstUsherRecord;
|
9
|
11
|
import com.huiju.welcome.model.TaMainUsherRecord;
|
10
|
12
|
import com.huiju.welcome.service.ITaMainUsherRecordService;
|
11
|
13
|
import com.huiju.welcome.utils.StatusUtils;
|
|
@@ -27,7 +29,10 @@ import java.util.List;
|
27
|
29
|
@Service
|
28
|
30
|
public class TaMainUsherRecordServiceImpl extends ServiceImpl<TaMainUsherRecordMapper, TaMainUsherRecord> implements ITaMainUsherRecordService {
|
29
|
31
|
@Autowired
|
30
|
|
- TaMainUsherRecordMapper taMainUsherRecordMapper;
|
|
32
|
+ private TaMainUsherRecordMapper taMainUsherRecordMapper;
|
|
33
|
+
|
|
34
|
+ @Autowired
|
|
35
|
+ private TaCustomerMapper taCustomerMapper;
|
31
|
36
|
|
32
|
37
|
@Override
|
33
|
38
|
public boolean updateNormal(List<TaMainUsherRecord> records) {
|
|
@@ -68,4 +73,13 @@ public class TaMainUsherRecordServiceImpl extends ServiceImpl<TaMainUsherRecordM
|
68
|
73
|
IPage<TaMainUsherRecord> taMainUsherRecordList= taMainUsherRecordMapper.aMainUsherRecordList(pg);
|
69
|
74
|
return taMainUsherRecordList;
|
70
|
75
|
}
|
|
76
|
+
|
|
77
|
+ @Override
|
|
78
|
+ public ResponseBean customerPage(int pageNum, int pageSize, String customerName, String phone, String platNumber) {
|
|
79
|
+ ResponseBean response = new ResponseBean();
|
|
80
|
+ IPage<TaCustomer> pg = new Page<>(pageNum, pageSize);
|
|
81
|
+ IPage<TaCustomer> result = taCustomerMapper.customerPage(pg,customerName,phone,platNumber);
|
|
82
|
+ response.addSuccess(result);
|
|
83
|
+ return response;
|
|
84
|
+ }
|
71
|
85
|
}
|