|
@@ -108,7 +108,8 @@ 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());
|
|
|
|
|
|
wrapper.eq("c", Customer::getStatus, dto.getStatus());
|
|
|
|
|
@@ -316,6 +317,7 @@ public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer> i
|
|
|
@Transactional(rollbackFor = {Exception.class})
|
|
|
public void delete(Long id) {
|
|
|
|
|
|
+ this.update(q -> q.eq(Customer::getId, id).set(Customer::getCompanyId, null));
|
|
|
this.removeById(id);
|
|
|
|
|
|
customerUserService.remove(Wrappers.<CustomerUser>lambdaQuery().eq(CustomerUser::getCustomerId, id));
|
|
@@ -557,4 +559,17 @@ public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer> i
|
|
|
|
|
|
return customerVos;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|