From 70ab81f5211897dc0733535a933631b59df9964f Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Fri, 13 Aug 2021 21:04:26 +0800
Subject: [PATCH] 报名接口修改,考试接口修改,用户新增审查接口修改
---
src/main/java/org/springblade/modules/apply/service/impl/ApplyServiceImpl.java | 21 ++++++++++++++++++++-
1 files changed, 20 insertions(+), 1 deletions(-)
diff --git a/src/main/java/org/springblade/modules/apply/service/impl/ApplyServiceImpl.java b/src/main/java/org/springblade/modules/apply/service/impl/ApplyServiceImpl.java
index a25ca85..ffe1c13 100644
--- a/src/main/java/org/springblade/modules/apply/service/impl/ApplyServiceImpl.java
+++ b/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);
}
/**
--
Gitblit v1.9.3