Merge remote-tracking branch 'origin/master'
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 com.njcn.device.pq.pojo.dto.SubstationDTO;
|
||||||
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -26,5 +27,5 @@ public interface SubstationFeignClient {
|
|||||||
* @return 变电站信息
|
* @return 变电站信息
|
||||||
*/
|
*/
|
||||||
@PostMapping("getSubstationById")
|
@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
|
* @date 2022/2/21 18:53
|
||||||
*/
|
*/
|
||||||
@PostMapping("/getSubstationById")
|
@PostMapping("/getSubstationById")
|
||||||
HttpResult<List<Line>> getSubstationById(@RequestParam("list") List<String> list);
|
HttpResult<List<Line>> getSubstationById(@RequestBody List<String> list);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ public class TerminalBaseController extends BaseController {
|
|||||||
@OperateInfo
|
@OperateInfo
|
||||||
@PostMapping("/getSubstationById")
|
@PostMapping("/getSubstationById")
|
||||||
@ApiIgnore
|
@ApiIgnore
|
||||||
public HttpResult<List<Line>> getSubstationById(@RequestParam("list") List<String> list) {
|
public HttpResult<List<Line>> getSubstationById(@RequestBody List<String> list) {
|
||||||
String methodDescribe = getMethodDescribe("getSubstationById");
|
String methodDescribe = getMethodDescribe("getSubstationById");
|
||||||
LogUtil.njcnDebug(log, "{},变电站集合为:{}", methodDescribe, list);
|
LogUtil.njcnDebug(log, "{},变电站集合为:{}", methodDescribe, list);
|
||||||
List<Line> subList = terminalBaseService.getSubstationById(list);
|
List<Line> subList = terminalBaseService.getSubstationById(list);
|
||||||
|
|||||||
Reference in New Issue
Block a user