| | |
| | | import net.sourceforge.pinyin4j.format.HanyuPinyinOutputFormat; |
| | | import net.sourceforge.pinyin4j.format.HanyuPinyinToneType; |
| | | import net.sourceforge.pinyin4j.format.exception.BadHanyuPinyinOutputFormatCombination; |
| | | import org.json.JSONArray; |
| | | import org.json.JSONObject; |
| | | import org.springblade.common.utils.InvestigateUtil; |
| | | import org.springblade.modules.apply.entity.Apply; |
| | | import org.springblade.modules.apply.excel.ApplyExcel; |
| | | import org.springblade.modules.apply.mapper.ApplyMapper; |
| | |
| | | */ |
| | | @Override |
| | | public IPage<ApplyVO> selectApplyPage(IPage<ApplyVO> page, ApplyVO apply) { |
| | | return page.setRecords(baseMapper.selectApplyPage(page, apply)); |
| | | List<ApplyVO> applyVOList = baseMapper.selectApplyPage(page, apply); |
| | | // applyVOList.forEach(applyVO -> { |
| | | // //资格审查 |
| | | // String body = InvestigateUtil.httpGet(applyVO.getIdCardNo()); |
| | | // JSONObject jsonObject = new JSONObject(body); |
| | | // String data = jsonObject.get("data").toString(); |
| | | // JSONObject jsonData = new JSONObject(data); |
| | | // JSONArray res = jsonData.getJSONArray("res"); |
| | | // if (res.length()==0){ |
| | | // //没有数据正常 |
| | | // applyVO.setExaminationType("0"); |
| | | // }else { |
| | | // applyVO.setExaminationType("1"); |
| | | // applyVO.setExaminationMx(res.getJSONObject(0).get("zdxsfzqkry").toString()); |
| | | // } |
| | | // }); |
| | | return page.setRecords(applyVOList); |
| | | } |
| | | |
| | | /** |