luoguangyi пре 3 година
родитељ
комит
761faa0fed

+ 2 - 5
src/main/java/com/persagy/proxy/adm/controller/AdmDictController.java

@@ -16,10 +16,7 @@ import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.lang.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Value;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
 
 import javax.ws.rs.QueryParam;
 import java.util.ArrayList;
@@ -212,7 +209,7 @@ public class AdmDictController {
      * @return
      * @throws Exception
      */
-    @PostMapping("/syn-dic-project")
+    @GetMapping("/syn-dic-project")
     @Deprecated
     public AdmResponse syncProjectObjectInfo() throws Exception {
         return AdmResponse.success(new ArrayList<>());

+ 2 - 5
src/main/java/com/persagy/proxy/adm/controller/AdmShaftController.java

@@ -30,10 +30,7 @@ import com.persagy.proxy.adm.utils.AdmQueryCriteriaHelper;
 import com.persagy.proxy.adm.utils.ObjectNameUtil;
 import com.persagy.proxy.common.entity.RelationDTO;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
 
 import javax.ws.rs.QueryParam;
 import java.util.*;
@@ -316,7 +313,7 @@ public class AdmShaftController {
      * @return
      * @throws Exception
      */
-    @PostMapping("/shaft-zoneSpaceBaseTable-building")
+    @GetMapping("/shaft-zoneSpaceBaseTable-building")
     public AdmResponse queryZoneSpBd(@QueryParam("shaftId") String shaftId,
              @QueryParam("objectType") String objectType) throws Exception {
         if(!StrUtil.isAllNotEmpty(shaftId,AdmContextUtil.toDmpContext().getProjectId())) {