LiFei 6 lat temu
rodzic
commit
745a2ff136

+ 2 - 2
happy-boot-module-hppay/src/main/java/org/jeecg/modules/api/dpposition/DpPositionControllerAPI.java

@@ -285,7 +285,7 @@ public class DpPositionControllerAPI extends BaseAppController {
     /**
      * 投递状态改变接口
      */
-    @PostMapping(value = "/changeApplyStatus")
+    @GetMapping(value = "/changeApplyStatus")
     public ModelAndView changeApplyStatus(HttpServletRequest request, HttpServletResponse response) {
         Map<String, Object> returnMap = new HashMap<String, Object>();
         Map<String, String> requestMap = findRequestMap(request);
@@ -314,7 +314,7 @@ public class DpPositionControllerAPI extends BaseAppController {
     /**
      * 投递状态改变接口(批量修改)
      */
-    @PostMapping(value = "/changeApplysStatus")
+    @GetMapping(value = "/changeApplysStatus")
     public ModelAndView changeApplysStatus(HttpServletRequest request, HttpServletResponse response) {
         Map<String, Object> returnMap = new HashMap<String, Object>();
         Map<String, String> requestMap = findRequestMap(request);

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

@@ -535,7 +535,7 @@ 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.doPost(sendMsgUrl, null));
+            JSONObject paramJson = JSONObject.fromObject(CommUtil.get(sendMsgUrl, null));
             String returnStatus = paramJson.getString("success");
             if ("1".equals(returnStatus)) {
                 returnMap.put("success", true);
@@ -572,7 +572,7 @@ 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.doPost(sendMsgUrl, null));
+            JSONObject paramJson = JSONObject.fromObject(CommUtil.get(sendMsgUrl, null));
             String returnStatus = paramJson.getString("success");
             if ("1".equals(returnStatus)) {
                 returnMap.put("success", true);
@@ -613,7 +613,7 @@ 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.doPost(sendMsgUrl, null));
+            JSONObject paramJson = JSONObject.fromObject(CommUtil.get(sendMsgUrl, null));
             String returnStatus = paramJson.getString("success");
             if ("1".equals(returnStatus)) {
                 returnMap.put("success", true);