| | |
| | | LambdaQueryWrapper<BusinessCustomer> wrapper = Wrappers.lambdaQuery(); |
| | | wrapper.like(StrUtil.isNotEmpty(businessCustomer.getCompanyName()),BusinessCustomer::getCompanyName,businessCustomer.getCompanyName()); |
| | | List<BusinessCustomer> businessCustomerList = businessCustomerService.listByScope(wrapper); |
| | | if (ArrayUtil.isNotEmpty(businessCustomerList.toArray())){ |
| | | if (CollUtil.isNotEmpty(businessCustomerList)){ |
| | | List<BusinessCustomerSelectVo> voList = BeanUtil.copyToList(businessCustomerList, BusinessCustomerSelectVo.class); |
| | | if (voList.size()>1000){ |
| | | return R.ok(voList.subList(0,1000)); |