Browse Source

#站点查询feign

zhongwei
yang_shj 1 year ago
parent
commit
a9a3897164
  1. 2
      hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/feign/IStationClient.java
  2. 4
      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
*/ */
@GetMapping(QUERY_STATION_BY_CODES) @PostMapping(QUERY_STATION_BY_CODES)
R<List<StationEntity>> querySatationByCodes(@RequestParam("codes") List<String> codes); R<List<StationEntity>> querySatationByCodes(@RequestParam("codes") List<String> codes);
} }

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

@ -129,7 +129,9 @@ public class StationClient implements IStationClient {
} }
@Override @Override
@GetMapping("/querySatationByCodes") @PostMapping("/querySatationByCodes")
@ApiOperation("根据站点编码查询站点")
@ApiOperationSupport(order = 12)
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