|
|
@@ -1,10 +1,12 @@
|
|
|
package org.jeecg.modules.api.dpresume.service.impl;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import net.bytebuddy.asm.Advice;
|
|
|
import org.jeecg.common.util.CommUtil;
|
|
|
import org.jeecg.common.util.StringUtils;
|
|
|
import org.jeecg.modules.api.dpresume.service.ResumeService;
|
|
|
+import org.jeecg.modules.hpposition.entity.Position;
|
|
|
import org.jeecg.modules.hpposition.service.IPositionService;
|
|
|
import org.jeecg.modules.util.TokenUtil;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
@@ -97,6 +99,21 @@ public class ResumeServiceImpl implements ResumeService {
|
|
|
+ pageSize + "&positionIds=" + URLEncoder.encode(positionIds, "utf-8");
|
|
|
String data = CommUtil.get(url, null);
|
|
|
jsonObject = JSONObject.parseObject(data);
|
|
|
+ String searchResume = jsonObject.getString("applyResume");
|
|
|
+ JSONArray jsonArray = JSONArray.parseArray(searchResume);
|
|
|
+ JSONArray jsonArray1 = new JSONArray();
|
|
|
+ for (int i = 0; i < jsonArray.size(); i++) {
|
|
|
+ JSONObject jsonObject1 = jsonArray.getJSONObject(i);
|
|
|
+ String positionId = jsonObject1.getString("positionId");
|
|
|
+ //岗位名称
|
|
|
+ if (StringUtils.isNotBlank(positionId)) {
|
|
|
+ String positionName = positionService.getById(positionId).getPositionName();
|
|
|
+ jsonObject1.put("positionName", positionName);
|
|
|
+ jsonArray1.add(jsonObject1);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ jsonObject = new JSONObject();
|
|
|
+ jsonObject.put("applyResume", jsonArray1);
|
|
|
} catch (UnsupportedEncodingException e) {
|
|
|
e.printStackTrace();
|
|
|
}
|