Browse Source

add:获取分析结果,feign修改参数类型

zhongwei
luyie 3 months ago
parent
commit
fbe40b20b4
  1. 3
      hzims-service-api/inspect-api/src/main/java/com/hnac/hzinfo/inspect/ai/feign/IImageAnalysisClient.java
  2. 4
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/ai/feign/ImageAnalysisClient.java

3
hzims-service-api/inspect-api/src/main/java/com/hnac/hzinfo/inspect/ai/feign/IImageAnalysisClient.java

@ -7,6 +7,7 @@ import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* @Author: ypj * @Author: ypj
@ -18,5 +19,5 @@ public interface IImageAnalysisClient {
String ANALYSIS_BY_STATION_ID = "/analysisByStationId"; String ANALYSIS_BY_STATION_ID = "/analysisByStationId";
@PostMapping(API_PREFIX + ANALYSIS_BY_STATION_ID) @PostMapping(API_PREFIX + ANALYSIS_BY_STATION_ID)
List<ZhiPuImageAnalysisDTO> analysisByStationId(@RequestBody Long stationId); List<ZhiPuImageAnalysisDTO> analysisByStationId(@RequestBody Map<String, Long> stationIdMap);
} }

4
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/ai/feign/ImageAnalysisClient.java

@ -9,6 +9,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* @Author: ypj * @Author: ypj
@ -22,7 +23,8 @@ public class ImageAnalysisClient implements IImageAnalysisClient {
@Override @Override
@PostMapping(ANALYSIS_BY_STATION_ID) @PostMapping(ANALYSIS_BY_STATION_ID)
public List<ZhiPuImageAnalysisDTO> analysisByStationId(@RequestBody Long stationId) { public List<ZhiPuImageAnalysisDTO> analysisByStationId(@RequestBody Map<String, Long> stationIdMap) {
Long stationId = Long.valueOf(stationIdMap.get("stationId").toString());
return zhiPuBigModelService.analysisImgByStationId(stationId); return zhiPuBigModelService.analysisImgByStationId(stationId);
} }
} }

Loading…
Cancel
Save