| | |
| | | if(sfjysfzh.equalsIgnoreCase("Y")){ |
| | | if(cusIdcard.length()==18){ |
| | | b = MatchUtils.isIdCard(cusIdcard); |
| | | }else { |
| | | return AjaxResult.error("请输入十八位号的证件号!"); |
| | | } |
| | | } |
| | | } |
| | | // else { |
| | | // if(cusIdcard.length()==9){ |
| | | // b = MatchUtils.cardValidate(cusIdcard, tjCustomer.getIdType()); |
| | | // } |
| | | // |
| | | // } |
| | | } else { |
| | | return AjaxResult.error("请选择证件类型"); |
| | | } |
| | | if (!b) return AjaxResult.error("证件号有误"); |
| | | if (!b) return AjaxResult.error("证件号有误,请检查证件号是否有效!"); |
| | | |
| | | |
| | | //判断身份证号格式是否正确 |
| | | if (tjCustomer.getCusPhone().length() != 11) |
| | | return AjaxResult.error("请输入十一位号的手机号!"); |
| | | |
| | | if(sfjysjh.equalsIgnoreCase("Y")){ |
| | | if (!(MatchUtils.isMobileNO(tjCustomer.getCusPhone()))) |
| | | return AjaxResult.error("手机号错误"); |
| | | return AjaxResult.error("手机号错误,请检查手机号是否有效!"); |
| | | } |
| | | |
| | | LambdaQueryWrapper<TjCustomer> wq = new LambdaQueryWrapper<>(); |