| | |
| | | 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); |