| | |
| | | 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(); |
| | |
| | | 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); |
| | | } |
| | |
| | | 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("身份证号不正确"); |
| | | } |
| | |
| | | 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()); |