| | |
| | | // if(!latLng.matches("^[\\-\\+]?(0(\\.\\d{1,10})?|([1-9](\\d)?)(\\.\\d{1,10})?|1[0-7]\\d{1}(\\.\\d{1,10})?|180\\.0{1,10}),[\\-\\+]?((0|([1-8]\\d?))(\\.\\d{1,10})?|90(\\.0{1,10})?)$")){ |
| | | // return R.fail("经纬度参数错误"); |
| | | // } |
| | | //经纬度匹配规则:(短(纬度)在前长(经度)在后,不要擅自修改此规则,否则出现问题后果自负) |
| | | if(!latLng.matches("[1-9][0-9](\\.[0-9]{1,6})?,[1-9][0-9]{2}(\\.[0-9]{1,6})?")){ |
| | | return R.fail("经纬度参数错误"); |
| | | } |
| | |
| | | IPage<EventSpecialPopulationVO> specialPopulationVOIPage = this.baseMapper.specialPopulationList(new Page(specialPopulationDTO.getPageNum(), specialPopulationDTO.getPageSize()), specialPopulationDTO); |
| | | if(!specialPopulationVOIPage.getRecords().isEmpty()){ |
| | | specialPopulationVOIPage.getRecords().forEach(specialPopulation -> { |
| | | specialPopulation.setAge(IdcardUtil.getAgeByIdCard(specialPopulation.getIdCard())); |
| | | try { |
| | | Integer age = IdcardUtil.getAgeByIdCard(specialPopulation.getIdCard()); |
| | | specialPopulation.setAge(age); |
| | | }catch (Exception e){ |
| | | log.error("身份证号码转换年龄失败,人员id:" + specialPopulation.getId()); |
| | | } |
| | | }); |
| | | } |
| | | return R.ok(specialPopulationVOIPage); |