|
@@ -108,8 +108,10 @@ public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer> i
|
|
|
IWrapper<CustomerVo> wrapper = IWrapper.getWrapper();
|
|
|
|
|
|
// 客户来源查询
|
|
|
-// wrapper.eq("c", Customer::getSource, dto.getSource());
|
|
|
- wrapper.apply("FIND_IN_SET( {0}, c.source )", dto.getSource());
|
|
|
+ String source = dto.getSource();
|
|
|
+ if (ObjectUtil.isNotEmpty(source)) {
|
|
|
+ wrapper.apply("FIND_IN_SET( {0}, c.source )", source);
|
|
|
+ }
|
|
|
// 客户类型查询
|
|
|
wrapper.eq("c", Customer::getStatus, dto.getStatus());
|
|
|
// 国家ID查询
|