|
@@ -125,14 +125,11 @@ public class XiaomanCustomerServiceImpl extends ServiceImpl<XiaomanCustomerMappe
|
|
|
public void handleSaveOrUpdate(List<CustomerApiVo> customerApiVoList, Set<Long> allCustomer,boolean flag) {
|
|
|
List<XiaomanCustomer> xiaomanCustomerList = new ArrayList<>(customerApiVoList);
|
|
|
for (XiaomanCustomer customer : xiaomanCustomerList) {
|
|
|
- if(customer.getCompanyId() == 16769466149910L){
|
|
|
if (allCustomer.contains(customer.getCompanyId())) {
|
|
|
processCustomer(customer, true,flag);
|
|
|
} else {
|
|
|
processCustomer(customer, false,flag);
|
|
|
}
|
|
|
- }
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -179,8 +176,7 @@ public class XiaomanCustomerServiceImpl extends ServiceImpl<XiaomanCustomerMappe
|
|
|
|
|
|
if (!vo.getCustomers().isEmpty()){
|
|
|
|
|
|
- customerUserService.lambdaUpdate()
|
|
|
- .eq(CustomerUser::getCustomerId,customer.getId()).remove();
|
|
|
+ customerUserService.deleteByCustomerId(customer.getId());
|
|
|
for (CustomerInfoVo.Customer cus : vo.getCustomers()){
|
|
|
if (StringUtils.isNotEmpty(cus.getEmail())){
|
|
|
CustomerUser customerUser = new CustomerUser();
|
|
@@ -241,8 +237,7 @@ public class XiaomanCustomerServiceImpl extends ServiceImpl<XiaomanCustomerMappe
|
|
|
|
|
|
if (!vo.getCustomers().isEmpty()){
|
|
|
|
|
|
- customerUserService.lambdaUpdate()
|
|
|
- .eq(CustomerUser::getCustomerId,customer.getId()).remove();
|
|
|
+ customerUserService.deleteByCustomerId(customer.getId());
|
|
|
for (CustomerInfoVo.Customer cus :vo.getCustomers()) {
|
|
|
CustomerUser customerUser = new CustomerUser();
|
|
|
customerUser.setId(cus.getCustomerId());
|
|
@@ -377,6 +372,6 @@ public class XiaomanCustomerServiceImpl extends ServiceImpl<XiaomanCustomerMappe
|
|
|
}
|
|
|
@Override
|
|
|
public void updateList() {
|
|
|
- xiaomanApiService.updateList(24);
|
|
|
+ xiaomanApiService.updateList(2);
|
|
|
}
|
|
|
}
|