projectinfo closed BOTH ADD
This commit is contained in:
@@ -267,7 +267,13 @@ public class LabelAllocateApiController {
|
||||
value =
|
||||
"""
|
||||
{"uuid": "f97dc186-e6d3-4645-9737-3173dde8dc64", "closedType": "INSPECTION", "closedYn": "Y"}
|
||||
""")
|
||||
"""),
|
||||
@io.swagger.v3.oas.annotations.media.ExampleObject(
|
||||
name = "특정 프로젝트 라벨링+검수 동시 종료",
|
||||
value =
|
||||
"""
|
||||
{"uuid": "f97dc186-e6d3-4645-9737-3173dde8dc64", "closedType": "BOTH", "closedYn": "Y"}
|
||||
""")
|
||||
}))
|
||||
@RequestBody
|
||||
@Valid
|
||||
@@ -276,7 +282,17 @@ public class LabelAllocateApiController {
|
||||
labelAllocateService.updateClosedYn(
|
||||
request.getUuid(), request.getClosedType(), request.getClosedYn());
|
||||
|
||||
String typeLabel = "LABELING".equals(request.getClosedType()) ? "라벨링" : "검수";
|
||||
String typeLabel;
|
||||
if ("LABELING".equals(request.getClosedType())) {
|
||||
typeLabel = "라벨링";
|
||||
} else if ("INSPECTION".equals(request.getClosedType())) {
|
||||
typeLabel = "검수";
|
||||
} else if ("BOTH".equals(request.getClosedType())) {
|
||||
typeLabel = "라벨링 및 검수";
|
||||
} else {
|
||||
typeLabel = "작업";
|
||||
}
|
||||
|
||||
String statusMessage =
|
||||
"Y".equals(request.getClosedYn())
|
||||
? typeLabel + "이(가) 종료되었습니다."
|
||||
|
||||
Reference in New Issue
Block a user