|
|
@@ -549,6 +549,43 @@ public class PositionServiceImpl extends ServiceImpl<PositionMapper, Position> i
|
|
|
}
|
|
|
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 投递状态改变接口
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public Map<String, Object> changeApplysStatus(Map<String, String> requestMap, HttpServletRequest request, HttpServletResponse response) {
|
|
|
+ Map<String, Object> returnMap = new HashMap<String, Object>();
|
|
|
+ Map<String, Object> sendMap = new HashMap<String, Object>();
|
|
|
+ String userId = requestMap.get("user_id1"); //C端用户id
|
|
|
+ String userId1 = requestMap.get("user_id");
|
|
|
+ String userToken = requestMap.get("user_token");
|
|
|
+ if (TokenUtil.validateToken(userId1, userToken)) {
|
|
|
+ String positionId = requestMap.get("positionId");
|
|
|
+ String positionCategory = requestMap.get("positionCategory");
|
|
|
+ String type = requestMap.get("type"); //1:查询新报名 2:查询待面试
|
|
|
+ String sendMsgUrl = "";
|
|
|
+ if ("1".equals(type)) {
|
|
|
+ String isRefuse = requestMap.get("isRefuse"); //是否拒绝(0:未拒绝 1:拒绝)
|
|
|
+ sendMsgUrl = path + "/f/api/sendmessage/changeApplysStatus?positionId=" + positionId + "&userId=" + userId + "&positionCategory=" + positionCategory + "&type=" + type + "&isRefuse=" + isRefuse;
|
|
|
+ } else if ("2".equals(type)) {
|
|
|
+ String isEmploy = requestMap.get("isEmploy"); //是否录用(0:拒绝 1:录用)
|
|
|
+ sendMsgUrl = path + "/f/api/sendmessage/changeApplysStatus?positionId=" + positionId + "&userId=" + userId + "&positionCategory=" + positionCategory + "&type=" + type + "&isEmploy=" + isEmploy;
|
|
|
+ }
|
|
|
+ JSONObject paramJson = JSONObject.fromObject(CommUtil.doPost(sendMsgUrl, null));
|
|
|
+ String returnStatus = paramJson.getString("success");
|
|
|
+ if ("1".equals(returnStatus)) {
|
|
|
+ returnMap.put("success", true);
|
|
|
+ } else {
|
|
|
+ returnMap.put("success", false);
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ returnMap.put("success", "1004");
|
|
|
+ }
|
|
|
+ return returnMap;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 邀请面试接口
|
|
|
*/
|