|
@@ -247,28 +247,8 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
|
247
|
247
|
|
248
|
248
|
@Override
|
249
|
249
|
public IPage<TaRecommendCustomer> getCustomerList(int pageNumber, int pageSize,String building,String name,String tel,String consultName,String consultTel){
|
250
|
|
- QueryWrapper<TaRecommendCustomer>queryWrapper = new QueryWrapper<>();
|
251
|
|
- if(building.equals("") && null != building){
|
252
|
|
- queryWrapper.eq("building_id",building);
|
253
|
|
- }
|
254
|
|
- if(name.equals("") && null != name){
|
255
|
|
- queryWrapper.like("name",name);
|
256
|
|
- }
|
257
|
|
- if(tel.equals("") && null != tel){
|
258
|
|
- queryWrapper.eq("phone",tel);
|
259
|
|
- }
|
260
|
|
- if(consultName.equals("") && null != consultName){
|
261
|
|
- List<String> consultIds = taPersonMapper.getConsultantByName(consultName);
|
262
|
|
- queryWrapper.in("realty_consultant",consultIds);
|
263
|
|
- }
|
264
|
|
- if(consultTel.equals("") && null != consultTel){
|
265
|
|
- String consultId = taPersonMapper.getConsultantByTel(consultTel);
|
266
|
|
- queryWrapper.eq("realty_consultant",consultId);
|
267
|
|
- }
|
268
|
|
-
|
269
|
|
- queryWrapper.gt("status", CommConstant.MESSAGE_UNREAD);
|
270
|
250
|
IPage<TaRecommendCustomer>page = new Page<>(pageNumber,pageSize);
|
271
|
|
- return taRecommendCustomerMapper.selectPage(page,queryWrapper);
|
|
251
|
+ return taRecommendCustomerMapper.getCustomerList(page,building,name,tel,consultName,consultTel);
|
272
|
252
|
}
|
273
|
253
|
|
274
|
254
|
@Override
|