zjh
3 天以前 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();
@@ -121,25 +121,26 @@
        if (!MatchUtils.isMobileNO(tjCustomer.getCusPhone()))
            return AjaxResult.error("手机号错误");
        if (cusIdcard.length() == 18) {
        if (tjCustomer.getIdType().equals("1")) {
            if (!MatchUtils.isIdCard(cusIdcard)) {
                return AjaxResult.error("身份证号码错误");
            }
        }
        if (cusIdcard.length() == 9) {
            if (!MatchUtils.cardValidates(cusIdcard)) {
                return AjaxResult.error("身份证号码错误");
            }
        }
//        if (cusIdcard.length() == 9) {
//            if (!MatchUtils.cardValidates(cusIdcard)) {
//                return AjaxResult.error("身份证号码错误");
//            }
//        }
        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);
        }
@@ -147,7 +148,7 @@
        substring = DigestUtils.md5DigestAsHex(substring.getBytes());
        tjCustomer.setCusPassword(substring);
        try {
            tjCustomer.setCusBrithday(DateUtil.parse(MatchUtils.getBirthDayByIdCard(cusIdcard), "yyyy-MM-dd"));
            tjCustomer.setCusBrithday(MatchUtils.getBirthDayByIdCard(cusIdcard));
        } catch (Exception e) {
            return AjaxResult.error("身份证号不正确");
        }
@@ -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());