| | |
| | | @Autowired |
| | | private ITjDwGroupingService tjDwGroupingService; |
| | | |
| | | @Value("${path.filePath}") |
| | | private String value; |
| | | // @Value("${path.filePath}") |
| | | // private String value; |
| | | |
| | | @PostMapping("/importTemplate") |
| | | @ApiOperation(value = "导出excel表模板") |
| | | public void importTemplate(HttpServletResponse response) { |
| | | //原来的下载模板调用接口 |
| | | try { |
| | | String value = configService.selectConfigByKey("path_filePath"); |
| | | String base64String = PDFBinaryUtil.getPDFBinary(value + File.separator + "西安路泰机电科技有限公司.xls"); |
| | | if (null != base64String) { |
| | | PDFBinaryUtil.base64StringToPDF(base64String, FileUtil.mkdir(value).getPath() + File.separator + "团体预约Excel模版.xls"); |
| | |
| | | log.info(tjReservation.getName() + " " + idCard); |
| | | } |
| | | |
| | | if ((sfjysfzh.equalsIgnoreCase("Y") && !MatchUtils.isIdCard(idCard)) || |
| | | if ((sfjysfzh.equalsIgnoreCase("Y") && idCard.length()==18 && !MatchUtils.isIdCard(idCard)) || |
| | | (sfjysjh.equalsIgnoreCase("Y") && !MatchUtils.isMobileNO(phoe))) { |
| | | wrongList.add(tjReservation.getName() + " " + tjReservation.getIdCard()+"身份证号/手机号 格式不准确"); |
| | | // errMsg = "身份证号/手机号 格式不准确"; |
| | |
| | | if (null != tjReservation.getIdType()) { |
| | | if (tjReservation.getIdType().equals("1")) { |
| | | b = MatchUtils.isIdCard(tjReservation.getIdCard()); |
| | | } else { |
| | | b = MatchUtils.cardValidate(tjReservation.getIdCard(), tjReservation.getIdType()); |
| | | } |
| | | // else { |
| | | // b = MatchUtils.cardValidate(tjReservation.getIdCard(), tjReservation.getIdType()); |
| | | // } |
| | | } else { |
| | | return AjaxResult.error("请选择证件类型"); |
| | | } |