Browse Source

#站点查询feign

zhongwei
yang_shj 1 year ago
parent
commit
a5223bacc2
  1. 2
      hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/feign/IStationClient.java
  2. 1
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/feign/StationClient.java

2
hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/feign/IStationClient.java

@ -79,6 +79,6 @@ public interface IStationClient {
* @param codes * @param codes
* @return * @return
*/ */
@PostMapping(QUERY_STATION_BY_CODES) @GetMapping(QUERY_STATION_BY_CODES)
R<List<StationEntity>> querySatationByCodes(@RequestParam("codes") List<String> codes); R<List<StationEntity>> querySatationByCodes(@RequestParam("codes") List<String> codes);
} }

1
hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/feign/StationClient.java

@ -129,6 +129,7 @@ public class StationClient implements IStationClient {
} }
@Override @Override
@GetMapping("/querySatationByCodes")
public R<List<StationEntity>> querySatationByCodes(@RequestParam("codes") List<String> codes) { public R<List<StationEntity>> querySatationByCodes(@RequestParam("codes") List<String> codes) {
return R.data(stationService.list(Wrappers.<StationEntity>lambdaQuery() return R.data(stationService.list(Wrappers.<StationEntity>lambdaQuery()
.in(StationEntity::getCode,codes))); .in(StationEntity::getCode,codes)));

Loading…
Cancel
Save