| | |
| | | |
| | | @Override |
| | | public IPage<CustomerVisits> listPage(Page page, CustomerVisits customerVisits) { |
| | | LambdaQueryWrapper<CustomerVisits> customerVisitsLambdaQueryWrapper = new LambdaQueryWrapper<>(); |
| | | if (customerVisits != null && !StringUtils.isEmpty(customerVisits.getCustomerName())) { |
| | | customerVisitsLambdaQueryWrapper.like(CustomerVisits::getCustomerName, customerVisits.getCustomerName()); |
| | | LambdaQueryWrapper<CustomerVisits> wrapper = new LambdaQueryWrapper<>(); |
| | | |
| | | if (customerVisits != null) { |
| | | if (StringUtils.hasText(customerVisits.getCustomerName())) { |
| | | wrapper.like(CustomerVisits::getCustomerName, customerVisits.getCustomerName()); |
| | | } |
| | | Page page1 = customerVisitsMapper.selectPage(page, customerVisitsLambdaQueryWrapper); |
| | | return page1; |
| | | |
| | | if (StringUtils.hasText(customerVisits.getVisitingPeople())) { |
| | | wrapper.like(CustomerVisits::getVisitingPeople, customerVisits.getVisitingPeople()); |
| | | } |
| | | } |
| | | |
| | | return customerVisitsMapper.selectPage(page, wrapper); |
| | | } |
| | | |
| | | @Override |