|
|
@@ -148,14 +148,16 @@ public class CustomerTradeServiceImpl
|
|
|
List<Long> companyCustomerIds = customerCompanyTradeService.list(
|
|
|
new LambdaQueryWrapper<CustomerCompanyEntity>()
|
|
|
.eq(CustomerCompanyEntity::getIsDelete, CommonConstant.DEL_FLAG_0)
|
|
|
- .like(CustomerCompanyEntity::getName, blurry)
|
|
|
+ .and(w -> w.eq(CustomerCompanyEntity::getName, blurry).or().like(CustomerCompanyEntity::getEmail, blurry))
|
|
|
+// .like(CustomerCompanyEntity::getName, blurry)
|
|
|
).stream().map(CustomerCompanyEntity::getCustomerId).filter(Objects::nonNull).collect(Collectors.toList());
|
|
|
|
|
|
List<Long> liaisonCustomerIds = liaisonTradeService.list(
|
|
|
new LambdaQueryWrapper<LiaisonEntity>()
|
|
|
.eq(LiaisonEntity::getIsDelete, CommonConstant.DEL_FLAG_0)
|
|
|
.eq(LiaisonEntity::getHasPrimaryLialison, 1)
|
|
|
- .like(LiaisonEntity::getName, blurry)
|
|
|
+ .and(w -> w.eq(LiaisonEntity::getName, blurry).or().like(LiaisonEntity::getEmail, blurry))
|
|
|
+ // .like(CustomerCompanyEntity::getName, blurry)
|
|
|
).stream().map(LiaisonEntity::getCustomerId).filter(Objects::nonNull).collect(Collectors.toList());
|
|
|
|
|
|
// 合并两个集合去重
|