fix: 테스트를 위한 코드 추가

dev
Jonguk. Lim 5 months ago
parent 22e3d3ed9c
commit 43b82a67e9

@ -390,6 +390,21 @@ public class BizNimsServiceBean extends AbstractServiceBean implements BizNimsSe
); );
} }
BizNimsResponse.DsuseMgtRes dsuseMgtDto = dsuseMgtDtos.get(0); BizNimsResponse.DsuseMgtRes dsuseMgtDto = dsuseMgtDtos.get(0);
////////////////////////////////////////////////////////////
// FIXME: 테스트를 위해 폐기관리ID 1, 2를 강제로 개발기 데이타로 매핑
if("2024060001".equals(reqDto.getDscdmngId())){
dsuseMgtDto.setHdrDe("20221107");
dsuseMgtDto.setBsshCd("TTAP00001");
}
if("2024060002".equals(reqDto.getDscdmngId())){
dsuseMgtDto.setHdrDe("20221103");
dsuseMgtDto.setBsshCd("");
}
////////////////////////////////////////////////////////////
NimsApiRequest.DsuseRptInfoReq rptDto = NimsApiRequest.DsuseRptInfoReq.builder() NimsApiRequest.DsuseRptInfoReq rptDto = NimsApiRequest.DsuseRptInfoReq.builder()
.k(apiInfInfo.get("apiKey")) .k(apiInfInfo.get("apiKey"))
.gc(apiInfInfo.get("deptCd")) .gc(apiInfInfo.get("deptCd"))

@ -8,7 +8,6 @@ import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping; import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
@ -189,11 +188,9 @@ public class BizNimsController {
} }
@Operation(summary = "사고 마약류 폐기 관리 목록 조회", description = "사고 마약류 폐기 관리 목록 조회", tags = { "BIZ API" }) @Operation(summary = "사고 마약류 폐기 관리 목록 조회", description = "사고 마약류 폐기 관리 목록 조회", tags = { "BIZ API" })
//@PostMapping(value = "/getDsuseMgts") @PostMapping(value = "/getDsuseMgts")
@RequestMapping(value = "/getDsuseMgts", method = { RequestMethod.POST, RequestMethod.GET })
public ApiBaseResponse<List<BizNimsResponse.DsuseMgtRes>> getDsuseMgts( public ApiBaseResponse<List<BizNimsResponse.DsuseMgtRes>> getDsuseMgts(
//@RequestBody BizNimsRequest.DsuseMgtInq dto @RequestBody BizNimsRequest.DsuseMgtInq dto
BizNimsRequest.DsuseMgtInq dto
) { ) {
return ApiBaseResponse.of(bizNimsService.getDsuseMgts(dto, false)); return ApiBaseResponse.of(bizNimsService.getDsuseMgts(dto, false));
} }

Loading…
Cancel
Save