이노펨 목업 수정
This commit is contained in:
@@ -4,6 +4,7 @@ import com.kamco.cd.kamcoback.Innopam.dto.DetectMastDto;
|
||||
import com.kamco.cd.kamcoback.Innopam.dto.DetectMastDto.Basic;
|
||||
import com.kamco.cd.kamcoback.Innopam.dto.DetectMastDto.DetectMastReq;
|
||||
import com.kamco.cd.kamcoback.Innopam.dto.DetectMastDto.DetectMastSearch;
|
||||
import com.kamco.cd.kamcoback.Innopam.dto.DetectMastDto.FeaturePnuDto;
|
||||
import com.kamco.cd.kamcoback.Innopam.service.DetectMastService;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.media.Content;
|
||||
@@ -126,20 +127,26 @@ public class InnopamApiController {
|
||||
@ApiResponse(responseCode = "500", description = "서버 오류", content = @Content)
|
||||
})
|
||||
@GetMapping("/pnu/{cprsBfYr}/{cprsAfYr}/{dtctSno}")
|
||||
public void selectPnuList(
|
||||
public List<FeaturePnuDto> selectPnuList(
|
||||
@PathVariable String cprsBfYr, @PathVariable String cprsAfYr, @PathVariable String dtctSno) {
|
||||
DetectMastSearch detectMastSearch = new DetectMastSearch();
|
||||
detectMastSearch.setCprsAdYr(cprsAfYr);
|
||||
detectMastSearch.setCprsBfYr(cprsBfYr);
|
||||
detectMastSearch.setDtctSno(Integer.parseInt(dtctSno));
|
||||
detectMastService.findPnuData(detectMastSearch);
|
||||
return detectMastService.findPnuData(detectMastSearch);
|
||||
}
|
||||
|
||||
/**
|
||||
* 탐지객체 PNU 단건 조회
|
||||
*
|
||||
* @param detectMast
|
||||
*/
|
||||
@GetMapping("/pnu/{cprsBfYr}/{cprsAfYr}/{dtctSno}/{featureId}")
|
||||
public void selectPnuDetail(@RequestBody DetectMastDto detectMast) {}
|
||||
public FeaturePnuDto selectPnuDetail(
|
||||
@PathVariable String cprsBfYr,
|
||||
@PathVariable String cprsAfYr,
|
||||
@PathVariable String dtctSno,
|
||||
@PathVariable String featureId) {
|
||||
DetectMastSearch detectMastSearch = new DetectMastSearch();
|
||||
detectMastSearch.setCprsAdYr(cprsAfYr);
|
||||
detectMastSearch.setCprsBfYr(cprsBfYr);
|
||||
detectMastSearch.setDtctSno(Integer.parseInt(dtctSno));
|
||||
detectMastSearch.setFeatureId(featureId);
|
||||
return detectMastService.findPnuDataDetail(detectMastSearch);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user