spotless
This commit is contained in:
@@ -83,43 +83,43 @@ public class ModelMngApiController {
|
|||||||
|
|
||||||
@Operation(summary = "모델삭제", description = "모델을 삭제 합니다.")
|
@Operation(summary = "모델삭제", description = "모델을 삭제 합니다.")
|
||||||
@ApiResponses(
|
@ApiResponses(
|
||||||
value = {
|
value = {
|
||||||
@ApiResponse(
|
@ApiResponse(
|
||||||
responseCode = "201",
|
responseCode = "201",
|
||||||
description = "등록 성공",
|
description = "등록 성공",
|
||||||
content =
|
content =
|
||||||
@Content(
|
@Content(
|
||||||
mediaType = "application/json",
|
mediaType = "application/json",
|
||||||
schema = @Schema(implementation = Long.class))),
|
schema = @Schema(implementation = Long.class))),
|
||||||
@ApiResponse(responseCode = "400", description = "잘못된 요청 데이터", content = @Content),
|
@ApiResponse(responseCode = "400", description = "잘못된 요청 데이터", content = @Content),
|
||||||
@ApiResponse(responseCode = "404", description = "코드를 찾을 수 없음", content = @Content),
|
@ApiResponse(responseCode = "404", description = "코드를 찾을 수 없음", content = @Content),
|
||||||
@ApiResponse(responseCode = "500", description = "서버 오류", content = @Content)
|
@ApiResponse(responseCode = "500", description = "서버 오류", content = @Content)
|
||||||
})
|
})
|
||||||
@DeleteMapping("/{uuid}")
|
@DeleteMapping("/{uuid}")
|
||||||
public ApiResponseDto<ApiResponseDto.ResponseObj> removeModel(
|
public ApiResponseDto<ApiResponseDto.ResponseObj> removeModel(
|
||||||
@io.swagger.v3.oas.annotations.parameters.RequestBody(
|
@io.swagger.v3.oas.annotations.parameters.RequestBody(
|
||||||
description = "모델 삭제 요청 정보",
|
description = "모델 삭제 요청 정보",
|
||||||
required = true)
|
required = true)
|
||||||
@PathVariable
|
@PathVariable
|
||||||
String uuid) {
|
String uuid) {
|
||||||
|
|
||||||
return ApiResponseDto.ok(modelMngService.removeModel(UUID.fromString(uuid)));
|
return ApiResponseDto.ok(modelMngService.removeModel(UUID.fromString(uuid)));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Operation(summary = "모델등록", description = "모델을 등록 합니다.")
|
@Operation(summary = "모델등록", description = "모델을 등록 합니다.")
|
||||||
@ApiResponses(
|
@ApiResponses(
|
||||||
value = {
|
value = {
|
||||||
@ApiResponse(
|
@ApiResponse(
|
||||||
responseCode = "201",
|
responseCode = "201",
|
||||||
description = "등록 성공",
|
description = "등록 성공",
|
||||||
content =
|
content =
|
||||||
@Content(
|
@Content(
|
||||||
mediaType = "application/json",
|
mediaType = "application/json",
|
||||||
schema = @Schema(implementation = Long.class))),
|
schema = @Schema(implementation = Long.class))),
|
||||||
@ApiResponse(responseCode = "400", description = "잘못된 요청 데이터", content = @Content),
|
@ApiResponse(responseCode = "400", description = "잘못된 요청 데이터", content = @Content),
|
||||||
@ApiResponse(responseCode = "404", description = "코드를 찾을 수 없음", content = @Content),
|
@ApiResponse(responseCode = "404", description = "코드를 찾을 수 없음", content = @Content),
|
||||||
@ApiResponse(responseCode = "500", description = "서버 오류", content = @Content)
|
@ApiResponse(responseCode = "500", description = "서버 오류", content = @Content)
|
||||||
})
|
})
|
||||||
@PostMapping
|
@PostMapping
|
||||||
public ApiResponseDto<ApiResponseDto.ResponseObj> ModelMgmt(
|
public ApiResponseDto<ApiResponseDto.ResponseObj> ModelMgmt(
|
||||||
@RequestBody @Valid ModelMngDto.AddReq addReq) {
|
@RequestBody @Valid ModelMngDto.AddReq addReq) {
|
||||||
|
|||||||
@@ -57,7 +57,6 @@ public class LabelWorkRepositoryImpl implements LabelWorkRepositoryCustom {
|
|||||||
QLabelingAssignmentEntity.labelingAssignmentEntity;
|
QLabelingAssignmentEntity.labelingAssignmentEntity;
|
||||||
private final QMemberEntity memberEntity = QMemberEntity.memberEntity;
|
private final QMemberEntity memberEntity = QMemberEntity.memberEntity;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 변화탐지 년도 셀렉트박스 조회
|
* 변화탐지 년도 셀렉트박스 조회
|
||||||
*
|
*
|
||||||
@@ -81,8 +80,7 @@ public class LabelWorkRepositoryImpl implements LabelWorkRepositoryCustom {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 라벨링 작업관리 목록 조회
|
* 라벨링 작업관리 목록 조회 (복잡한 집계 쿼리로 인해 DTO 직접 반환)
|
||||||
* (복잡한 집계 쿼리로 인해 DTO 직접 반환)
|
|
||||||
*
|
*
|
||||||
* @param searchReq 검색 조건
|
* @param searchReq 검색 조건
|
||||||
* @return 라벨링 작업관리 목록 페이지
|
* @return 라벨링 작업관리 목록 페이지
|
||||||
@@ -345,7 +343,9 @@ public class LabelWorkRepositoryImpl implements LabelWorkRepositoryCustom {
|
|||||||
mapSheetAnalInferenceEntity
|
mapSheetAnalInferenceEntity
|
||||||
.uuid
|
.uuid
|
||||||
.eq(uuid)
|
.eq(uuid)
|
||||||
.and(labelingAssignmentEntity.analUid.eq(mapSheetAnalInferenceEntity.id)))
|
.and(
|
||||||
|
labelingAssignmentEntity.analUid.eq(
|
||||||
|
mapSheetAnalInferenceEntity.id)))
|
||||||
.innerJoin(memberEntity)
|
.innerJoin(memberEntity)
|
||||||
.on(whereSubBuilder)
|
.on(whereSubBuilder)
|
||||||
.where(whereBuilder)
|
.where(whereBuilder)
|
||||||
@@ -390,8 +390,7 @@ public class LabelWorkRepositoryImpl implements LabelWorkRepositoryCustom {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 작업배정 상세조회
|
* 작업배정 상세조회 (복잡한 집계 쿼리로 인해 DTO 직접 반환)
|
||||||
* (복잡한 집계 쿼리로 인해 DTO 직접 반환)
|
|
||||||
*
|
*
|
||||||
* @param uuid 작업배정 UUID
|
* @param uuid 작업배정 UUID
|
||||||
* @return 작업배정 상세 정보
|
* @return 작업배정 상세 정보
|
||||||
|
|||||||
Reference in New Issue
Block a user