|
@@ -48,6 +48,8 @@ public class PositionServiceImpl extends ServiceImpl<PositionMapper, Position> i
|
|
|
private IPositionAddressService positionAddressService;
|
|
private IPositionAddressService positionAddressService;
|
|
|
@Value("${jeecg.c_port.path}")
|
|
@Value("${jeecg.c_port.path}")
|
|
|
private String path;
|
|
private String path;
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private IPositionService positionService;
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public Page<Position> queryPageList1(Page<Position> page, Position position) {
|
|
public Page<Position> queryPageList1(Page<Position> page, Position position) {
|
|
@@ -496,6 +498,11 @@ public class PositionServiceImpl extends ServiceImpl<PositionMapper, Position> i
|
|
|
|
|
|
|
|
String positionId = requestMap.get("positionId");
|
|
String positionId = requestMap.get("positionId");
|
|
|
String positionCategory = requestMap.get("positionCategory");
|
|
String positionCategory = requestMap.get("positionCategory");
|
|
|
|
|
+ if("0".equals(positionCategory)){
|
|
|
|
|
+ positionCategory="6";
|
|
|
|
|
+ }else if("1".equals(positionCategory)){
|
|
|
|
|
+ positionCategory="7";
|
|
|
|
|
+ }
|
|
|
String pageNo = requestMap.get("pageNo");
|
|
String pageNo = requestMap.get("pageNo");
|
|
|
String pageSize = requestMap.get("pageSize");
|
|
String pageSize = requestMap.get("pageSize");
|
|
|
String type = requestMap.get("type"); //1:查询新报名 2:查询待面试
|
|
String type = requestMap.get("type"); //1:查询新报名 2:查询待面试
|
|
@@ -505,7 +512,26 @@ public class PositionServiceImpl extends ServiceImpl<PositionMapper, Position> i
|
|
|
String data = CommUtil.get(url, null);
|
|
String data = CommUtil.get(url, null);
|
|
|
//使用alibaba fastjson解析jsonarray,涉及性能优化问题
|
|
//使用alibaba fastjson解析jsonarray,涉及性能优化问题
|
|
|
jsonObject = com.alibaba.fastjson.JSONObject.parseObject(data);
|
|
jsonObject = com.alibaba.fastjson.JSONObject.parseObject(data);
|
|
|
-
|
|
|
|
|
|
|
+ String searchResume = jsonObject.getString("searchResume");
|
|
|
|
|
+ com.alibaba.fastjson.JSONArray jsonArray = com.alibaba.fastjson.JSONArray.parseArray(searchResume);
|
|
|
|
|
+ com.alibaba.fastjson.JSONArray jsonArray1 = new com.alibaba.fastjson.JSONArray();
|
|
|
|
|
+ for (int i = 0; i < jsonArray.size(); i++) {
|
|
|
|
|
+ com.alibaba.fastjson.JSONObject jsonObject1 = jsonArray.getJSONObject(i);
|
|
|
|
|
+ String positionId1 = jsonObject1.getString("positionId");
|
|
|
|
|
+ //岗位名称
|
|
|
|
|
+ if (StringUtils.isNotBlank(positionId)) {
|
|
|
|
|
+ String positionName = positionService.getById(positionId1).getPositionName();
|
|
|
|
|
+ jsonObject1.put("positionName", positionName);
|
|
|
|
|
+ }
|
|
|
|
|
+ if("6".equals(jsonObject1.getString("positionCategory"))){
|
|
|
|
|
+ jsonObject1.put("positionCategory","0");
|
|
|
|
|
+ }else if("7".equals(jsonObject1.getString("positionCategory"))){
|
|
|
|
|
+ jsonObject1.put("positionCategory","1");
|
|
|
|
|
+ }
|
|
|
|
|
+ jsonArray1.add(jsonObject1);
|
|
|
|
|
+ }
|
|
|
|
|
+ jsonObject = new com.alibaba.fastjson.JSONObject();
|
|
|
|
|
+ jsonObject.put("searchResume", jsonArray1);
|
|
|
|
|
|
|
|
} else {
|
|
} else {
|
|
|
jsonObject.put("success", "1004");
|
|
jsonObject.put("success", "1004");
|
|
@@ -526,6 +552,11 @@ public class PositionServiceImpl extends ServiceImpl<PositionMapper, Position> i
|
|
|
if (TokenUtil.validateToken(userId1, userToken)) {
|
|
if (TokenUtil.validateToken(userId1, userToken)) {
|
|
|
String positionId = requestMap.get("positionId");
|
|
String positionId = requestMap.get("positionId");
|
|
|
String positionCategory = requestMap.get("positionCategory");
|
|
String positionCategory = requestMap.get("positionCategory");
|
|
|
|
|
+ if("0".equals(positionCategory)){
|
|
|
|
|
+ positionCategory="6";
|
|
|
|
|
+ }else if("1".equals(positionCategory)){
|
|
|
|
|
+ positionCategory="7";
|
|
|
|
|
+ }
|
|
|
String type = requestMap.get("type"); //1:查询新报名 2:查询待面试
|
|
String type = requestMap.get("type"); //1:查询新报名 2:查询待面试
|
|
|
String sendMsgUrl = "";
|
|
String sendMsgUrl = "";
|
|
|
if ("1".equals(type)) {
|
|
if ("1".equals(type)) {
|
|
@@ -565,18 +596,24 @@ public class PositionServiceImpl extends ServiceImpl<PositionMapper, Position> i
|
|
|
if (TokenUtil.validateToken(userId1, userToken)) {
|
|
if (TokenUtil.validateToken(userId1, userToken)) {
|
|
|
String positionId = requestMap.get("positionId");
|
|
String positionId = requestMap.get("positionId");
|
|
|
String positionCategory = requestMap.get("positionCategory");
|
|
String positionCategory = requestMap.get("positionCategory");
|
|
|
|
|
+ if("0".equals(positionCategory)){
|
|
|
|
|
+ positionCategory="6";
|
|
|
|
|
+ }else if("1".equals(positionCategory)){
|
|
|
|
|
+ positionCategory="7";
|
|
|
|
|
+ }
|
|
|
String type = requestMap.get("type"); //1:查询新报名 2:查询待面试
|
|
String type = requestMap.get("type"); //1:查询新报名 2:查询待面试
|
|
|
String sendMsgUrl = "";
|
|
String sendMsgUrl = "";
|
|
|
if ("1".equals(type)) {
|
|
if ("1".equals(type)) {
|
|
|
String isRefuse = requestMap.get("isRefuse"); //是否拒绝(0:未拒绝 1:拒绝)
|
|
String isRefuse = requestMap.get("isRefuse"); //是否拒绝(0:未拒绝 1:拒绝)
|
|
|
- sendMsgUrl = path + "/f/api/sendmessage/changeApplysStatus?positionId=" + positionId + "&userId=" + userId + "&positionCategory=" + positionCategory + "&type=" + type + "&isRefuse=" + isRefuse;
|
|
|
|
|
|
|
+ sendMsgUrl = "http://localhost:8080" + "/f/api/sendmessage/changeApplysStatus?positionId=" + positionId + "&userId=" + userId + "&positionCategory=" + positionCategory + "&type=" + type + "&isRefuse=" + isRefuse;
|
|
|
} else if ("2".equals(type)) {
|
|
} else if ("2".equals(type)) {
|
|
|
String isEmploy = requestMap.get("isEmploy"); //是否录用(0:拒绝 1:录用)
|
|
String isEmploy = requestMap.get("isEmploy"); //是否录用(0:拒绝 1:录用)
|
|
|
- sendMsgUrl = path + "/f/api/sendmessage/changeApplysStatus?positionId=" + positionId + "&userId=" + userId + "&positionCategory=" + positionCategory + "&type=" + type + "&isEmploy=" + isEmploy;
|
|
|
|
|
|
|
+ sendMsgUrl = "http://localhost:8080" + "/f/api/sendmessage/changeApplysStatus?positionId=" + positionId + "&userId=" + userId + "&positionCategory=" + positionCategory + "&type=" + type + "&isEmploy=" + isEmploy;
|
|
|
}
|
|
}
|
|
|
String data = CommUtil.get(sendMsgUrl, null);
|
|
String data = CommUtil.get(sendMsgUrl, null);
|
|
|
com.alibaba.fastjson.JSONObject jsonObject = new com.alibaba.fastjson.JSONObject();
|
|
com.alibaba.fastjson.JSONObject jsonObject = new com.alibaba.fastjson.JSONObject();
|
|
|
jsonObject = com.alibaba.fastjson.JSONObject.parseObject(data);
|
|
jsonObject = com.alibaba.fastjson.JSONObject.parseObject(data);
|
|
|
|
|
+ System.out.println(jsonObject);
|
|
|
String returnStatus = jsonObject.getString("success");
|
|
String returnStatus = jsonObject.getString("success");
|
|
|
if ("1".equals(returnStatus)) {
|
|
if ("1".equals(returnStatus)) {
|
|
|
returnMap.put("success", true);
|
|
returnMap.put("success", true);
|
|
@@ -603,8 +640,11 @@ public class PositionServiceImpl extends ServiceImpl<PositionMapper, Position> i
|
|
|
if (TokenUtil.validateToken(userId1, userToken)) {
|
|
if (TokenUtil.validateToken(userId1, userToken)) {
|
|
|
String positionId = requestMap.get("positionId");
|
|
String positionId = requestMap.get("positionId");
|
|
|
String positionCategory = requestMap.get("positionCategory");
|
|
String positionCategory = requestMap.get("positionCategory");
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+ if("0".equals(positionCategory)){
|
|
|
|
|
+ positionCategory="6";
|
|
|
|
|
+ }else if("1".equals(positionCategory)){
|
|
|
|
|
+ positionCategory="7";
|
|
|
|
|
+ }
|
|
|
String interviewTime = requestMap.get("interviewTime");
|
|
String interviewTime = requestMap.get("interviewTime");
|
|
|
String interviewAddres = requestMap.get("interviewAddres");
|
|
String interviewAddres = requestMap.get("interviewAddres");
|
|
|
String contactPerson = requestMap.get("contactPerson");
|
|
String contactPerson = requestMap.get("contactPerson");
|