解决get请求数据量过大报错问题
This commit is contained in:
@@ -6,6 +6,7 @@ import com.njcn.device.pq.api.fallback.SubstationFeignClientFallbackFactory;
|
||||
import com.njcn.device.pq.pojo.dto.SubstationDTO;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import java.util.List;
|
||||
@@ -26,5 +27,5 @@ public interface SubstationFeignClient {
|
||||
* @return 变电站信息
|
||||
*/
|
||||
@PostMapping("getSubstationById")
|
||||
HttpResult<List<SubstationDTO>> getSubstationById(@RequestParam("subId") List<String> subId);
|
||||
HttpResult<List<SubstationDTO>> getSubstationById(@RequestBody List<String> subId);
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ public interface TerminalBaseClient {
|
||||
* @date 2022/2/21 18:53
|
||||
*/
|
||||
@PostMapping("/getSubstationById")
|
||||
HttpResult<List<Line>> getSubstationById(@RequestParam("list") List<String> list);
|
||||
HttpResult<List<Line>> getSubstationById(@RequestBody List<String> list);
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user