[BO] 임가 등록/수정 조사원 매핑 오류 수정
This commit is contained in:
@@ -20,15 +20,15 @@ class UpdateHouseholdDao implements UpdateHouseholdPortOut {
|
||||
mapper.updateHousehold(AuditUtil.update(outCmd));
|
||||
|
||||
// 임가 담당 조사원 수정
|
||||
if(outCmd.getResearcherSeq() != null) {
|
||||
if (outCmd.getResearcherSeq() != null) {
|
||||
// 매핑 정보 먼저 삭제
|
||||
mapper.deleteResearcherHasHousehold(AuditUtil.delete(
|
||||
new UpdateResearcherHasHouseholdCmd(outCmd.getResearcherSeq(),
|
||||
new UpdateResearcherHasHouseholdCmd(outCmd.getHouseholdSeq(),
|
||||
outCmd.getResearcherSeq())));
|
||||
|
||||
|
||||
// 다시 등록
|
||||
mapper.createResearcherHasHousehold(AuditUtil.create(
|
||||
new UpdateResearcherHasHouseholdCmd(outCmd.getResearcherSeq(),
|
||||
new UpdateResearcherHasHouseholdCmd(outCmd.getHouseholdSeq(),
|
||||
outCmd.getResearcherSeq())));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user