Browse Source

调整邀请面试接口

LiFei 6 years ago
parent
commit
5d748584d1

+ 8 - 30
happy-boot-module-hppay/src/main/java/org/jeecg/modules/hpposition/service/impl/PositionServiceImpl.java

@@ -580,25 +580,18 @@ public class PositionServiceImpl extends ServiceImpl<PositionMapper, Position> i
     public Map<String, Object> changeApplyStatus(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");
-            if("0".equals(positionCategory)){
-                positionCategory="6";
-            }else if("1".equals(positionCategory)){
-                positionCategory="7";
-            }
+            String applyId = requestMap.get("applyId");
             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/changeApplyStatus?positionId=" + positionId + "&userId=" + userId + "&positionCategory=" + positionCategory + "&type=" + type + "&isRefuse=" + isRefuse;
+                sendMsgUrl = path + "/f/api/sendmessage/changeApplyStatus?applyId=" + applyId + "&type=" + type + "&isRefuse=" + isRefuse;
             } else if ("2".equals(type)) {
                 String isEmploy = requestMap.get("isEmploy");  //是否录用(0:拒绝 1:录用)
-                sendMsgUrl = path + "/f/api/sendmessage/changeApplyStatus?positionId=" + positionId + "&userId=" + userId + "&positionCategory=" + positionCategory + "&type=" + type + "&isEmploy=" + isEmploy;
+                sendMsgUrl = path + "/f/api/sendmessage/changeApplyStatus?applyId=" + applyId + "&type=" + type + "&isEmploy=" + isEmploy;
             }
             String data = CommUtil.get(sendMsgUrl, null);
             com.alibaba.fastjson.JSONObject jsonObject = new com.alibaba.fastjson.JSONObject();
@@ -624,25 +617,18 @@ public class PositionServiceImpl extends ServiceImpl<PositionMapper, Position> i
     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");
-            if("0".equals(positionCategory)){
-                positionCategory="6";
-            }else if("1".equals(positionCategory)){
-                positionCategory="7";
-            }
+            String applyId = requestMap.get("applyId");
             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;
+                sendMsgUrl = path + "/f/api/sendmessage/changeApplysStatus?applyId=" + applyId + "&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;
+                sendMsgUrl = path + "/f/api/sendmessage/changeApplysStatus?applyId=" + applyId  + "&type=" + type + "&isEmploy=" + isEmploy;
             }
             String data = CommUtil.get(sendMsgUrl, null);
             com.alibaba.fastjson.JSONObject jsonObject = new com.alibaba.fastjson.JSONObject();
@@ -668,25 +654,17 @@ public class PositionServiceImpl extends ServiceImpl<PositionMapper, Position> i
     public Map<String, Object> interviewInvite(Map<String, String> requestMap, HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException {
         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");
-            if("0".equals(positionCategory)){
-                positionCategory="6";
-            }else if("1".equals(positionCategory)){
-                positionCategory="7";
-            }
+            String applyId = requestMap.get("applyId");
             String interviewTime = requestMap.get("interviewTime");
             String interviewAddres = requestMap.get("interviewAddres");
             String contactPerson = requestMap.get("contactPerson");
             String contactPhone = requestMap.get("contactPhone");
             String positionName = requestMap.get("positionName");
             String companyName = requestMap.get("companyName");
-            String sendMsgUrl = path + "/f/api/sendmessage/interviewInvite?positionId=" + positionId
-                    + "&userId=" + userId + "&positionCategory=" + positionCategory
+            String sendMsgUrl = path + "/f/api/sendmessage/interviewInvite?applyId="+applyId
                     + "&interviewAddres=" + URLEncoder.encode(interviewAddres, "utf-8")
                     + "&contactPerson=" + URLEncoder.encode(contactPerson, "utf-8") + "&contactPhone=" + contactPhone + "&positionName=" + URLEncoder.encode(positionName, "utf-8")
                     + "&companyName=" + URLEncoder.encode(companyName, "utf-8") + "&interviewTime=" + URLEncoder.encode(interviewTime, "utf-8");