|
|
@@ -461,22 +461,20 @@ public class PositionServiceImpl extends ServiceImpl<PositionMapper, Position> i
|
|
|
com.alibaba.fastjson.JSONObject jsonObject = new com.alibaba.fastjson.JSONObject();
|
|
|
//验证用户合法性
|
|
|
if (TokenUtil.validateToken(userId, userToken)) {
|
|
|
- try {
|
|
|
- String positionId = requestMap.get("positionId");
|
|
|
- String positionCategory = requestMap.get("positionCategory");
|
|
|
- String pageNo = requestMap.get("pageNo");
|
|
|
- String pageSize = requestMap.get("pageSize");
|
|
|
- String type = requestMap.get("type"); //1:查询新报名 2:查询待面试
|
|
|
- String url = path + "/f/api/sendmessage/sendResume?positionId=" + positionId + "&positionCategory="
|
|
|
- + positionCategory + "&type=" + type
|
|
|
- + "&pageNo=" + pageNo + "&pageSize=" + pageSize;
|
|
|
- String data = CommUtil.get(url, null);
|
|
|
- //使用alibaba fastjson解析jsonarray,涉及性能优化问题
|
|
|
- jsonObject = com.alibaba.fastjson.JSONObject.parseObject(data);
|
|
|
-
|
|
|
- } catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
+
|
|
|
+ String positionId = requestMap.get("positionId");
|
|
|
+ String positionCategory = requestMap.get("positionCategory");
|
|
|
+ String pageNo = requestMap.get("pageNo");
|
|
|
+ String pageSize = requestMap.get("pageSize");
|
|
|
+ String type = requestMap.get("type"); //1:查询新报名 2:查询待面试
|
|
|
+ String url = path + "/f/api/sendmessage/sendResume?positionId=" + positionId + "&positionCategory="
|
|
|
+ + positionCategory + "&type=" + type
|
|
|
+ + "&pageNo=" + pageNo + "&pageSize=" + pageSize;
|
|
|
+ String data = CommUtil.get(url, null);
|
|
|
+ //使用alibaba fastjson解析jsonarray,涉及性能优化问题
|
|
|
+ jsonObject = com.alibaba.fastjson.JSONObject.parseObject(data);
|
|
|
+
|
|
|
+
|
|
|
} else {
|
|
|
jsonObject.put("success", "1004");
|
|
|
}
|