智慧保安后台管理项目备份
zhongrj
2024-05-24 b5960d1968e007b91d4d33dd7cbb74f1b566f2c1
src/main/java/org/springblade/modules/apply/service/impl/ApplyServiceImpl.java
@@ -9,6 +9,9 @@
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;
@@ -44,7 +47,23 @@
    */
   @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);
   }
   /**