zjh
21 小时以前 9cf381f93354a5f0fcaf14bd3ab118886d589f80
ltkj-admin/src/main/java/com/ltkj/web/controller/app/CustomerController.java
@@ -92,7 +92,7 @@
        wq.eq(TjCustomer::getCusPhone, tjCustomer.getCusPhone());
        wq.eq(TjCustomer::getCusName, tjCustomer.getCusName());
        final TjCustomer one = customerService.getOne(wq);
        one.setConnect("");
        one.setConnect(null);
        final boolean b = customerService.updateById(one);
        if (b) {
            return AjaxResult.success();
@@ -132,14 +132,15 @@
//            }
//        }
        LambdaQueryWrapper<TjCustomer> wq = new LambdaQueryWrapper<>();
        wq.eq(TjCustomer::getCusIdcard, cusIdcard);
        TjCustomer customer = customerService.getOne(wq);
        TjCustomer customer = customerService.getTjCustomerByCusIdCard(cusIdcard);
        String key = sysConfigService.selectConfigByKey("sfkqdyhis");
        if (customer != null) {
            customer.setConnect(tjCustomer.getConnect());
            customer.setCusPhone(tjCustomer.getCusPhone());
            customer.setCusMarryStatus(tjCustomer.getCusMarryStatus());
            customerService.updateById(customer);
            return AjaxResult.success(customer);
        }
@@ -261,7 +262,7 @@
            LambdaQueryWrapper<TjCustomer> qw = new LambdaQueryWrapper<>();
            qw.eq(TjCustomer::getCusPhone, phone);
            List<TjCustomer> tjCustomer1 = customerService.list(qw);
            if (tjCustomer1 != null && tjCustomer1.size() > 0) {
            if (tjCustomer1 != null && !tjCustomer1.isEmpty()) {
                List<String> num = new ArrayList<>();
                for (TjCustomer tjCustomer : tjCustomer1) {
                    num.add(tjCustomer.getCusIdcard());