| | |
| | | if (!"".equals(cusIdcard) && cusIdcard != null) { |
| | | |
| | | String sfjysfzh = sysConfigService.selectConfigByKey("sfjysfzh"); |
| | | // String sfjysjh = configService.selectConfigByKey("sfjysjh"); |
| | | |
| | | //判断身份证号格式是否正确 |
| | | if(sfjysfzh.equalsIgnoreCase("Y")){ |
| | |
| | | return tjCustomer; |
| | | }else { |
| | | HashMap<String, Object> map = new HashMap<>(); |
| | | map.put("cardId",""); |
| | | // 1是身份证 |
| | | // 根据凌云his接口只要不是国内身份证号 身份证字段不传 将号码传递到卡号字段并单位编号必填 单位编号随便写 |
| | | if (!tjCustomer.getIdType().equals("1")){ |
| | | map.put("cardId",tjCustomer.getCusIdcard()); |
| | | map.put("compId",tjCustomer.getCusIdcard()); |
| | | map.put("cusIdCard", ""); |
| | | }else { |
| | | map.put("cardId",""); |
| | | map.put("cusIdCard", tjCustomer.getCusIdcard()); |
| | | map.put("compId",""); |
| | | } |
| | | map.put("cusName", tjCustomer.getCusName()); |
| | | map.put("cusSex", tjCustomer.getCusSex()); |
| | | map.put("cusIdCard", tjCustomer.getCusIdcard()); |
| | | map.put("compId",""); |
| | | map.put("cusBrithday", tjCustomer.getCusBrithday() != null ? DateUtil.format(tjCustomer.getCusBrithday(), "yyyy-MM-dd") : ""); |
| | | map.put("cusAddr", tjCustomer.getCusAddr()); |
| | | map.put("cusPhone", tjCustomer.getCusPhone()); |
| | |
| | | return AjaxResult.success(); |
| | | } |
| | | } |
| | | return AjaxResult.error(); |
| | | return AjaxResult.success(); |
| | | } catch (Exception e) { |
| | | log.error(e.toString()); |
| | | throw new RuntimeException(e); |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |