Przeglądaj źródła

修改状态改变接口

LiFei 6 lat temu
rodzic
commit
c5ced16681

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

@@ -535,8 +535,10 @@ public class PositionServiceImpl extends ServiceImpl<PositionMapper, Position> i
                 String isEmploy = requestMap.get("isEmploy");  //是否录用(0:拒绝 1:录用)
                 sendMsgUrl = path + "/f/api/sendmessage/changeApplyStatus?positionId=" + positionId + "&userId=" + userId + "&positionCategory=" + positionCategory + "&type=" + type + "&isEmploy=" + isEmploy;
             }
-            JSONObject paramJson = JSONObject.fromObject(CommUtil.get(sendMsgUrl, null));
-            String returnStatus = paramJson.getString("success");
+            String data = CommUtil.get(sendMsgUrl, null);
+            com.alibaba.fastjson.JSONObject jsonObject = new com.alibaba.fastjson.JSONObject();
+            jsonObject = com.alibaba.fastjson.JSONObject.parseObject(data);
+            String returnStatus = jsonObject.getString("success");
             if ("1".equals(returnStatus)) {
                 returnMap.put("success", true);
             } else {
@@ -572,8 +574,10 @@ public class PositionServiceImpl extends ServiceImpl<PositionMapper, Position> i
                 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.get(sendMsgUrl, null));
-            String returnStatus = paramJson.getString("success");
+            String data = CommUtil.get(sendMsgUrl, null);
+            com.alibaba.fastjson.JSONObject jsonObject = new com.alibaba.fastjson.JSONObject();
+            jsonObject = com.alibaba.fastjson.JSONObject.parseObject(data);
+            String returnStatus = jsonObject.getString("success");
             if ("1".equals(returnStatus)) {
                 returnMap.put("success", true);
             } else {
@@ -613,8 +617,10 @@ public class PositionServiceImpl extends ServiceImpl<PositionMapper, Position> i
                     + "&contactPerson=" + URLEncoder.encode(contactPerson) + "&contactPhone=" + contactPhone + "&positionName=" + URLEncoder.encode(positionName)
                     + "&companyName=" + URLEncoder.encode(companyName);
 
-            JSONObject paramJson = JSONObject.fromObject(CommUtil.get(sendMsgUrl, null));
-            String returnStatus = paramJson.getString("success");
+            String data = CommUtil.get(sendMsgUrl, null);
+            com.alibaba.fastjson.JSONObject jsonObject = new com.alibaba.fastjson.JSONObject();
+            jsonObject = com.alibaba.fastjson.JSONObject.parseObject(data);
+            String returnStatus = jsonObject.getString("success");
             if ("1".equals(returnStatus)) {
                 returnMap.put("success", true);
             } else {