develop #1
@@ -340,12 +340,6 @@ public class AssignService {
|
||||
errors.add(ExcelErrorDto.of(rowNumber, "사용자 ID", "존재하지 않는 사용자 ID입니다."));
|
||||
}
|
||||
|
||||
if (StringUtil.hasText(userId)
|
||||
&& performanceId != null
|
||||
&& performanceAssignRepository.existsByAssignUserAndPerformanceIdNot(userId, performanceId)) {
|
||||
errors.add(ExcelErrorDto.of(rowNumber, "사용자 ID", "이미 다른 사업에 배정된 사용자입니다."));
|
||||
}
|
||||
|
||||
return errors;
|
||||
}
|
||||
|
||||
@@ -369,11 +363,6 @@ public class AssignService {
|
||||
throw BusinessException.notFound("USER_NOT_FOUND", "존재하지 않는 사용자 ID입니다.")
|
||||
.with("userId", userId);
|
||||
}
|
||||
if (performanceAssignRepository.existsByAssignUserAndPerformanceIdNot(userId, performanceId)) {
|
||||
throw BusinessException.conflict("ASSIGN_ALREADY_EXISTS", "이미 다른 공연에 배정된 사용자입니다.")
|
||||
.with("performanceId", performanceId)
|
||||
.with("assignUser", userId);
|
||||
}
|
||||
}
|
||||
|
||||
private boolean hasReview(TPerformanceAssignEntity assign) {
|
||||
|
||||
Reference in New Issue
Block a user