Compare commits
39 Commits
9b0d3ad5c2
...
d5be6c9b8f
| Author | SHA1 | Date | |
|---|---|---|---|
| d5be6c9b8f | |||
| 774c02f258 | |||
| ab5e2f2b8e | |||
| fe7c1b0e75 | |||
| a1a9a08121 | |||
| 27442b2fc0 | |||
| 5439374711 | |||
| 3c8710f08c | |||
| 3cb37c6a6a | |||
| a13007e314 | |||
| 34f0f15499 | |||
| c48e1e6ab5 | |||
| 006c9d5aa7 | |||
| 02551fdc6a | |||
| 83b3925467 | |||
| b171ffd807 | |||
| 0106b641cf | |||
| 3b95701ed1 | |||
| 9e0ab9fae6 | |||
| 3ca4f72cfa | |||
| 969c21b9a5 | |||
| c9980cc50e | |||
| fd9438d619 | |||
| d0d0410f99 | |||
| e785be94b4 | |||
| d17922f137 | |||
| 0106981e7b | |||
| 7df341622e | |||
| 6a72470a3c | |||
| f7c905f9ff | |||
| 2abd3d8531 | |||
| aa7d6e4da1 | |||
| 91c14eff8c | |||
| 82efee2b1f | |||
| 15db53fe9d | |||
| f15dad9a8b | |||
| 62ad54107c | |||
| 5beb20199f | |||
| 1738507f83 |
@@ -39,6 +39,13 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
public class ListHeaderService {
|
||||
|
||||
private static final int FIRST_COMMON_HEADER_ID = 101;
|
||||
private static final Set<ListHeaderType> INTERVIEWER_EDIT_RESTRICTED_HEADER_TYPES = Set.of(
|
||||
ListHeaderType.SID,
|
||||
ListHeaderType.IS_USE,
|
||||
ListHeaderType.OUTSOURCE,
|
||||
ListHeaderType.CONTACT_INTERVIEWER,
|
||||
ListHeaderType.FIELD_INTERVIEWER
|
||||
);
|
||||
|
||||
private final ListHeaderRepository listHeaderRepository;
|
||||
private final ListItemRepository listItemRepository;
|
||||
@@ -196,6 +203,14 @@ public class ListHeaderService {
|
||||
|
||||
@Transactional
|
||||
public void updateListHeader(Long prjctIdx, List<ListHeaderDto> headerList, String regUser, LocalDateTime regDt){
|
||||
for (ListHeaderDto header : headerList) {
|
||||
if (Boolean.TRUE.equals(header.getUseIntrvwerEdit())
|
||||
&& INTERVIEWER_EDIT_RESTRICTED_HEADER_TYPES.contains(header.getListHderTy())) {
|
||||
throw BusinessException.badRequest("INVALID_INTERVIEWER_EDIT",
|
||||
"SID, 사용 허용, 외주사, 컨택원, 면접원 헤더는 면접원 수정을 허용할 수 없습니다.");
|
||||
}
|
||||
}
|
||||
|
||||
//upload에서의 header upsert와 분리하기 위한 래핑 메서드
|
||||
upsertHeader(prjctIdx, headerList, regUser, regDt);
|
||||
listContentItemService.refreshListContentItem(prjctIdx, headerList);
|
||||
|
||||
Reference in New Issue
Block a user