|
|
@@ -2,11 +2,9 @@ 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;
|
|
|
@@ -105,12 +103,18 @@ public class ResumeServiceImpl implements ResumeService {
|
|
|
for (int i = 0; i < jsonArray.size(); i++) {
|
|
|
JSONObject jsonObject1 = jsonArray.getJSONObject(i);
|
|
|
String positionId = jsonObject1.getString("positionId");
|
|
|
+ String positionCategory = requestMap.get("positionCategory");
|
|
|
+ if ("6".equals(positionCategory)) {
|
|
|
+ jsonObject1.put("positionCategory", "0");
|
|
|
+ } else if ("7".equals(positionCategory)) {
|
|
|
+ jsonObject1.put("positionCategory", "1");
|
|
|
+ }
|
|
|
//岗位名称
|
|
|
if (StringUtils.isNotBlank(positionId)) {
|
|
|
String positionName = positionService.getById(positionId).getPositionName();
|
|
|
jsonObject1.put("positionName", positionName);
|
|
|
- jsonArray1.add(jsonObject1);
|
|
|
}
|
|
|
+ jsonArray1.add(jsonObject1);
|
|
|
}
|
|
|
jsonObject = new JSONObject();
|
|
|
jsonObject.put("applyResume", jsonArray1);
|
|
|
@@ -140,6 +144,12 @@ public class ResumeServiceImpl implements ResumeService {
|
|
|
String url = path + "/f/api/sendResume/resumeDetail?resumeId=" + resumeId;
|
|
|
String data = CommUtil.get(url, null);
|
|
|
jsonObject = JSONObject.parseObject(data);
|
|
|
+ String positionCategory = jsonObject.getString("positionCategory");
|
|
|
+ if ("6".equals(positionCategory)) {
|
|
|
+ jsonObject.put("positionCategory", "0");
|
|
|
+ } else if ("7".equals(positionCategory)) {
|
|
|
+ jsonObject.put("positionCategory", "1");
|
|
|
+ }
|
|
|
} else {
|
|
|
jsonObject.put("success", "1004");
|
|
|
}
|