/** * 检查手机号码是否存在 * * @throws Exception */ public void checkedMobileExist() throws Exception { Map<String, Object> queryParameter = new HashMap<String, Object>(); queryParameter.put("isShipan", Customer.ISSHIPAN_1); queryParameter.put("mobile", getRequest().getParameter("param")); boolean result = customerService.checkedMobileForOnline(queryParameter); if (result) { map.put("info", "该号已有记录,请拨打4006706202"); map.put("status", "n"); } else { map.put("status", "y"); } printJson(Object2Json(map)); }
/** * 手机号注册验证 * * @throws Exception */ public void checkedCardExist() throws Exception { Map<String, Object> queryParameter = new HashMap<String, Object>(); queryParameter.put("isShipan", Customer.ISMONI_1); queryParameter.put("papersNum", getRequest().getParameter("param")); boolean result = customerService.checkedMobileForOnline(queryParameter); if (result) { map.put("info", "该身份证已经注册过!"); map.put("status", "n"); } else { map.put("status", "y"); } printJson(Object2Json(map)); }